:root {
  --ink: #f4f0e7;
  --muted: #9d9aa3;
  --line: rgba(255, 255, 255, .14);
  --accent: #ffb55b;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #05050a; }

body { color: var(--ink); font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.scene { position: relative; width: 100%; height: 100%; isolation: isolate; cursor: crosshair; background: radial-gradient(circle at 52% 45%, #13111e 0, #080810 35%, #05050a 75%); }
.scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }

#fireworks { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro, .hud, .controls, .signature { position: absolute; z-index: 2; pointer-events: none; }
.intro { left: clamp(24px, 7vw, 112px); top: clamp(34px, 10vh, 108px); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #bdb9c2; font: 500 10px/1 DM Mono, monospace; letter-spacing: .18em; }
.live-dot, .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1 { max-width: 430px; margin: 21px 0 10px; font-size: clamp(37px, 5.3vw, 76px); line-height: .98; letter-spacing: -.075em; font-weight: 700; }
h1 em { color: var(--accent); font-style: normal; }
.intro p { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .01em; }

.top-right { top: clamp(35px, 8vh, 84px); right: clamp(24px, 7vw, 112px); text-align: right; }
.version-tag { margin-bottom: 14px; color: var(--accent); font: 500 9px/1 DM Mono, monospace; letter-spacing: .16em; }
.version-switcher { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 220px; margin-bottom: 16px; padding: 3px; border: 1px solid var(--line); border-radius: 14px; pointer-events: auto; }
.version-option { min-width: 31px; padding: 5px 7px; border: 0; border-radius: 99px; color: #777581; background: transparent; font: 500 9px/1 DM Mono, monospace; cursor: pointer; }
.version-option:hover { color: #eee8df; }
.version-option.active { color: #171217; background: var(--accent); }
.status { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #bdb9c2; font: 400 10px/1 DM Mono, monospace; letter-spacing: .08em; }
.count { margin-top: 18px; font: 400 42px/1 DM Mono, monospace; letter-spacing: -.09em; }
.count small { margin-left: 8px; color: #777581; font: 400 10px/1 Manrope, sans-serif; letter-spacing: .08em; }

.bottom-left { left: clamp(24px, 7vw, 112px); bottom: clamp(30px, 7vh, 72px); display: flex; gap: 20px; }
.key-hint { display: flex; align-items: center; gap: 8px; color: #777581; font: 400 10px/1 DM Mono, monospace; letter-spacing: .04em; }
kbd { min-width: 30px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 5px; color: #c5c0c8; text-align: center; font: inherit; }

.controls { right: clamp(24px, 7vw, 112px); bottom: clamp(28px, 6vh, 65px); display: flex; gap: 8px; pointer-events: auto; }
.control-button { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid rgba(255, 181, 91, .55); border-radius: 99px; color: #171217; background: var(--accent); font: 600 11px Manrope, sans-serif; cursor: pointer; transition: transform .2s, background .2s; }
.control-button:hover { transform: translateY(-2px); background: #ffc781; }
.control-button.ghost { border-color: var(--line); color: #bbb7c0; background: rgba(255,255,255,.03); }
.control-button.ghost:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.button-icon { font-size: 15px; line-height: 0; }
.shape-picker { position: absolute; z-index: 2; left: 50%; bottom: clamp(28px, 6vh, 65px); display: flex; align-items: center; gap: 12px; pointer-events: auto; transform: translateX(-50%); }
.shape-picker[hidden] { display: none; }
.shape-label { color: #777581; font: 400 9px/1 DM Mono, monospace; letter-spacing: .12em; white-space: nowrap; }
.shape-options { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: rgba(8, 8, 14, .7); backdrop-filter: blur(7px); }
.shape-option { padding: 7px 10px; border: 0; border-radius: 99px; color: #8f8b95; background: transparent; font: 500 10px Manrope, sans-serif; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.shape-option:hover { color: #eee8df; }
.shape-option.selected { color: #171217; background: var(--accent); }
.text-input { width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: 500 12px Manrope, sans-serif; transition: width .25s, padding .25s; }
.text-input:not(:disabled) { width: 92px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.06); }
.text-input::placeholder { color: #777581; }
.collab-panel { position: absolute; z-index: 3; left: 50%; top: clamp(29px, 7vh, 70px); display: grid; gap: 8px; min-width: 240px; padding: 12px; border: 1px solid rgba(154, 225, 255, .25); border-radius: 12px; background: rgba(8, 10, 19, .75); backdrop-filter: blur(8px); transform: translateX(-50%); }
.collab-panel[hidden] { display: none; }
.collab-label { display: flex; align-items: center; gap: 7px; color: #9f9ba5; font: 400 9px/1 DM Mono, monospace; letter-spacing: .04em; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #777581; }
.connection-dot.connected { background: #8ee2a6; box-shadow: 0 0 10px #8ee2a6; }
.collab-form { display: flex; gap: 5px; }
.collab-form input { width: 120px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); background: rgba(255,255,255,.06); font: 500 11px Manrope, sans-serif; }
.collab-form input:focus { border-color: rgba(154, 225, 255, .6); }
.collab-form .control-button { padding: 8px 11px; color: #0d1416; background: #9ae1ff; border-color: rgba(154, 225, 255, .6); }
.room-controls { display: flex; gap: 5px; }
.room-controls[hidden], .room-hint[hidden] { display: none; }
.room-controls input { width: 78px; padding: 8px 10px; border: 1px solid rgba(255,181,91,.35); border-radius: 7px; outline: none; color: var(--ink); background: rgba(255,255,255,.06); font: 500 11px DM Mono, monospace; text-transform: uppercase; }
.room-controls input[type="password"] { width: 92px; text-transform: none; }
.room-controls input:focus { border-color: var(--accent); }
.room-button { padding: 8px 10px; border: 1px solid rgba(255,181,91,.45); border-radius: 7px; color: #171217; background: var(--accent); font: 600 10px Manrope, sans-serif; cursor: pointer; }
.room-hint { color: #bdb9c2; font: 400 8px/1.3 DM Mono, monospace; }
.lobby-panel { position: absolute; z-index: 3; left: 50%; bottom: clamp(28px, 6vh, 65px); display: flex; gap: 6px; padding: 5px; border: 1px solid rgba(208,156,255,.35); border-radius: 99px; background: rgba(15,10,22,.82); backdrop-filter: blur(8px); transform: translateX(-50%); pointer-events: auto; }
.lobby-panel[hidden] { display: none; }
.lobby-panel input { width: 190px; padding: 8px 11px; border: 0; outline: 0; color: var(--ink); background: transparent; font: 400 11px Manrope, sans-serif; }
.lobby-panel input::placeholder { color: #827b8e; }
.editor-panel { position: absolute; z-index: 4; left: clamp(24px, 7vw, 112px); bottom: 90px; display: grid; gap: 11px; width: 270px; padding: 17px; border: 1px solid rgba(255,181,91,.3); border-radius: 14px; background: rgba(15,13,20,.9); box-shadow: 0 14px 45px rgba(0,0,0,.35); backdrop-filter: blur(10px); pointer-events: auto; }
.editor-panel[hidden], .work-gallery[hidden] { display: none; }
.editor-title { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 3px; color: var(--accent); font: 500 10px DM Mono, monospace; letter-spacing: .12em; }.editor-title small { color: #89838f; font: 10px Manrope, sans-serif; letter-spacing: 0; }
.editor-panel label { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 8px; color: #aaa5af; font-size: 10px; }.editor-panel input[type="text"], .editor-panel select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: rgba(255,255,255,.06); font: 11px Manrope, sans-serif; }.editor-panel select option { color: #111; }.editor-panel input[type="color"] { width: 42px; height: 25px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }.editor-panel input[type="range"] { width: 100%; accent-color: var(--accent); }.editor-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }.editor-row label { display: flex; gap: 7px; }.editor-row input { min-width: 0; }.editor-actions { display: flex; gap: 6px; }.editor-actions .room-button { flex: 1; }.room-button.secondary { color: #f0dfff; border-color: rgba(208,156,255,.45); background: rgba(208,156,255,.16); }.test-work-button { padding: 8px; border: 1px solid rgba(154,225,255,.45); border-radius: 7px; color: #9ae1ff; background: rgba(154,225,255,.08); font: 600 10px Manrope, sans-serif; cursor: pointer; }.test-work-button.active { color: #0d1416; background: #9ae1ff; box-shadow: 0 0 16px rgba(154,225,255,.25); }.work-status { color: #777581; font: 9px DM Mono, monospace; }.ai-panel { position: absolute; z-index: 4; left: clamp(24px, 7vw, 112px); top: 25%; display: grid; gap: 10px; width: 290px; padding: 17px; border: 1px solid rgba(208,156,255,.4); border-radius: 14px; background: rgba(15,13,24,.92); box-shadow: 0 14px 45px rgba(0,0,0,.35); backdrop-filter: blur(10px); pointer-events: auto; }.ai-panel[hidden] { display: none; }.ai-title { display: flex; align-items: baseline; justify-content: space-between; color: #d09cff; font: 500 10px DM Mono, monospace; letter-spacing: .12em; }.ai-title small { color: #89838f; font: 10px Manrope, sans-serif; letter-spacing: 0; }.ai-panel textarea { width: 100%; min-height: 64px; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); background: rgba(255,255,255,.06); font: 11px/1.5 Manrope, sans-serif; }.ai-panel textarea:focus { border-color: rgba(208,156,255,.7); }.ai-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.ai-actions button { padding: 8px 4px; border: 1px solid rgba(208,156,255,.35); border-radius: 7px; color: #f0dfff; background: rgba(208,156,255,.13); font: 600 10px Manrope, sans-serif; cursor: pointer; }.ai-actions button:hover { background: rgba(208,156,255,.28); }.ai-result { min-height: 25px; color: #aaa5af; font: 9px/1.45 DM Mono, monospace; }
.birthday-panel { position: absolute; z-index: 4; left: clamp(24px, 7vw, 112px); top: 22%; display: grid; gap: 10px; width: 260px; padding: 17px; border: 1px solid rgba(154, 225, 255, .38); border-radius: 14px; background: rgba(10, 14, 24, .92); box-shadow: 0 14px 45px rgba(0,0,0,.35); backdrop-filter: blur(10px); pointer-events: auto; }
.birthday-panel[hidden] { display: none; }
.birthday-title { display: flex; align-items: baseline; justify-content: space-between; color: #9ae1ff; font: 500 10px DM Mono, monospace; letter-spacing: .12em; }
.birthday-title small { color: #89838f; font: 10px Manrope, sans-serif; letter-spacing: 0; }
.birthday-fields { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 6px; }
.birthday-fields label { display: grid; gap: 4px; color: #858895; font: 9px DM Mono, monospace; }
.birthday-fields input { width: 100%; padding: 8px 7px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); background: rgba(255,255,255,.06); font: 12px Manrope, sans-serif; }
.birthday-fields input:focus { border-color: rgba(154, 225, 255, .65); }
.birthday-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.birthday-actions button { padding: 9px 6px; border: 1px solid rgba(154, 225, 255, .4); border-radius: 7px; color: #dff6ff; background: rgba(154, 225, 255, .12); font: 600 11px Manrope, sans-serif; cursor: pointer; }
.birthday-actions button:hover { background: rgba(154, 225, 255, .24); }
.birthday-actions button:last-child { border-color: rgba(255, 181, 91, .45); color: #ffcf8d; background: rgba(255, 181, 91, .12); }
.birthday-actions button:last-child:hover { background: rgba(255, 181, 91, .24); }
.birthday-preview { width: 100%; height: auto; aspect-ratio: 1; border: 1px solid rgba(154, 225, 255, .2); border-radius: 10px; background: radial-gradient(circle at 50% 45%, #14182a, #05060b 72%); image-rendering: auto; }
.birthday-status { min-height: 42px; color: #aaa5af; font: 9px/1.5 DM Mono, monospace; white-space: pre-line; }
.festival-panel { position: absolute; z-index: 4; left: clamp(20px, 5vw, 88px); top: auto; bottom: clamp(96px, 14vh, 140px); display: grid; gap: 7px; width: 228px; max-height: min(58vh, 480px); overflow: auto; padding: 12px; border: 1px solid rgba(255, 210, 120, .42); border-radius: 12px; background: rgba(18, 14, 10, .93); box-shadow: 0 14px 45px rgba(0,0,0,.35); backdrop-filter: blur(10px); pointer-events: auto; }
.festival-panel[hidden] { display: none; }
.festival-title { display: flex; align-items: baseline; justify-content: space-between; color: #ffd27a; font: 500 9px DM Mono, monospace; letter-spacing: .12em; }
.festival-title small { color: #89838f; font: 9px Manrope, sans-serif; letter-spacing: 0; }
.festival-theme-label { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 6px; color: #aaa5af; font-size: 9px; }
.festival-theme-label select { width: 100%; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: rgba(255,255,255,.06); font: 10px Manrope, sans-serif; }
.festival-theme-label select option { color: #111; }
.festival-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.festival-chip { padding: 5px 7px; border: 1px solid rgba(255, 210, 120, .28); border-radius: 99px; color: #e8d6b0; background: rgba(255, 210, 120, .08); font: 600 9px Manrope, sans-serif; cursor: pointer; }
.festival-chip:hover, .festival-chip.active { border-color: rgba(255, 210, 120, .7); color: #1a1208; background: #ffd27a; }
.festival-panel textarea { width: 100%; min-height: 40px; resize: vertical; padding: 7px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: rgba(255,255,255,.06); font: 10px/1.4 Manrope, sans-serif; }
.festival-panel textarea:focus { border-color: rgba(255, 210, 120, .7); }
.festival-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.festival-actions button, .festival-upload { padding: 7px 3px; border: 1px solid rgba(255, 210, 120, .38); border-radius: 6px; color: #ffe9c2; background: rgba(255, 210, 120, .12); font: 600 9px Manrope, sans-serif; cursor: pointer; text-align: center; }
.festival-actions button:hover, .festival-upload:hover { background: rgba(255, 210, 120, .24); }
.festival-actions button:last-child { border-color: rgba(255, 181, 91, .5); color: #ffcf8d; background: rgba(255, 181, 91, .14); }
.festival-preview { width: 100%; height: auto; aspect-ratio: 1; max-height: 160px; border: 1px solid rgba(255, 210, 120, .22); border-radius: 8px; background: radial-gradient(circle at 50% 42%, #2a2014, #05060b 74%); }
.festival-status { min-height: 32px; color: #aaa5af; font: 8px/1.45 DM Mono, monospace; white-space: pre-line; }
.work-gallery { position: absolute; z-index: 4; right: clamp(24px, 7vw, 112px); top: 28%; width: 220px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,12,19,.78); backdrop-filter: blur(8px); pointer-events: auto; }.gallery-title { display: flex; justify-content: space-between; margin-bottom: 9px; color: #aaa5af; font: 9px DM Mono, monospace; letter-spacing: .08em; }.gallery-title span { color: #777581; letter-spacing: 0; }.work-list { display: grid; gap: 6px; max-height: 230px; overflow: auto; }.work-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; padding: 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.035); cursor: pointer; }.work-card:hover { border-color: rgba(255,181,91,.5); background: rgba(255,181,91,.08); }.work-name { color: #f4f0e7; font-size: 11px; }.work-meta { color: #777581; font: 9px DM Mono, monospace; }.work-share, .work-delete { align-self: center; padding: 5px; border: 0; border-radius: 5px; color: #ffcf8d; background: rgba(255,181,91,.1); font: 9px Manrope, sans-serif; cursor: pointer; }.work-share { grid-row: 1; }.work-delete { grid-row: 2; color: #ff9e9e; background: rgba(255,100,100,.08); }
.danmaku-layer { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.danmaku { position: absolute; left: 100%; padding: 7px 13px; border: 1px solid currentColor; border-radius: 99px; background: rgba(10,8,16,.48); box-shadow: 0 0 18px currentColor; color: #d09cff; font: 500 13px Manrope, sans-serif; white-space: nowrap; animation: danmakuFly var(--duration) linear forwards; pointer-events: auto; cursor: pointer; transition: background .2s, transform .2s; }
.danmaku:hover { background: rgba(35, 25, 46, .9); transform: scale(1.06); }
.danmaku b { margin-right: 8px; color: #fff4d1; font-size: 10px; }
.danmaku .reply-mark { margin-right: 6px; color: #ffcf8d; font-size: 10px; }
.reply-notice { position: absolute; z-index: 6; left: 50%; top: 24px; display: flex; align-items: center; gap: 11px; min-width: 240px; padding: 11px 16px; border: 1px solid rgba(208,156,255,.65); border-radius: 12px; color: #f7efff; background: rgba(31, 20, 45, .93); box-shadow: 0 0 30px rgba(208,156,255,.25); transform: translateX(-50%); animation: noticeIn .3s ease-out; pointer-events: none; }
.reply-notice[hidden] { display: none; }
.reply-notice-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #171217; background: #d09cff; font-size: 17px; }
.reply-notice b { display: block; font-size: 12px; }.reply-notice small { display: block; max-width: 310px; margin-top: 3px; overflow: hidden; color: #c6b8d3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
@keyframes noticeIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes danmakuFly { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 100%)); } }
.merge-rule { color: #ffcf8d; font: 400 8px/1 DM Mono, monospace; letter-spacing: .03em; }
.signature { right: clamp(24px, 7vw, 112px); top: 50%; color: rgba(255,255,255,.24); font: 500 9px/1.4 DM Mono, monospace; letter-spacing: .13em; transform: translateY(-50%); text-align: right; pointer-events: auto; }
.signature span { font-size: 7px; color: rgba(255,255,255,.15); }
.signature .site-email { display: inline-block; margin-top: 8px; color: rgba(255,255,255,.38); font-size: 8px; letter-spacing: .02em; text-decoration: none; }
.signature .site-email:hover { color: var(--accent); }
.merge-debug { position: absolute; z-index: 5; left: 50%; top: 50%; display: grid; gap: 8px; min-width: 230px; padding: 20px 24px; border: 1px solid rgba(255, 228, 155, .7); border-radius: 13px; color: #fff7da; background: rgba(48, 31, 21, .86); box-shadow: 0 0 60px rgba(255, 181, 91, .32); text-align: center; pointer-events: none; transform: translate(-50%, -50%); animation: mergeFlash .55s ease-out; }
.merge-debug[hidden] { display: none; }
.merge-debug-kicker { color: var(--accent); font: 500 9px/1 DM Mono, monospace; letter-spacing: .16em; }
.merge-debug strong { font-size: 28px; letter-spacing: -.06em; }
.merge-debug span { color: #e7d8bd; font: 11px DM Mono, monospace; }
@keyframes mergeFlash { from { opacity: 0; transform: translate(-50%, -50%) scale(.75); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(9px); cursor: default; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(540px, 100%); padding: 34px; border: 1px solid rgba(255, 181, 91, .28); border-radius: 18px; background: linear-gradient(145deg, rgba(29, 24, 32, .97), rgba(10, 10, 16, .98)); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.teaching-card { width: min(1180px, calc(100vw - 36px)); max-height: min(88vh, 900px); overflow: auto; }
.teaching-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: 22px; align-items: start; }.teaching-content, .teaching-communication { min-width: 0; }.teaching-communication { position: sticky; top: 0; }.teaching-communication .teaching-all-title { margin-top: 22px; }
.communication-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.communication-heading .teaching-all-title { margin-bottom: 12px; }.communication-expand { padding: 7px 10px; border: 1px solid rgba(154,225,255,.35); border-radius: 7px; color: #9ae1ff; background: rgba(154,225,255,.08); font: 10px "DM Mono", monospace; cursor: pointer; }.communication-expand:hover { border-color: #9ae1ff; background: rgba(154,225,255,.16); }
.teaching-current { margin-top: 22px; padding: 20px; border: 1px solid rgba(208,156,255,.28); border-radius: 14px; background: rgba(208,156,255,.06); }.teaching-kicker { color: #d09cff; font: 600 14px "DM Mono", monospace; letter-spacing: .08em; }.teaching-current > p { margin: 12px 0 20px; color: #f0eee8; font-size: 16px; line-height: 1.7; }.teaching-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }.teaching-columns strong, .teaching-all-title, .teaching-block > strong { color: #ffb55b; font: 600 10px "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }.teaching-columns p, .teaching-block p { margin: 9px 0 0; color: #aaa8b4; font-size: 13px; line-height: 1.7; }.teaching-block { margin-top: 18px; }.teaching-block pre { max-height: 150px; margin: 9px 0 0; padding: 12px; overflow: auto; border: 1px solid rgba(154,225,255,.15); border-radius: 8px; color: #bdeaff; background: rgba(0,0,0,.22); white-space: pre-wrap; font: 11px/1.6 "DM Mono", monospace; }.teaching-block.warning { padding-top: 16px; border-top: 1px solid rgba(255,181,91,.18); }.teaching-block.warning > strong { color: #ffb55b; }.teaching-all-title { margin: 26px 0 12px; }.teaching-all { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.teaching-item { display: grid; grid-template-columns: 38px 1fr; gap: 2px 10px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #f0eee8; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; }.teaching-item:hover, .teaching-item.active { border-color: rgba(208,156,255,.55); background: rgba(208,156,255,.12); }.teaching-item span { grid-row: 1 / span 2; color: #9ae1ff; font: 12px "DM Mono", monospace; }.teaching-item strong { font-size: 12px; }.teaching-item small { color: #858895; font-size: 11px; line-height: 1.4; }
.communication-simulator { position: relative; padding: 15px; border: 1px solid rgba(154,225,255,.18); border-radius: 12px; background: rgba(0,0,0,.18); }.communication-stages { display: flex; flex-wrap: wrap; gap: 7px; }.communication-stage, .communication-actions button { padding: 8px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; color: #aaa8b4; background: rgba(255,255,255,.035); font: 10px "DM Mono", monospace; cursor: pointer; }.communication-stage:hover, .communication-stage.active, .communication-actions button:hover { border-color: rgba(154,225,255,.55); color: #dff6ff; background: rgba(154,225,255,.12); }.communication-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }.communication-actions button { border-color: rgba(255,181,91,.45); color: #ffcf8d; background: rgba(255,181,91,.1); }.communication-actions span { color: #858895; font-size: 11px; }.communication-canvas { position: relative; inset: auto; display: block; width: 100%; height: auto; margin: 14px 0 12px; border: 1px solid rgba(154,225,255,.18); border-radius: 10px; background: radial-gradient(circle at 50% 22%, rgba(39,42,72,.8), rgba(3,4,8,.96)); cursor: zoom-in; }.communication-message { padding: 10px 12px; border-left: 2px solid #d09cff; color: #d09cff; background: rgba(208,156,255,.06); font: 11px "DM Mono", monospace; }.communication-explanation { margin: 12px 0 0; color: #aaa8b4; font-size: 12px; line-height: 1.65; }.communication-collapse { display: none; }
.communication-simulator.is-expanded { position: fixed; inset: 24px; z-index: 30; overflow: auto; padding: 24px; border-color: rgba(154,225,255,.5); background: rgba(8,9,17,.98); box-shadow: 0 24px 90px rgba(0,0,0,.7); }.communication-simulator.is-expanded .communication-canvas { width: min(100%, 1100px); margin: 22px auto 18px; cursor: zoom-out; }.communication-simulator.is-expanded .communication-collapse { display: block; position: absolute; top: 20px; right: 20px; padding: 7px 11px; border: 1px solid rgba(255,181,91,.45); border-radius: 7px; color: #ffcf8d; background: rgba(255,181,91,.1); font: 10px "DM Mono", monospace; cursor: pointer; }.communication-simulator.is-expanded .communication-stages, .communication-simulator.is-expanded .communication-actions, .communication-simulator.is-expanded .communication-message, .communication-simulator.is-expanded .communication-explanation { max-width: 1100px; margin-left: auto; margin-right: auto; }
.modal-card h2 { margin: 25px 0 16px; color: #f4f0e7; font-size: 29px; letter-spacing: -.055em; }
.prompt-copy { margin: 0; color: #c5c0c8; font-size: 15px; line-height: 1.85; }
.prompt-note { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); color: #817d87; font: 400 10px/1.5 DM Mono, monospace; letter-spacing: .04em; }
.modal-close { position: absolute; top: 17px; right: 19px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: #aaa6af; background: transparent; font-size: 23px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.ai-title-actions { display: flex; align-items: center; gap: 9px; }.ai-title-actions button { padding: 5px 8px; border: 1px solid rgba(208,156,255,.4); border-radius: 6px; color: #f0dfff; background: rgba(208,156,255,.12); font: 600 9px Manrope, sans-serif; cursor: pointer; }.ai-title-actions button:hover { background: rgba(208,156,255,.24); }
.ai-config-dialog { width: min(490px, 100%); max-height: min(88vh, 760px); overflow: auto; }.ai-config-note { margin: 0 0 20px; color: #aaa5af; font-size: 12px; line-height: 1.65; }.ai-config-form { display: grid; gap: 13px; }.ai-config-form [hidden] { display: none; }.ai-config-form label { display: grid; gap: 6px; color: #c5c0c8; font-size: 11px; }.ai-config-form input, .ai-config-form select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: var(--ink); background: rgba(255,255,255,.06); font: 12px Manrope, sans-serif; }.ai-config-form select option { color: #111; }.ai-config-form input:focus, .ai-config-form select:focus { border-color: rgba(208,156,255,.7); }.ai-config-state { min-height: 16px; color: #aaa5af; font: 10px/1.5 DM Mono, monospace; }.ai-config-state.ready { color: #8ee2a6; }.ai-config-actions { display: flex; justify-content: space-between; gap: 8px; }.ai-config-actions button { padding: 9px 12px; border: 1px solid rgba(208,156,255,.38); border-radius: 7px; color: #f0dfff; background: rgba(208,156,255,.13); font: 600 10px Manrope, sans-serif; cursor: pointer; }.ai-config-actions button:hover { background: rgba(208,156,255,.25); }.ai-config-actions #clearAIConfig { border-color: var(--line); color: #aaa5af; background: transparent; }

@media (max-width: 800px) { .shape-picker { bottom: 82px; } .collab-panel { top: 28px; } }
@media (max-width: 900px) { .teaching-layout { grid-template-columns: 1fr; } .teaching-communication { position: static; } }
@media (max-width: 640px) { .intro { top: 34px; } .top-right { top: 36px; } .count { font-size: 30px; margin-top: 14px; } .bottom-left { gap: 10px; flex-direction: column; } .signature { display: none; } .controls { bottom: 28px; } .control-button { padding: 10px 12px; } .shape-picker { width: calc(100% - 48px); justify-content: center; bottom: 82px; gap: 6px; } .shape-label { display: none; } .shape-option { padding: 7px 8px; } .modal-card { padding: 28px 23px; } .teaching-columns, .teaching-all { grid-template-columns: 1fr; } .collab-panel { top: 76px; min-width: 218px; } .teaching-card { width: calc(100vw - 24px); } .communication-actions { align-items: flex-start; flex-direction: column; gap: 8px; } .communication-simulator.is-expanded { inset: 10px; padding: 16px; } .communication-simulator.is-expanded .communication-collapse { top: 12px; right: 12px; } }
