/* Additional pages use the prototype's existing type, color and radius scale. */
[hidden]{display:none!important}
.workspace-page{grid-column:2/-1;grid-row:1;min-width:0}
.layout[data-page]:not([data-page=calendar]){grid-template-areas:none}
.layout[data-page]:not([data-page=calendar]) .left-panel{grid-column:1;grid-row:1;grid-area:auto}
.profile-card[aria-current=page],.notice-button[aria-current=page]{border-color:var(--primary);background:var(--primary-soft,#edf2fa)}
.page-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:0 0 24px;min-height:48px}
.page-heading>div{display:flex;align-items:center;gap:12px}.page-heading h1{font-size:23px;font-weight:500}
.page-heading>p{font-size:12px;color:var(--muted)}.sample-label{font-size:10px;color:var(--muted);margin-left:auto}
.notice-workspace{display:grid;grid-template-columns:clamp(140px,12vw,180px) minmax(260px,1.15fr) minmax(280px,.85fr);gap:18px;align-items:start}
.notice-categories{display:flex;flex-direction:column;gap:7px}.notice-categories button{padding:12px 9px;text-align:left;border-color:transparent;background:transparent;font-size:13px}
.notice-categories button[aria-pressed=true]{background:var(--primary-soft,#edf2fa);border-color:var(--line);color:var(--primary);font-weight:500}
.notice-list-panel{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.notice-search{display:block;padding:16px 14px 12px;font-size:10px;color:var(--muted)}
.notice-search input{display:block;width:100%;margin-top:6px;padding:9px 10px;border:1px solid var(--line);border-radius:5px;font:inherit;font-size:12px;color:var(--ink);background:var(--bg)}
.notice-list-heading{display:flex;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--line);font-size:11px}.notice-list-heading>span{color:var(--muted)}
.notice-list{max-height:570px;overflow:auto;scrollbar-width:thin}
.notice-row{display:block;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;padding:14px;font-size:12px;line-height:1.6}
.notice-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.notice-row[aria-pressed=true]{background:#002664;color:white}.notice-row[aria-pressed=true] small{color:#cfdbef}
.notice-detail{min-height:650px;padding:24px;background:white;border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.notice-detail .notice-type{font-size:10px;color:var(--primary)}.notice-detail h2{font-size:21px;line-height:1.45;margin:10px 0 18px;font-weight:500;letter-spacing:-.6px}
.notice-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;padding-bottom:18px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}
.notice-copy{font-size:12px;line-height:1.9;color:#687584;margin:22px 0}.notice-copy p+p{margin-top:14px}
.notice-facts{padding:16px;background:var(--bg);border-radius:5px;font-size:11px;line-height:1.9}.notice-facts strong{display:block;color:var(--ink);margin-bottom:6px}
.notice-disclaimer{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;line-height:1.8}
.notice-empty{padding:40px 18px;text-align:center;font-size:12px;color:var(--muted)}
.notice-poster{margin:22px 0;padding:26px 22px;background:#002664;color:white;border-radius:4px;min-height:260px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.notice-poster>small{font-size:10px;letter-spacing:1px;color:#cad8ee}.notice-poster>strong{font-size:27px;line-height:1.4;font-weight:500;letter-spacing:-1px}.notice-poster>span{font-size:12px;color:#d9e5f6}.notice-poster>em{font-size:10px;font-style:normal;color:#b9c9e0}
.profile-workspace{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.profile-settings{min-width:0}
.settings-section{margin-top:14px;border:1px solid var(--line);border-radius:8px;background:white;overflow:hidden}.settings-section summary{display:flex;align-items:center;gap:12px;padding:18px;cursor:pointer;font-size:14px;font-weight:500;list-style:none}
.settings-section summary::-webkit-details-marker{display:none}.settings-section summary:after{content:'＋';margin-left:auto;color:var(--muted);font-weight:300}.settings-section[open] summary:after{content:'−'}.settings-section summary>span{font-size:10px;color:var(--muted);font-weight:300}.settings-section summary:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}
.settings-body{padding:20px 18px;border-top:1px solid var(--line)}.settings-body h2{font-size:17px;margin-bottom:12px}.settings-body>p{font-size:12px;line-height:1.8}
.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-fields label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);min-width:0}.field-wide{grid-column:1/-1}
.settings-fields input,.settings-fields select{width:100%;min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:5px;font:inherit;font-size:12px;color:var(--ink);background:white}.settings-fields input[readonly]{background:var(--bg)}.settings-fields small{font-size:9px}
.settings-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.settings-actions>span{font-size:10px;color:var(--muted)}.settings-actions .primary-button{width:auto;margin:0;font-size:12px;padding:8px 18px}
.settings-note{font-size:10px!important;color:var(--muted);margin-top:16px}.settings-feedback{font-size:12px;color:var(--primary);min-height:24px;margin:15px 0}
.theme-options{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.theme-options legend{font-size:12px;margin-bottom:16px;color:var(--muted)}
.theme-options label{position:relative;padding:10px;border:1px solid var(--line);border-radius:7px;cursor:pointer;display:flex;flex-direction:column;gap:6px;font-size:12px}.theme-options label:has(input:checked){border-color:var(--primary);background:var(--primary-soft,#edf2fa)}.theme-options input{position:absolute;top:15px;right:15px;accent-color:var(--primary)}.theme-swatch{height:32px;border-radius:4px;display:block}.swatch-blue{background:#315ead}.swatch-mint{background:#087f75}.swatch-charcoal{background:#202733}.theme-options small{font-size:9px;color:var(--muted)}
.mica-preview{border:1px solid var(--line);border-radius:9px;padding:24px 22px;background:white;display:flex;flex-direction:column;align-items:flex-start;gap:24px;min-height:570px}
.concept-badge{font-size:10px;padding:3px 8px;border:1px solid var(--line);border-radius:4px;color:var(--muted)}.mica-mark{font-size:34px;font-weight:500;color:var(--primary);letter-spacing:-1.5px}.mica-mark>span{font-size:23px;margin-left:8px}.mica-preview h2{font-size:18px}.mica-preview>p{font-size:14px;line-height:1.9}.mica-preview ul{padding-left:16px;margin:0;font-size:11px;line-height:2.2;color:var(--muted)}.mica-price{margin-top:auto;font-size:13px}.mica-price strong{font-size:24px}.mica-price small{display:block;font-size:9px;color:var(--muted)}.mica-preview button{width:100%;padding:10px;cursor:default;color:var(--muted);background:var(--bg);font-size:12px}.mica-preview>small{font-size:9px;color:var(--muted)}
body[data-theme] .event.department{border-left-color:var(--primary);background:var(--primary-soft)}body[data-theme] .event.selected{background:var(--primary-soft);box-shadow:inset 0 0 0 1px var(--primary)}body[data-theme] .avatar{background:var(--primary-soft)}body[data-theme] .primary-button:hover{background:var(--primary-hover)}body[data-theme] .primary-button.joined{background:var(--primary-soft);color:var(--primary)}
@media(max-width:1200px){.notice-workspace{grid-template-columns:minmax(230px,1.15fr) minmax(270px,.85fr);gap:16px}.notice-categories{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:5px}.notice-categories button{padding:8px 12px;font-size:12px}.profile-workspace{grid-template-columns:minmax(0,1fr)}.mica-preview{min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}.mica-mark{grid-column:1}.mica-preview>small{grid-column:1/-1}}
@media(max-width:850px){.notice-workspace{grid-template-columns:minmax(0,1fr)}.notice-list{max-height:260px}.notice-detail{min-height:0}.settings-fields{grid-template-columns:1fr}.theme-options{gap:6px}.theme-options small{display:none}.settings-section summary>span{display:none}}
@media(max-width:720px){.workspace-page{width:100%}.layout[data-page]:not([data-page=calendar]) .filter-box,.layout[data-page]:not([data-page=calendar]) .sidebar-note,.layout[data-page]:not([data-page=calendar]) .demo-help{display:none}.page-heading{margin-bottom:16px}.page-heading>p{flex-basis:100%}.sample-label{margin-left:0}.notice-detail{padding:20px}.profile-workspace{gap:18px}.mica-preview{padding:20px}.settings-actions{flex-wrap:wrap}}

.settings-fields input:disabled{background:#f0f2f5;color:#929ba7;border-color:#e5e8ed;box-shadow:inset 0 1px 3px #20273305;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#929ba7}

.avatar{overflow:hidden}.avatar img{display:block;width:100%;height:100%;object-fit:cover}.photo-field>label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.photo-controls{display:flex;align-items:center;gap:16px}.photo-controls>.avatar{width:56px;height:56px;font-size:20px}.photo-controls>div{min-width:0;flex:1}.photo-controls input{padding:8px;font-size:11px}.photo-controls small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.photo-controls .text-button{margin-top:4px;padding:2px 0}.photo-field>p{font-size:11px;color:var(--muted);margin-top:8px}#save-profile:disabled{opacity:.5;cursor:wait}

.profile-card>.avatar{width:56px;height:56px;font-size:20px}.profile-card>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.profile-settings>.settings-section:first-child{margin-top:0}

.logo-symbol{display:block;width:44px;height:44px;object-fit:contain;flex-shrink:0}@media(max-width:720px){.logo-symbol{width:36px;height:36px}}

.notice-button{min-height:92px;padding:17px 12px;gap:10px;text-align:left}.notice-icon{display:grid;place-items:center;width:56px;height:56px;flex-shrink:0;color:var(--primary)}.notice-icon svg{display:block;width:34px;height:34px}.notice-button-copy{flex:1;min-width:0}.notice-button-copy strong{display:block;font-size:13px;font-weight:500}.notice-button-copy small{display:block;margin-top:3px;font-size:10px;line-height:1.6;color:var(--muted);word-break:keep-all}@media(max-width:720px){.notice-button{padding:12px 8px;gap:8px}.notice-icon{width:40px;height:48px}.notice-icon svg{width:30px;height:30px}}

/* Warm accent keeps profile photos distinct from the page background. */
body[data-theme] .profile-card>.avatar,body[data-theme] #photo-preview{background:#fff0e3;color:#b65320;box-shadow:0 0 0 2px var(--accent);border:2px solid #fff}

/* Today stays black; selected dates use a quiet outline. */
#calendar button.date-number{padding:0;border:1px solid transparent;background:transparent;color:inherit;line-height:1;font-weight:300}#calendar .outside button.date-number{color:#b9c0c9}#calendar .is-selected-date{background:#f0f3f7}#calendar button.date-number[aria-pressed=true]{background:#e4e9f0;border-color:#8a97a8;color:var(--ink)}#calendar button.date-number:hover{background:#e4e9f0}#calendar .is-today button.date-number{background:#111418;color:#fff;border-color:#111418}#calendar .is-today button.date-number[aria-pressed=true]{box-shadow:0 0 0 2px #fff,0 0 0 3px #8a97a8}.day-cell{cursor:pointer}

.day-cell,.week-header>div{position:relative}.add-date-event{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:20px;line-height:1;z-index:1}.add-date-event:hover{background:#fff;border-color:var(--primary);color:var(--primary)}.event-create-form{max-width:760px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px}.settings-fields textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:5px;resize:vertical;font:inherit;color:var(--ink)}.all-day-control input{width:18px;height:18px}.event-form-actions{display:flex;gap:10px}.event-form-actions>button{padding:8px 18px}#event-form-status{font-size:12px;color:var(--muted);margin-top:16px}

.week-grid{height:1440px}.hours{grid-template-rows:repeat(24,60px)}

.week-column{touch-action:none;user-select:none;cursor:crosshair}.week-column .event{cursor:pointer}.time-drag-preview{position:absolute;left:3px;right:3px;z-index:3;pointer-events:none;background:var(--primary-soft);border:1px solid var(--primary);border-radius:4px;padding:3px;color:var(--primary);font-size:10px;line-height:1.3;overflow:hidden}

.more-day-events{border:0;background:transparent;text-align:left;padding:3px 6px;font-size:10px;color:var(--muted)}.more-day-events:hover{color:var(--primary);background:var(--primary-soft)}#day-events-list{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto}

.event-form-actions .delete-event-button{color:#b83a30;border-color:#ebccc9;background:#fff}.event-form-actions .delete-event-button:hover{background:#fff3f1}.event-form-actions{flex-wrap:wrap}#undo-event-delete{padding:2px 8px;font-size:11px;color:var(--primary)}

.current-time-line{position:absolute;left:0;right:0;height:1px;background:#ff8a4c;z-index:4;pointer-events:none}.current-time-line::before{content:'';position:absolute;left:0;top:50%;width:7px;height:7px;border-radius:50%;background:#ff8a4c;transform:translate(-50%,-50%)}@media(prefers-reduced-motion:reduce){.current-time-line{transition:none!important}}

/* The weekly timetable scrolls inside its existing bordered surface. */
#calendar[data-view=week]{height:clamp(360px,calc(100dvh - 240px),720px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}#calendar[data-view=week] .week-header{position:sticky;top:0;z-index:6;background:#fff}#calendar[data-view=week] .week-calendar{min-height:100%}@media(max-width:720px){#calendar[data-view=week]{height:clamp(320px,60dvh,600px)}}

/* Keep titles at the top of timed cards regardless of duration. */
.event.timed{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left}.event.timed .event-name{flex-shrink:0}.event.timed .event-caption{flex-shrink:0}

/* One clipped card grows into free time slots; the entire shape remains clickable. */
.event.timed.expanding-event{padding:6px 0;border:0;border-radius:0;overflow:hidden}.expanding-event>.event-name,.expanding-event>.event-caption{margin-left:var(--event-text-left);width:var(--event-text-width);box-sizing:border-box}.event.expanding-event.selected{filter:brightness(.93)}.event.expanding-event:focus-visible{filter:brightness(.9)}

.event-edge-accent{position:absolute;display:block;width:3px;pointer-events:none}
