:root { font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif; color: #111; background: #fff; font-synthesis: none; --panel: #f1f1f1; --line: #aeb0b4; --green: #00b76a; --red: #e32626; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-width: 280px; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, .button { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 14px 24px; cursor: pointer; font-weight: 600; text-decoration: none; text-align: center; }
button:hover, .button:hover { background: #e9e9e9; }
button:disabled { cursor: default; color: #969ba3; border-color: #cbd0d8; background: #eaecef; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #42546a; outline-offset: 3px; }
input, textarea { border: 1px solid #bcc1c9; background: #fff; border-radius: 4px; width: 100%; min-width: 0; padding: 13px 16px; font-size: 20px; }
input::placeholder, textarea::placeholder { color: #939ba8; }
input:disabled, textarea:disabled { background: #f1f3f5; color: #727d8b; }
textarea { min-height: 155px; resize: vertical; line-height: 1.65; }
label { display: block; font-size: 21px; font-weight: 600; margin-bottom: 10px; }
h1, h2, h3, p { margin-top: 0; }
.navigation { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 16px 30px; gap: 14px; }
.navigation nav { display: flex; align-items: center; gap: 22px; }
.text-button { padding: 7px 4px; background: transparent; border: 0; font-size: 20px; border-radius: 3px; }
.text-button:hover { background: #f5f5f5; }
#app { outline: none; }
.screen { width: min(1144px, calc(100% - 64px)); margin-inline: auto; padding: 26px 0 110px; }
.center-screen { min-height: calc(100svh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 20px 100px; }
.home-screen { min-height: 100svh; padding-block: 50px; }
.large-menu { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.large-menu.two { width: min(810px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.large-menu.one { width: min(390px, 100%); grid-template-columns: minmax(0, 1fr); }
.large-card { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 340px; padding: 26px; font-size: clamp(30px, 4vw, 58px); font-weight: 800; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; border: 1.5px solid var(--line); border-radius: 6px; }
.home-screen .large-card { min-height: 380px; font-size: clamp(40px, 5.2vw, 78px); }
.login-form { width: min(680px, 100%); }
.login-form label { font-size: 25px; font-weight: 400; margin-bottom: 10px; }
.login-form input { min-height: 98px; text-align: center; font-size: 37px; border-color: #8f9399; }
.login-form button[type=submit] { min-height: 94px; width: 100%; font-size: 36px; margin-top: 18px; }
.status { font-size: 17px; line-height: 1.55; margin: 12px 0 0; overflow-wrap: anywhere; }
.status:empty { display: none; }
.error { color: var(--red); }
.login-form .status { font-size: 20px; margin-top: 9px; }
.grid-screen { padding-top: 36px; }
.page-title { font-size: 39px; margin: 0 0 26px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lecture-grid { width: min(1400px, calc(100% - 64px)); margin-inline: auto; padding-top: 50px; }
.lecture-card { min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 15px; word-break: keep-all; overflow-wrap: anywhere; }
.lecture-card strong { font-size: 28px; }
.lecture-card .instructor { font-size: 21px; color: #585c62; font-weight: 400; }
.lecture-card .entry-code { font-size: 25px; color: #54585e; font-weight: 400; letter-spacing: .025em; }
.tool-card { position: relative; min-height: 190px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 5px; }
.tool-body { width: 100%; height: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; padding: 45px 22px; border: 0; font-size: 23px; line-height: 1.5; font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; }
.tool-icon { position: absolute; width: 42px; height: 42px; padding: 7px; border: 0; background: transparent; display: grid; place-items: center; }
.tool-icon svg { width: 27px; height: 27px; }
.tool-eye { right: 9px; bottom: 7px; }
.tool-pencil, .tool-select { top: 7px; right: 9px; }
.tool-card.selected { border-color: #222; background: #e2e3e4; }
.tool-card.selected .tool-body { background: #e2e3e4; }
.select-circle { border: 2px solid #20262f; border-radius: 50%; width: 27px; height: 27px; display: grid; place-items: center; background: white; }
.selected .select-circle { background: #198b36; border-color: #198b36; color: white; font-size: 21px; font-weight: 700; }
.floating-action { position: fixed; right: 32px; bottom: 28px; font-size: 24px; min-height: 64px; padding: 12px 28px; z-index: 2; box-shadow: 0 0 0 8px #fff; }
.lecture-settings { width: min(900px, calc(100% - 48px)); margin-inline: auto; padding: 44px 0 80px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.setting-button { min-height: 116px; font-size: 35px; font-weight: 800; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.4; padding: 18px 12px; }
.setting-button small { font-size: 23px; color: #62666c; font-weight: 600; }
.setting-button.wide { grid-column: 1 / -1; min-height: 126px; }
.setting-button .big-check { color: var(--green); font-size: 87px; line-height: .94; font-family: Arial, sans-serif; font-weight: 700; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 24px; }
.actions.spread { justify-content: space-between; }
.actions button { min-width: 150px; font-size: 21px; }
.settings-actions button { min-width: 210px; font-size: 27px; }
.danger { color: var(--red); border-color: var(--red); background: #fff; }
.danger:hover { background: #fff5f5; }
.code-row { margin-top: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.code-row .entry-code { font-size: 24px; letter-spacing: .04em; }
.code-row button { font-size: 16px; }
.code-screen { text-align: center; }
.issued-code { font-size: clamp(45px, 8vw, 88px); letter-spacing: .075em; margin: 22px 0 32px; font-weight: 600; }
.code-screen .actions { justify-content: center; }
dialog { border: 0; border-radius: 6px; padding: 36px; width: min(780px, calc(100% - 36px)); max-height: calc(100svh - 48px); overflow-y: auto; background: #fff; color: #111; }
dialog::backdrop { background: rgb(28 32 38 / 48%); }
dialog h2 { font-size: 36px; margin: 0 45px 34px 0; line-height: 1.3; }
.dialog-close { position: absolute; top: 20px; right: 20px; font-size: 33px; line-height: 1; border: 0; padding: 4px; width: 38px; height: 38px; color: #868c95; background: transparent; font-weight: 400; }
.field { margin-bottom: 26px; }
dialog .actions { margin-top: 28px; }
dialog.small-dialog { width: min(640px, calc(100% - 36px)); padding: 32px; }
dialog.selection-dialog { width: min(920px, calc(100% - 36px)); }
dialog.selection-dialog .tool-body { min-height: 157px; font-size: 19px; padding: 36px 10px; }
dialog.selection-dialog .tool-card { min-height: 157px; }
dialog.confirm-dialog { width: min(530px, calc(100% - 36px)); text-align: center; padding: 38px; }
dialog.confirm-dialog h2 { margin: 0 0 20px; font-size: 30px; }
dialog.confirm-dialog p { color: #777f8b; font-size: 19px; line-height: 1.6; }
dialog.confirm-dialog .actions { display: grid; grid-template-columns: 1fr 1fr; }
dialog.confirm-dialog .actions button { min-width: 0; padding-inline: 12px; }
.url-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.url-row .remove-url { color: #ed1616; border: 0; background: transparent; font-size: 47px; line-height: 1; padding: 0; flex: 0 0 42px; }
.add-url { display: block; margin: 0 auto; color: #05bd36; font-size: 66px; line-height: 1; font-weight: 500; background: transparent; border: 0; padding: 0 16px; }
.teacher-room-screen { padding-top: 50px; }
.teacher-room-screen .large-card { min-height: 300px; }
.comment-area { margin-top: 48px; }
.comment-form { display: flex; align-items: stretch; gap: 12px; }
.comment-form input { min-height: 65px; font-size: 25px; }
.comment-form button { flex: 0 0 74px; font-size: 41px; padding: 0; }
.comment-list { margin-top: 30px; }
.comment-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 5px; border-bottom: 1px solid #d6d9dd; }
.comment-row p { margin: 0; font-size: 23px; white-space: pre-wrap; overflow-wrap: anywhere; }
.delete-comment { background: transparent; border: 0; padding: 6px; flex: 0 0 40px; }
.delete-comment svg { width: 27px; height: 29px; }
.legacy-comments { margin-top: 25px; }
.legacy-comments summary { cursor: pointer; color: #626974; padding: 12px 0; }
.board-screen { width: min(1440px, calc(100% - 64px)); margin-inline: auto; padding: 14px 0 120px; }
.padlet-link { display: block; width: 100%; min-height: 75px; font-size: 25px; padding: 21px; margin: 0 0 26px; }
.board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.post-card { display: block; min-width: 0; width: 100%; border: 1px solid #c3c5c9; border-radius: 6px; padding: 16px; margin: 0; overflow-wrap: anywhere; }
.post-card h3 { font-size: 23px; margin-bottom: 13px; line-height: 1.35; }
.post-image { display: block; width: 100%; max-height: 330px; object-fit: contain; border-radius: 4px; margin-bottom: 12px; background: #fafafa; }
.post-body { white-space: pre-wrap; font-size: 17px; line-height: 1.65; margin: 10px 0; }
.post-body.collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.post-download { display: block; width: 100%; text-align: left; padding: 8px 0; border: 0; background: transparent; font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.post-footer time, .post-nickname { font-size: 12px; color: #777f88; }
.post-footer button { font-size: 14px; }
.post-card audio { max-width: 100%; width: 100%; }
.post-card video { max-width: 100%; }
.more-button { display: block; margin: 20px auto; }
dialog.composer-dialog { width: min(880px, calc(100% - 36px)); padding: 36px; }
.composer-dialog h2 { margin-bottom: 32px; }
.composer-dialog textarea { min-height: 155px; }
.file-upload-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.file-upload-row label { display: inline-block; margin: 0; padding: 14px 25px; cursor: pointer; font-size: 19px; }
.file-help { font-size: 16px; color: #757e8b; line-height: 1.6; margin: 0; }
.file-list { margin-top: 12px; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; padding: 6px 0; overflow-wrap: anywhere; }
.file-row button { border: 0; background: transparent; color: #d62828; font-size: 25px; padding: 2px 6px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + label { outline: 3px solid #42546a; outline-offset: 3px; }
.drag-over { outline: 2px dashed #687c90; outline-offset: 8px; }
.upload-progress { width: 100%; height: 5px; margin-top: 10px; }
.file-preview-image { max-width: 100%; max-height: 65svh; object-fit: contain; display: block; margin: auto; }
.resource-list { display: grid; gap: 12px; }
.resource-list a, .resource-list button { display: block; width: 100%; text-align: left; overflow-wrap: anywhere; }
.resource-heading { font-size: 23px; margin: 24px 0 12px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 13px 22px; color: #fff; background: #2a2d31; border-radius: 5px; width: max-content; max-width: calc(100% - 40px); z-index: 10; font-size: 17px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1050px) { .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .large-card { min-height: 280px; padding: 18px; font-size: 43px; } .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } dialog.selection-dialog .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { .navigation { min-height: 64px; padding: 10px 20px; } .navigation nav { gap: 16px; } .text-button { font-size: 17px; } .screen { width: calc(100% - 36px); } .center-screen { min-height: calc(100svh - 64px); padding-bottom: 70px; } .home-screen { min-height: 100svh; padding-block: 30px; } .large-menu { gap: 14px; } .large-menu.two { gap: 18px; } .large-card { min-height: 210px; font-size: 30px; padding: 16px 8px; } .home-screen .large-card { min-height: 280px; font-size: 49px; } .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; } .lecture-grid { width: calc(100% - 36px); padding-top: 25px; } .lecture-card { min-height: 205px; } .lecture-card strong { font-size: 23px; } .lecture-card .instructor { font-size: 17px; } .lecture-card .entry-code { font-size: 21px; } .setting-button { font-size: 28px; min-height: 102px; } .setting-button small { font-size: 18px; } .setting-button.wide { min-height: 112px; } .lecture-settings { padding-top: 25px; } .settings-actions button { min-width: 145px; font-size: 23px; } .login-form { max-width: 570px; } .login-form input { min-height: 80px; font-size: 30px; } .login-form button[type=submit] { min-height: 78px; font-size: 30px; } .login-form label { font-size: 20px; } .board-screen { width: calc(100% - 36px); } .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .teacher-room-screen .large-card { min-height: 220px; } .comment-form input { font-size: 20px; } .comment-row p { font-size: 19px; } dialog, dialog.small-dialog, dialog.composer-dialog { padding: 26px; } dialog h2 { font-size: 29px; margin-bottom: 28px; } dialog.selection-dialog .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .floating-action { right: 20px; bottom: 20px; font-size: 21px; min-height: 54px; padding: 10px 20px; } }
@media (max-width: 500px) { .large-menu:not(.two):not(.one) { grid-template-columns: 1fr; width: min(360px,100%); } .large-menu:not(.two):not(.one) .large-card { min-height: 140px; font-size: 34px; } .large-menu.two .large-card { min-height: 180px; font-size: 30px; } .home-screen .large-menu.two .large-card { min-height: 205px; font-size: 36px; } .center-screen { padding-bottom: 50px; } .lecture-settings { width: calc(100% - 30px); } .settings-grid { gap: 10px; } .setting-button { font-size: 22px; min-height: 90px; } .setting-button.wide { min-height: 98px; } .setting-button small { font-size: 16px; } .setting-button .big-check { font-size: 67px; } .settings-actions button { min-width: 0; font-size: 21px; padding: 12px 19px; } .card-grid { gap: 10px; } .lecture-card { min-height: 175px; padding: 20px 10px; gap: 12px; } .lecture-card strong { font-size: 20px; } .lecture-card .entry-code { font-size: 19px; } .tool-body { font-size: 18px; padding: 42px 12px; } .tool-card, .tool-body { min-height: 170px; } .page-title { font-size: 31px; margin-bottom: 20px; } .board-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); } dialog, dialog.small-dialog, dialog.composer-dialog, dialog.selection-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 24px 20px; } dialog.confirm-dialog { padding: 30px 20px; } dialog.confirm-dialog h2 { font-size: 26px; } dialog.confirm-dialog p { font-size: 17px; } dialog .actions button { min-width: 112px; font-size: 18px; padding: 12px 15px; } dialog.selection-dialog .tool-body { font-size: 16px; } .dialog-close { right: 12px; top: 15px; } .field label { font-size: 18px; } input, textarea { font-size: 17px; padding: 12px; } .file-upload-row { gap: 12px; } .file-help { font-size: 14px; } .teacher-room-screen { display: flex; flex-direction: column; align-items: center; padding-top: 20px; } .comment-area { width: 100%; margin-top: 32px; } .comment-form input { min-height: 52px; font-size: 17px; } .comment-form button { flex-basis: 52px; font-size: 30px; } .comment-row { padding-block: 14px; gap: 8px; } .comment-row p { font-size: 17px; } .code-row { gap: 12px; justify-content: center; } .code-row .entry-code { width: 100%; text-align: center; } .navigation { padding-inline: 16px; } .login-form .status { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.home-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.home-heading .page-title { margin: 0; }
.home-heading .actions { flex-wrap: wrap; margin: 0; }
.home-course-card { position: relative; min-width: 0; }
.home-course-card > .lecture-card { width: 100%; height: 100%; padding-top: 44px; }
.home-course-card .tool-pencil { z-index: 1; }
.home-heading .actions button { min-width: 0; }
.home-tabs { display: grid; grid-template-columns: 1fr 1fr; width: min(320px, 100%); margin: 0 auto 36px; padding: 5px; gap: 4px; border: 1px solid #dedfe2; border-radius: 999px; background: #f1f1f1; }
.home-tab { border: 0; border-radius: 999px; padding: 12px 28px; min-height: 50px; background: transparent; color: #62666c; font-size: 21px; font-weight: 700; }
.home-tab[aria-selected="true"] { background: #222; color: white; }
.home-tab:not([aria-selected="true"]):hover { background: #e5e5e5; }
.shared-tool-link { position: relative; text-decoration: none; padding-bottom: 44px; }
.tool-hostname { font-size: 16px !important; word-break: break-all; }
@media (max-width: 500px) { .home-tabs { margin-bottom: 28px; width: min(260px, 100%); } .home-tab { font-size: 19px; min-height: 46px; padding: 10px 22px; } .tool-hostname { font-size: 14px !important; } }
dialog.course-dialog { width: min(1220px, calc(100% - 48px)); max-height: calc(100svh - 40px); padding: 0; overflow: auto; overscroll-behavior: contain; }
.popup-header { position: sticky; top: 0; z-index: 4; background: white; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px; border-bottom: 1px solid #ddd; }
.popup-heading { min-width: 0; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.popup-heading h1 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
#popup-role { font-size: 15px; color: #666; white-space: nowrap; }
.popup-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.popup-actions .text-button { font-size: 16px; }
#popup-close { font-size: 31px; width: 36px; height: 38px; padding: 0; line-height: 1; }
#popup-back { font-size: 29px; width: 38px; height: 38px; padding: 0; line-height: 1; }
.popup-panel { padding: 28px; min-width: 0; }
.popup-panel .panel-title { font-size: 29px; margin: 0 0 28px; }
.popup-panel .large-menu { width: 100%; }
.popup-panel .large-card { min-height: 240px; font-size: 46px; }
.popup-panel.lecture-settings { width: min(900px,100%); margin: 0 auto; }
.popup-panel .login-form { margin: 0 auto; max-width: 620px; }
.popup-panel .login-form input { min-height: 70px; }
.popup-panel .login-form button[type=submit] { min-height: 68px; font-size: 27px; }
.small-panel, .tool-panel, .confirm-panel { max-width: 760px; margin: auto; }
.section-action { display: block; margin: 20px 0; }
.board-panel .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-panel .section-action { margin: 0 0 24px auto; }
.post-actions { display: flex; gap: 12px; }
.post-actions .text-button { min-width: 35px; }
.named-url-row { align-items: flex-start; padding: 16px; border: 1px solid #ddd; border-radius: 5px; }
.url-inputs { flex: 1; min-width: 0; }
.url-inputs .field { margin-bottom: 12px; }
.url-inputs label { font-size: 17px; }
.named-url-row .remove-url { margin-top: 28px; }
.setting-button .setting-label { font-size: inherit; }
.setting-button:has(.big-check) .setting-label { font-size: 19px; }
.setting-button .big-check { font-size: 58px; }
.selection-panel .tool-body { flex-direction: column; gap: 12px; }
.tool-preview { display: block; padding: 8px; text-align: center; font-size: 14px; }
.tool-edit { position: absolute; top: 8px; right: 8px; padding: 5px 10px; font-size: 15px; }
.tool-library-panel a.tool-body { text-decoration: none; }
.composer-panel { max-width: 900px; margin: auto; }
.code-row input.entry-code { max-width: 230px; text-align: center; }
.code-screen input.issued-code { text-align: center; }
.toast { z-index: 100; }
.inline-basics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inline-url-section { margin: 8px 0 28px; padding-top: 18px; border-top: 1px solid #e1e4e9; }
.inline-url-section h3 { font-size: 21px; margin: 0 0 14px; }
.inline-settings-form .url-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
.inline-settings-form .url-inputs .status { grid-column: 1 / -1; }
.inline-settings-form .url-inputs .field { margin: 0; }
.inline-settings-form .named-url-row { margin-bottom: 10px; }
.inline-tool-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 250px; overflow-y: auto; }
.inline-tool-choice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; background: #f5f6f8; border-radius: 5px; font-size: 16px; cursor: pointer; overflow-wrap: anywhere; }
.inline-tool-choice input { flex: 0 0 20px; width: 20px; height: 20px; accent-color: #174bc4; }
.tool-selection-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.tool-selection-header h3 { margin: 0; }
.tool-selection-header input { width: min(240px, 50%); min-width: 0; }
.inline-tool-row { display: flex; align-items: center; background: #f5f6f8; border-radius: 5px; min-width: 0; }
.inline-tool-row[hidden] { display: none; }
.inline-tool-row .inline-tool-choice { flex: 1; min-width: 0; }
.tool-preview { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; margin-right: 4px; color: #475569; border-radius: 5px; }
.tool-preview:hover { background: #e3e8f0; color: #174bc4; }
@media (max-width: 600px) { .inline-basics, .inline-settings-form .url-inputs, .inline-tool-choices { grid-template-columns: 1fr; } .inline-basics { gap: 0; } }
.popup-panel .settings-actions { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding: 16px 0; background: #fff; border-top: 1px solid #dce2ec; box-shadow: 0 -10px 18px #ffffffed; }
.settings-actions #lecture-form-status { flex-basis: 100%; margin: 0; }
.settings-actions #save-lecture { flex: 1; min-height: 64px; border: 2px solid #174bc4; background: #174bc4; color: #fff; font-size: 27px; font-weight: 800; box-shadow: 0 3px 8px #174bc433; }
.settings-actions #save-lecture:hover { background: #103a9e; border-color: #103a9e; }
.settings-actions #save-lecture:disabled { background: #6b7fae; border-color: #6b7fae; cursor: wait; }
.settings-actions #delete-lecture { min-width: 110px; font-size: 18px; padding-inline: 16px; }
@media (max-width: 500px) { .settings-actions #save-lecture { min-height: 58px; font-size: 23px; } .settings-actions #delete-lecture { min-width: 82px; font-size: 16px; padding-inline: 10px; } }
@media(max-width: 760px) {
  dialog.course-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 0; }
  .popup-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .popup-heading { width: 100%; padding-right: 35px; }
  .popup-heading h1 { font-size: 19px; }
  .popup-actions { width: 100%; gap: 15px; }
  #popup-close { position: absolute; right: 12px; top: 8px; }
  #popup-back { position: absolute; right: 60px; top: 8px; }
  .popup-header:has(#popup-back:not([hidden])) .popup-heading { padding-right: 88px; }
  .popup-panel { padding: 22px 18px; }
  .popup-panel .panel-title { font-size: 25px; margin-bottom: 20px; }
  .popup-panel .large-card { min-height: 175px; font-size: 32px; }
  .board-panel .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .popup-panel .actions { flex-wrap: wrap; }
  .popup-panel .actions button { min-width: 0; }
}
@media(max-width: 500px) {
  .popup-panel .large-menu { grid-template-columns: 1fr; }
  .popup-panel .large-menu .large-card { min-height: 115px; font-size: 32px; }
  .board-panel .board-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .popup-panel.lecture-settings { width: 100%; }
  .popup-panel .settings-grid { gap: 10px; }
  .popup-panel .setting-button { font-size: 21px; }
  .named-url-row { padding: 12px; gap: 5px; }
  .named-url-row .remove-url { flex-basis: 28px; font-size: 32px; }
  .popup-actions .text-button { font-size: 14px; }
  .popup-panel .code-row input.entry-code { max-width: 100%; }
}

.tool-detail { display: block; font-size: 16px; font-weight: 400; color: #596273; margin-top: 8px; overflow-wrap: anywhere; }
.tool-instructor { font-size: 14px; }
.tool-body:has(.tool-detail) { flex-direction: column; }

 .class-tags-field { min-width: 0; }
.class-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.class-tags-field select { width: 100%; min-width: 0; border: 1px solid #bac1ce; border-radius: 4px; background: white; color: #171717; font: inherit; font-size: 22px; padding: 18px 14px; }
.selected-class-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.selected-class-tag { min-height: 0; padding: 5px 10px; font-size: 14px; border-radius: 14px; background: #e8efff; border: 0; color: #234c9f; }
@media (max-width: 500px) { .class-tags-field select { font-size: 17px; padding: 12px; } }
.class-tag { border-radius: 14px; background: #e8efff; color: #234c9f; padding: 4px 10px; font-size: 14px; font-weight: 400; }

.tool-panel .tool-form-actions { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: nowrap; gap: 12px; padding: 16px 0; margin-top: 24px; background: #fff; border-top: 1px solid #dce2ec; box-shadow: 0 -10px 18px #ffffffed; }
.tool-panel .tool-form-actions button[type=submit] { flex: 1; min-width: 0; min-height: 64px; background: #174bc4; border-color: #174bc4; color: white; font-size: 27px; font-weight: 800; }
.tool-panel .tool-form-actions .danger { min-width: 110px; font-size: 18px; padding-inline: 16px; }
@media (max-width: 500px) { .tool-panel .tool-form-actions button[type=submit] { min-height: 58px; font-size: 23px; } .tool-panel .tool-form-actions .danger { min-width: 82px; font-size: 16px; padding-inline: 10px; } }

.inline-basics #lecture-date, .inline-basics #lecture-tags { height: 56px; font-size: 20px; line-height: 28px; padding: 13px 16px; border-color: #bcc1c9; }
@media (max-width: 500px) { .inline-basics #lecture-date, .inline-basics #lecture-tags { height: 50px; font-size: 17px; line-height: 24px; padding: 12px; } }

/* Approved theme 6: color playboard without shadows. */
/* Surface-only proposal on the live 20260922-tool-footer stylesheet.
   No grid, ordering, navigation, field, or breakpoint changes. */
:root{--play-purple:#6038ef;--play-yellow:#ffff45;--play-lavender:#e7dcff;--play-coral:#ffc0c8;--play-ink:#18151d;--panel:#f1eaff;--line:#211b29;color:var(--play-ink);background:#faf7ff}
body{background:#faf7ff}
button,.button{border:2px solid var(--play-ink);border-radius:10px;background:#f1eaff;color:var(--play-ink)}
button:hover,.button:hover{background:#e7dcff}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--play-purple);outline-offset:4px}
.home-tabs{border:2px solid var(--play-ink);border-radius:12px;background:#fff;box-shadow:3px 3px 0 var(--play-ink)}
.home-tab{border:0;border-radius:7px;color:#473951}
.home-tab[aria-selected=true]{background:var(--play-purple);color:#fff}
.home-tab:not([aria-selected=true]):hover{background:var(--play-lavender)}
.page-title{font-weight:900;letter-spacing:-1.6px}
.home-heading .page-title::after{content:"";display:inline-block;width:15px;height:15px;margin:0 0 19px 11px;background:var(--play-yellow);border:2px solid var(--play-ink);transform:rotate(15deg);vertical-align:middle}
.home-course-card>.lecture-card{border:2px solid var(--play-ink);border-radius:12px;box-shadow:4px 4px 0 var(--play-ink);background:var(--play-lavender);color:var(--play-ink)}
.home-course-card:nth-child(4n+2)>.lecture-card{background:var(--play-yellow)}
.home-course-card:nth-child(4n+3)>.lecture-card{background:#fff}
.home-course-card:nth-child(4n)>.lecture-card{background:var(--play-coral)}
.home-course-card>.lecture-card:hover{filter:brightness(.975)}
.lecture-card strong{font-weight:900;letter-spacing:-.8px}
.lecture-card .instructor,.tool-detail{color:#51405f}
.home-course-card .tool-pencil{border:1.5px solid var(--play-ink);border-radius:7px;background:#fff9}
.home-course-card .tool-pencil:hover{background:#fff}
.home-course-card .tool-pencil svg{width:23px;height:23px}
.home-tool-card:nth-child(6n+1)>.lecture-card{background:var(--play-lavender)}
.home-tool-card:nth-child(6n+2)>.lecture-card{background:#fff}
.home-tool-card:nth-child(6n+3)>.lecture-card{background:var(--play-yellow)}
.home-tool-card:nth-child(6n+4)>.lecture-card{background:#fff}
.home-tool-card:nth-child(6n+5)>.lecture-card{background:#f0e9ff}
.home-tool-card:nth-child(6n)>.lecture-card{background:#ffe1e4}
.floating-action{background:var(--play-yellow);border:2px solid var(--play-ink);border-radius:11px;box-shadow:4px 4px 0 var(--play-ink),0 0 0 8px #faf7ff;font-weight:900}
.floating-action:hover{background:#f5ef33}
.class-tag{background:#fff8;color:#50319c;border:1px solid #b8a1db;border-radius:6px}
dialog.course-dialog{border:2px solid var(--play-ink);border-radius:15px;box-shadow:6px 6px 0 var(--play-ink);background:#fff}
dialog::backdrop{background:#281d415c}
.popup-header{background:#f5efff;border-bottom:2px solid var(--play-ink)}
.popup-heading h1{font-weight:900;letter-spacing:-.5px}
.popup-actions .text-button{background:#fff;border:1.5px solid var(--play-ink);border-radius:7px}
.popup-panel .panel-title{font-weight:900;letter-spacing:-.8px}
.popup-panel .large-card{border:2px solid var(--play-ink);border-radius:12px;background:var(--play-lavender);box-shadow:4px 4px 0 var(--play-ink);font-weight:900}
.popup-panel .large-card:nth-child(2){background:var(--play-yellow)}
.popup-panel .large-card:nth-child(3){background:var(--play-coral)}
.popup-panel .large-card:hover{filter:brightness(.975)}
input,textarea,.class-tags-field select{border:1.5px solid #9c81b8;border-radius:7px;background:#fff;color:var(--play-ink)}
input:focus,textarea:focus{border-color:var(--play-purple)}
.resource-list>a,.resource-list>button,.tool-body{border:2px solid var(--play-ink);border-radius:10px;background:#f3edff;box-shadow:3px 3px 0 var(--play-ink)}
.comment-row{border-color:#d8c9eb}
.post-card{border:2px solid var(--play-ink);border-radius:10px;box-shadow:3px 3px 0 var(--play-ink)}
.section-action,.popup-panel .login-form button[type=submit],.composer-panel button[type=submit]{background:var(--play-yellow);box-shadow:3px 3px 0 var(--play-ink);font-weight:800}
.inline-tool-row,.inline-tool-choice{background:#f6f0ff;border-radius:8px}
.inline-tool-choice input{accent-color:var(--play-purple)}
.selected-class-tag{background:var(--play-lavender);color:#50319c}
.settings-actions #save-lecture,.tool-panel .tool-form-actions button[type=submit]{background:var(--play-purple);border-color:var(--play-ink);box-shadow:3px 3px 0 var(--play-ink);color:white}
.settings-actions #save-lecture:hover,.tool-panel .tool-form-actions button[type=submit]:hover{background:#4b26cd}
.popup-panel .settings-actions,.tool-panel .tool-form-actions{border-top-color:#d7c7ed}
.danger{background:#fff3f4;color:#ba193d;border-color:#ba193d}
.text-button{border:0}
.toast{border:2px solid var(--play-ink);border-radius:9px;background:var(--play-ink);color:#fff}


/* 06: Theme 1 with only shadows removed, including hover and dialog states. */
*,*::before,*::after{box-shadow:none!important;text-shadow:none!important}

.room-copy-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding: 16px 20px; border: 2px solid var(--play-ink); border-radius: 10px; background: #f5efff; }
.room-copy-prompt { flex: 1 1 160px; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.room-copy-actions .text-button { flex-shrink: 0; min-height: 44px; border: 1.5px solid var(--play-ink); border-radius: 7px; background: #fff; padding: 8px 16px; color: var(--play-purple); font-size: 16px; font-weight: 700; }
.room-copy-actions .text-button:hover { background: var(--play-lavender); }
@media (max-width: 500px) { .room-copy-actions { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; } .room-copy-prompt { flex: none; font-size: 16px; } .room-copy-actions .text-button { width: 100%; } }

.home-search { position: relative; margin: 0 0 24px; }
.home-search input { padding-left: 52px; padding-right: 52px; border: 2px solid var(--play-ink); background: #fff7c2; border-radius: 10px; }
.home-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.home-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; background: transparent; font-size: 26px; }
.home-search-clear[hidden], .home-course-card[hidden] { display: none; }

.home-search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); display: flex; color: var(--play-ink); pointer-events: none; }
.home-search input::placeholder { color: #665526; opacity: 1; }
.home-search:focus-within input { border-color: var(--play-purple); outline: 2px solid var(--play-purple); outline-offset: 2px; }
.home-search-count { margin: -12px 0 20px; font-size: 16px; font-weight: 700; color: var(--play-ink); }

/* Tool tags: compact card badges and optional three-tag selection. */
.tool-tags { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:12px; }
.tool-tag { font-size:14px; line-height:1.4; padding:4px 9px; border:1px solid var(--play-purple, #7656be); border-radius:20px; background:#f2edff; color:#493277; }
.tool-tag-picker { border:0; padding:0; margin:24px 0; min-width:0; }
.tool-tag-picker legend { font-size:20px; font-weight:700; margin-bottom:12px; }
.tool-tag-options { display:flex; flex-wrap:wrap; gap:8px; }
.tool-tag-option { display:flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid #c6bdd8; border-radius:20px; cursor:pointer; font-size:16px; }
.tool-tag-option input { width:18px; height:18px; margin:0; accent-color:var(--play-purple, #7656be); }
.tool-tag-option:has(input:checked) { background:#eee5ff; border-color:var(--play-purple, #7656be); }
.tool-tag-option:has(input:disabled) { opacity:.5; cursor:default; }
/* Materials and Padlet share a square, whole-card link. */
.destination-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr)); gap:16px; margin:0 0 28px; }
a.destination-card, .html-pending { display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:1; padding:20px; border:2px solid var(--play-ink,#202020); border-radius:12px; background:#f3edff; color:var(--play-ink,#202020); font-size:22px; font-weight:700; line-height:1.5; text-align:center; text-decoration:none; word-break:keep-all; overflow-wrap:anywhere; }
a.destination-card:hover { background:#e6dbff; }
a.destination-card:focus-visible { outline:3px solid var(--play-purple,#6738ed); outline-offset:3px; }
@media(max-width:540px) { .destination-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } a.destination-card, .html-pending { padding:12px; font-size:18px; } }

/* Tool browsing: one exact tag combined with the current search text. */
.home-search.has-tag-filters { margin-bottom: 14px; }
.home-tag-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.home-tag-filter { min-height: 44px; padding: 9px 17px; border: 1px solid #c6bdd8; border-radius: 999px; background: #fff; color: var(--play-ink); font-size: 16px; line-height: 1.4; white-space: nowrap; }
.home-tag-filter:hover { background: var(--play-lavender); border-color: var(--play-purple); }
.home-tag-filter[aria-pressed="true"] { background: var(--play-purple); color: #fff; border-color: var(--play-purple); }
.home-tag-filter:focus-visible { outline-color: var(--play-purple); }
@media (max-width: 500px) { .home-tag-filters { gap: 7px; } .home-tag-filter { padding: 9px 13px; font-size: 15px; } }

/* Keep the all-tools reset distinct from the category filters. */
.home-tag-filter[data-tag=""] { background: #fff3a3; border-color: #8f7515; color: var(--play-ink); font-weight: 800; }
.home-tag-filter[data-tag=""]:hover { background: #ffed69; }
.home-tag-filter[data-tag=""][aria-pressed="true"] { background: var(--play-yellow); border-color: var(--play-ink); outline: 2px solid var(--play-ink); outline-offset: -3px; }
.home-tag-filter[data-tag=""]:focus-visible { outline: 3px solid var(--play-purple); outline-offset: 3px; }

.upload-limit-settings { border: 0; padding: 0; margin: 20px 0 0; }
.upload-limit-settings legend { font-weight: 700; margin-bottom: 8px; }
.upload-limit-toggle { margin-right: 8px; }
.upload-limit-toggle[aria-pressed="true"] { background: var(--play-yellow); border-color: var(--play-ink); box-shadow: inset 0 0 0 1px var(--play-ink); }
.upload-limit-notice { font-size: 12px; line-height: 1.5; margin-top: 8px; }

/* Keep the original square resource cards; only add text below them. */
.html-material { min-width:0; }
.html-material > .destination-card { min-height:0; overflow:hidden; }
.html-material-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.html-countdown { margin:8px 0 0; text-align:center; font-size:14px; line-height:1.5; font-variant-numeric:tabular-nums; color:#514078; }
.html-countdown.expired { color:#666; }
.html-settings-row { padding:8px 0; }
.html-settings-row .text-button { margin-right:12px; }

.html-pending { background:#e6e7eb; color:#4b5260; flex-direction:column; gap:8px; cursor:default; }
.html-pending-name { font-size:18px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.html-percent { font-size:32px; line-height:1.2; }
.html-phase { font-size:13px; font-weight:400; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden; }
@media(max-width:540px) { .html-material-name { -webkit-line-clamp:3; } .html-pending { padding:10px; gap:4px; } .html-pending-name { font-size:14px; line-height:1.35; } .html-percent { font-size:24px; } .html-phase { font-size:12px; line-height:1.3; } }
