/* UI contract: docs/UI_UX_GUIDE.md + docs/UIUX_LAYOUT_STANDARD.md. */
:root{
 --ui-radius-small:4px;--ui-radius-control:10px;--ui-radius-surface:10px;--ui-radius-overlay:20px;
 --ui-menu-height:30px;--ui-control-height:36px;--ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-6:24px;
 --ui-choice-size:18px;--ui-icon-size:22px;--ui-mobile-menu-height:34px;--ui-sidebar-tool-size:24px;
 --ui-rail-item-height:62px;--ui-rail-icon-box:30px;--ui-rail-icon-gap:4px;
 --ui-label-width:100px;--ui-control-line:1.4;--ui-input-font-size:14px;
 --ui-list-row-height:40px;--ui-list-control-height:28px;--ui-cell-block:5px;--ui-status-height:24px;
 --nav-selected-bg:#25272b;--nav-selected-text:#fff;--nav-hover-bg:#eceef0;
 --ui-surface-shadow:0 5px 16px #1a233014,0 1px 4px #1a23300f;--ui-button-shadow:0 2px 4px #1a23301a,0 1px 2px #1a23300d;
}
[data-theme=dark]{--nav-selected-bg:#111318;--nav-selected-text:#fff;--nav-hover-bg:#343840;--ui-surface-shadow:0 5px 16px #0005,0 1px 4px #0003;--ui-button-shadow:0 2px 5px #0005,0 1px 2px #0003}
/* User-approved Material neutral dark trial (2026-11-06).
   Original palette remains intact; boot.js owns the trial switch.
   See docs/DARK_THEME_COMPARISON_2026-11-06.md. */
@media screen {
 :root[data-theme="dark"][data-dark-palette="material"] {
  --bg:#121212;--panel:#1e1e1e;--glass:#1e1e1e;--rail-glass:#181818;
  --soft:#2c2c2c;--text:#dedede;--muted:#b3b3b3;--line:#444444;
  --list-head:#252525;--list-head-text:#dedede;--work-group-muted:#b3b3b3;--nav-hover-bg:#333333;
 }
}
/* Native choices share a visible size; labels retain their own layout and click area. */
:is(#content,#subnav,dialog) input:is([type=checkbox],[type=radio]){box-sizing:border-box;width:var(--ui-choice-size);height:var(--ui-choice-size);min-width:var(--ui-choice-size);min-height:var(--ui-choice-size);padding:0;flex:0 0 var(--ui-choice-size);vertical-align:middle;accent-color:var(--accent,#484848)}
/* Native semantics, company color and a visible mixed-selection state. */
input[type=checkbox]:not([role=switch]){appearance:none;box-sizing:border-box;position:relative;display:inline-grid;place-content:center;width:var(--ui-choice-size);height:var(--ui-choice-size);min-width:var(--ui-choice-size);min-height:var(--ui-choice-size);padding:0;border:1px solid var(--muted,#727782);border-radius:var(--ui-radius-small);background:var(--panel,#fff);vertical-align:middle;cursor:pointer;flex-shrink:0}
input[type=checkbox]:not([role=switch]):is(:checked,:indeterminate){background:var(--accent,#484848);border-color:var(--accent,#484848);color:var(--on-accent,#fff)}
input[type=checkbox]:not([role=switch])::before{content:'';position:absolute;left:50%;top:50%;width:12px;height:12px;background:currentColor;transform:translate(-50%,-50%);visibility:hidden;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
input[type=checkbox]:not([role=switch]):checked::before{visibility:visible}
input[type=checkbox]:not([role=switch]):indeterminate::before{visibility:visible;width:9px;height:2px;mask:none}
input[type=checkbox]:not([role=switch]):focus-visible{outline:2px solid var(--text,#25272b);outline-offset:3px}
input[type=checkbox]:not([role=switch]):disabled{opacity:.5;cursor:default}
@media(forced-colors:active){input[type=checkbox]:not([role=switch]){appearance:auto}input[type=checkbox]:not([role=switch])::before{content:none}}
/* The same row geometry is used in both designers, requests and saved documents. */
:is(.approval-fields,.col-input-grid,.col-read-grid,.col-layout-grid).shared-field-layout{display:block}
.shared-field-layout>.form-layout-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px 14px;align-items:start;margin-bottom:16px;min-width:0}
.shared-field-layout>.form-layout-row:last-child{margin-bottom:0}
.form-layout-row> *{min-width:0}
.form-layout-row>.layout-span-2{grid-column:span 4}.form-layout-row>.layout-span-3{grid-column:span 6}.form-layout-row>.layout-span-4{grid-column:span 8}.form-layout-row>.layout-span-quarter{grid-column:span 3}.form-layout-row>.layout-span-three-quarters{grid-column:span 9}.form-layout-row>.layout-span-6{grid-column:1/-1}
.field-type-picker{min-width:0;width:100%}
.field-type-picker>summary{display:flex;align-items:center;gap:8px;min-height:var(--ui-control-height);box-sizing:border-box;padding:6px 10px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--panel);cursor:pointer;list-style:none}
.field-type-picker>summary:after{content:'⌄';margin-left:auto}
.field-type-picker svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.field-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-block:8px;max-height:320px;overflow:auto}
.field-type-options button{display:flex;align-items:center;gap:6px;white-space:normal;text-align:left;min-height:var(--ui-control-height);padding:6px 8px;font-size:12px}
.field-type-options button[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}
.form-design-check{display:flex;align-items:center;gap:8px}.form-design-check input{width:auto}
@media(max-width:700px){.shared-field-layout>.form-layout-row{grid-template-columns:minmax(0,1fr);gap:12px}.form-layout-row>:is(.layout-span-2,.layout-span-3,.layout-span-4,.layout-span-6,.layout-span-quarter,.layout-span-three-quarters){grid-column:1/-1}}
/* Static surface separation: no transform, transition or animation. */
.office-shell :is(.card,.home-gadget,.attendance-gauge,.approval-info>section){box-shadow:var(--ui-surface-shadow)}
.office-shell :is(.heading,.heading-actions,.form-footer,.approval-action-bar,.actions,.form-designer-toolbar,.col-builder-toolbar,.record-list-tools,.office-list-search)>button,.office-shell #content button.primary{box-shadow:var(--ui-button-shadow)}
.form-footer{justify-content:flex-end;margin-top:16px}
.company-attendance-search select:not([name=limit]){width:auto;min-width:110px;max-width:180px;flex:0 1 auto}
.company-attendance-search input[name=q]{width:220px;max-width:100%;flex:0 1 220px}
.attendance-person-fields{display:flex;flex-wrap:wrap;gap:12px}
.attendance-person-fields>label{flex:1 1 160px;min-width:0}
.dialog-form-rows .form-grid.attendance-time-fields{grid-template-columns:minmax(0,1fr)}
dialog .dialog-form-rows.attendance-editor .attendance-time-fields .date-time-editor{width:300px;max-width:100%}
.dialog-form-rows .attendance-person-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dialog-form-rows .attendance-person-fields>label.aligned-field{grid-template-columns:42px minmax(0,1fr);width:auto;min-width:0}
@media(max-width:420px){.dialog-form-rows .attendance-person-fields{gap:8px}.dialog-form-rows .attendance-person-fields>label.aligned-field{grid-template-columns:30px minmax(0,1fr);gap:4px}}
.hr-policy-warning{background:#fff0f1;border-color:#e8b9be;color:#983c47}
[data-theme=dark] .hr-policy-warning{background:#40252b;border-color:#79424b;color:#ffc4cd}
@media print{.office-shell .content{background:#fff}.office-shell :is(.card,.home-gadget,.attendance-gauge){box-shadow:none}}
/* Navigation alone: selected charcoal, unselected hover gray. No geometry or motion changes. */
:is(#subnav [data-sub-nav],#subnav [data-approval-filter],#subnav [data-contact-nav],#subnav [data-management-section],#subnav [data-setting],#subnav [data-mail-folder],#subnav [data-server-folder],#subnav [data-board],#subnav [data-category],#subnav [data-col-team],#subnav [data-col-kind],.mobile-tabs [data-mobile-nav],#mobile-menu button[data-drawer-page]):where(:not(:disabled)):hover{
 background:var(--nav-hover-bg);color:var(--text);
}
:is(#subnav [data-sub-nav],#subnav [data-approval-filter],#subnav [data-contact-nav],#subnav [data-management-section],#subnav [data-setting],#subnav [data-mail-folder],#subnav [data-server-folder],#subnav [data-board],#subnav [data-category],#subnav [data-col-team],#subnav [data-col-kind],.mobile-tabs [data-mobile-nav],#mobile-menu button[data-drawer-page]):is(.active,[aria-current="page"]){
 background:var(--nav-selected-bg);color:var(--nav-selected-text);
}
:is(#subnav,.mobile-tabs,#mobile-menu) button:is(.active,[aria-current="page"])>svg{color:inherit;background:transparent}
#subnav button:is(.active,[aria-current="page"]) .mail-unread-count{color:#b9d4ff}
[data-theme=dark] :is(#subnav button,.mobile-tabs [data-mobile-nav],#mobile-menu button[data-drawer-page]):is(.active,[aria-current="page"]){box-shadow:inset 0 0 0 1px var(--line)}
/* Standard controls. Calendar cells, icon tools and stamps keep their own geometry. */
@media(min-width:701px){
 .office-shell .app-rail :is([data-nav],[data-top-nav]):is(button,.active,[aria-current="page"]){background:transparent;color:var(--text);box-shadow:none}
 .office-shell .app-rail :is([data-nav],[data-top-nav])>svg{box-sizing:border-box;width:var(--ui-rail-icon-box)!important;height:var(--ui-rail-icon-box)!important;min-width:var(--ui-rail-icon-box)!important;min-height:var(--ui-rail-icon-box)!important;max-width:var(--ui-rail-icon-box)!important;max-height:var(--ui-rail-icon-box)!important;padding:4px;flex:0 0 var(--ui-rail-icon-box)!important;border-radius:var(--ui-radius-control);background:transparent;color:inherit}
 .office-shell .app-rail :is([data-nav],[data-top-nav]):hover>svg{background:var(--nav-hover-bg)}
 .office-shell .app-rail :is([data-nav],[data-top-nav]):is(.active,[aria-current="page"])>svg{background:var(--nav-selected-bg);color:var(--nav-selected-text)}
 [data-theme=dark] .office-shell .app-rail :is([data-nav],[data-top-nav]):is(.active,[aria-current="page"]){box-shadow:none}
}
.clock-box .clock-date{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;font-variant-numeric:tabular-nums}
.clock-date time{white-space:nowrap}
/* Keep a value and its unit together; allow the surrounding sentence to wrap. */
.value-unit{white-space:nowrap}
.clock-status{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;line-height:1.4;padding:1px 6px;border:1px solid var(--line);border-radius:999px;font-size:11px;color:var(--muted)}
.clock-status[data-state=working]{color:var(--work-point,#2563eb);border-color:currentColor}
.clock-status[data-state=away]{color:var(--text);background:var(--soft)}
.clock-times strong{font-variant-numeric:tabular-nums}
button,input,select,textarea{border-radius:var(--ui-radius-control)}
/* Compact actions must keep the shared control box inside nested lists and popups too.
   Calendar cells, color swatches, avatars and media gestures retain their own targets. */
:is(#dialog,dialog,#content,.office-shell,#mobile-menu) button:not(.cal-event,.cal-date,.cal-day-surface,.org-popup-person):is(
 [aria-label="닫기"],[aria-label$=" 닫기"],[aria-label="답장 취소"],
 [data-remove-chat-file],[data-remove-follow],[data-remove-edge],[data-gadget-remove],
 [data-remove-identity],[data-remove-leave],[data-remove-mail-file],[data-audience-remove],[data-remove-row],
 [data-line-up],[data-line-down],[data-line-remove],[data-list-up],[data-list-down],
 [data-mobile-move],[data-column-up],[data-column-down],[data-sort-up],[data-sort-down],
 [data-selection-up],[data-selection-down],[data-selection-remove],
 [data-order-category][data-direction],[data-order-asset][data-direction],[data-q-up],[data-q-down],
 [data-remove][aria-label$=" 제외"],.chip>[data-up],.chip>[data-down]
){
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 width:var(--ui-control-height);min-width:var(--ui-control-height);max-width:var(--ui-control-height);
 height:var(--ui-control-height);min-height:var(--ui-control-height);max-height:var(--ui-control-height);
 flex:0 0 var(--ui-control-height);padding:0;margin-block:0;line-height:1;border-radius:var(--ui-radius-control);
}
:is(#content,dialog) button.reorder-handle{
 box-sizing:border-box;flex-basis:var(--ui-control-height);width:var(--ui-control-height);min-width:var(--ui-control-height);
 height:var(--ui-control-height);min-height:var(--ui-control-height);padding:4px;border-radius:var(--ui-radius-control);
}
:is(#content,dialog) :is(.cal-admin-header,.cal-admin-row,.favorite-lines-body)>button,
dialog footer>button,:is(#content,dialog) button.org-department-add{
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 height:var(--ui-control-height);min-height:var(--ui-control-height);padding-block:0;line-height:20px;border-radius:var(--ui-radius-control);
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]),select:not([multiple]){
 min-height:var(--ui-control-height);height:var(--ui-control-height);padding-block:6px;line-height:var(--ui-control-line);box-sizing:border-box;max-width:100%;
}
textarea{padding:8px 10px;line-height:1.5;max-width:100%}
/* Single dropdown affordance, including unaligned settings and mobile lists. */
select:not([multiple]){
 appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23818a97' stroke-width='1.6'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;
}
/* Menu triggers share the same control box and centered chevron as dropdowns. */
:is(.office-date-filter,.office-toolbar-more)>summary{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 height:var(--ui-control-height);min-height:var(--ui-control-height);box-sizing:border-box;
 padding:6px 12px;line-height:20px;border-radius:var(--ui-radius-control);list-style:none;
}
:is(.office-date-filter,.office-toolbar-more)>summary::-webkit-details-marker{display:none}
:is(.office-date-filter,.office-toolbar-more)>summary::after{
 content:'';display:block;flex:0 0 12px;width:12px;height:8px;margin:0;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23818a97' stroke-width='1.6'/%3E%3C/svg%3E") center/12px 8px no-repeat;
}
:is(.office-date-filter,.office-toolbar-more)[open]>summary::after{transform:rotate(180deg)}
.office-toolbar-more>div{max-width:calc(100vw - 16px);box-sizing:border-box}

:is(form,.actions,.heading,.office-list-search,.record-list-tools,.module-bottom-setting,.module-primary) > button,
button.primary,button.danger,:is(.form-status-filters,.quick-filters,.status-filters)>button{
 min-height:var(--ui-control-height);padding:6px 12px;line-height:var(--ui-control-line);border-radius:var(--ui-radius-control);vertical-align:middle;
}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--ui-space-4)}
.form-grid{align-items:end}
:is(.form-grid,.field-row,.range-controls,.actions,.picker)>*,.aligned-field{min-width:0}
.actions,.picker{gap:var(--ui-space-2);align-items:center;flex-wrap:wrap}
.actions:has(>label){align-items:flex-end;row-gap:12px}
.actions>label{margin:0;max-width:100%;min-width:0}
.actions:has(>label)>button{align-self:flex-end;margin-bottom:0}
.actions>label:has(>input:not([type=checkbox]):not([type=radio])),.actions>label:has(>select),.actions>label:has(>.date-editor){flex:0 1 240px}
.actions>label:has(>.date-editor){flex-basis:180px}
.actions>label:has(>input:not([type=checkbox]):not([type=radio])),.actions>label:has(>select),.actions>label:has(>.date-editor){display:flex;flex-direction:column;align-items:stretch;gap:6px}
.actions>label>:is(input:not([type=checkbox]):not([type=radio]),select,.date-editor){margin-block:0}
:is(#content,dialog) :is(.actions,.heading,.permission-subject-controls,.permission-class-add,.org-picker,.org-toolbar,.org-selection,.board-admin-toolbar,.post-actions,.board-editor-actions,.preview-actions,.mobile-list-sort,.record-list-tools,.navigation-group-row,.navigation-board-row)>button,
:is(#content,dialog) :is(button.primary,button.open-org-picker,form>button){
 min-height:var(--ui-control-height);box-sizing:border-box;line-height:20px;padding:6px 12px;margin-block:0;vertical-align:middle;
}
.org-toolbar{flex-wrap:wrap;gap:var(--ui-space-2)}
/* Followed calendars: make room for department names, not an oversized saved list. */
dialog:has(>.org-calendar-grid){width:960px;max-width:calc(100vw - 32px);box-sizing:border-box}
dialog .org-calendar-grid:has(.cal-follow-selected){align-items:start;min-width:0}
dialog .org-calendar-grid>section{min-width:0}
dialog .org-calendar-tree{min-width:0;max-height:min(480px,60dvh);scrollbar-gutter:stable;overscroll-behavior:contain}
dialog .org-calendar-tree .org-popup-branch{min-width:max-content}
dialog .org-calendar-tree summary>span:not(.org-popup-chevron){white-space:nowrap}
dialog .org-calendar-tree summary small{flex-shrink:0}
dialog .org-calendar-tree .org-popup-person{display:flex;white-space:nowrap}
dialog .cal-follow-selected #follow-selected-list{max-height:min(480px,60dvh);overflow:auto;overscroll-behavior:contain}
dialog .cal-follow-selected .cal-admin-row{gap:8px;padding:6px 0;min-height:var(--ui-list-row-height)}
dialog .org-calendar-grid h3{margin:8px 0 12px;font-size:14px}
@media(min-width:701px) and (max-width:900px){
 dialog .org-calendar-grid:has(.cal-follow-selected){grid-template-columns:minmax(260px,1.25fr) minmax(180px,1fr)}
 dialog .org-calendar-grid>.org-calendar-tree{grid-row:1/3}
 dialog .org-calendar-grid>.cal-follow-selected{grid-column:2}
 dialog .cal-follow-selected #follow-selected-list{max-height:28dvh}
}
@media(max-width:700px){
 dialog:has(>.org-calendar-grid){max-width:calc(100vw - 16px)}
 dialog .org-calendar-grid:has(.cal-follow-selected){grid-template-columns:minmax(0,1fr);gap:12px}
 dialog .org-calendar-tree{max-height:32dvh}
 dialog .cal-follow-selected #follow-selected-list{max-height:24dvh}
}
.org-toolbar>label{margin:0;min-width:0}
.org-toolbar>label:has(>input[type=search]){flex:1 1 280px}
.org-toolbar>label:has(>input[type=checkbox]){flex:0 1 auto}
.actions>input,.actions>select,.picker>select{min-width:min(120px,100%);max-width:100%}
.form-grid :is(input,select,textarea){max-width:100%;min-width:0}
.aligned-form .aligned-field{grid-template-columns:var(--ui-label-width) minmax(0,1fr);gap:var(--ui-space-3);margin:10px 0}
.aligned-field .field-caption{padding-top:7px;line-height:var(--ui-control-line)}
/* All add/edit dialogs share caption columns, including dynamically added rows.
   Do not wrap/recreate controls: field handlers and native label activation survive. */
dialog .dialog-form-rows label.aligned-field{
 display:grid;grid-template-columns:var(--ui-label-width) minmax(0,1fr);
 align-items:start;gap:8px var(--ui-space-3);width:100%;max-width:100%;
 min-width:0;margin:10px 0;flex:1 1 100%;
}
dialog .dialog-form-rows label.aligned-field>.field-caption{
 grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere;
 padding-top:calc((var(--ui-control-height) - 18px)/2);line-height:18px;
}
dialog .dialog-form-rows label.aligned-field>:not(.field-caption){
 grid-column:2;min-width:0;max-width:100%;margin:0;
}
dialog .dialog-form-rows label.aligned-field>:is(input,select,textarea,.date-editor){
 width:100%;box-sizing:border-box;
}
dialog .dialog-form-rows label.aligned-field>.field-caption+:is(input,select,textarea,.date-editor){grid-row:1}
dialog .dialog-form-rows label.aligned-field[hidden]{display:none}
dialog .dialog-form-rows .form-grid{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
 max-width:none;column-gap:var(--ui-space-4);align-items:start;
}
dialog .dialog-form-rows .form-grid>label.aligned-field{margin-block:6px}
dialog .dialog-form-rows :is(.permission-subject-controls,.permission-class-add){align-items:center}
dialog .dialog-form-rows :is(.permission-subject-controls,.permission-class-add)>label.aligned-field{max-width:none}
dialog .dialog-form-rows .actions:has(>label.aligned-field){align-items:center}
dialog .dialog-form-rows :is(.navigation-board-row,.navigation-group-row){min-width:0;flex-wrap:wrap}
dialog .dialog-form-rows .navigation-board-row>span{flex-basis:calc(100% - 48px);min-width:0}
dialog .dialog-form-rows .navigation-board-row>label.aligned-field{flex:1 1 280px;width:auto;margin-block:4px}
.board-registration .board-setting-row{
 grid-template-columns:var(--ui-label-width) minmax(0,1fr);
 gap:var(--ui-space-3);padding:10px 0;
}
.board-registration .board-setting-label{overflow-wrap:anywhere;line-height:18px}
@media(max-width:700px){
 dialog .dialog-form-rows .form-grid{grid-template-columns:minmax(0,1fr)}
 dialog .dialog-form-rows label.aligned-field{grid-template-columns:64px minmax(0,1fr);column-gap:8px}
 .board-registration .board-setting-row{grid-template-columns:64px minmax(0,1fr);gap:8px}
 .board-registration .board-setting-label{padding-top:12px}
 .board-registration .board-setting-row:has(.board-setting-value details)>.board-setting-value{grid-column:1/-1}
}
label{line-height:var(--ui-control-line);margin-block:10px 6px}
body{line-height:1.45}
.card,.auth,.conversation,.home-gadget{border-radius:var(--ui-radius-surface)}
dialog,.date-popover{border-radius:var(--ui-radius-overlay)}
.heading{margin-bottom:var(--ui-space-4)}
/* One action row and list surface for boards and every collaboration type. */
.ui-list-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:0 0 var(--ui-space-4)}
button.ui-action-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;min-height:var(--ui-control-height);height:var(--ui-control-height);box-shadow:var(--ui-button-shadow)}
.ui-action-icon{display:block;width:18px;height:18px;flex:0 0 18px;pointer-events:none}
.ui-record-surface{padding:var(--ui-space-4);border:1px solid var(--line);border-radius:var(--ui-radius-surface);background:var(--panel);box-shadow:var(--ui-surface-shadow);min-width:0}
.ui-record-surface>table{margin:0;width:100%}
/* Record tables share approval-list density without changing document/form grids. */
@media(min-width:701px){
 #content .ui-record-table>:is(thead,tbody)>tr>:is(th,td){height:var(--ui-list-row-height);padding:var(--ui-cell-block) 10px;line-height:20px;vertical-align:middle}
 #content .ui-record-table td .person-avatar{width:26px;height:26px;min-width:26px;flex:none}
 #content .ui-record-table td .actions{margin:0;gap:6px}
 #content .ui-record-table :is(th,td) button{min-height:var(--ui-list-control-height);padding:3px 8px;line-height:20px;font-size:13px}
 #content .ui-record-table th button{padding-inline:0}
 #content .ui-record-table td :is(.col-title,.survey-title,[data-post]){padding:0;font:inherit}
}
.downloads-page{max-width:880px;display:grid;gap:20px}
.download-section{padding:24px}.download-section h2{margin:0 0 12px;font-size:20px}
.download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}
.download-platform{display:grid;gap:10px;text-align:center}
.download-platform button{display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px;width:100%;opacity:.65;cursor:not-allowed}
.download-platform svg,.app-download-shortcut svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}
.app-download-shortcut{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
@media(max-width:700px){.download-section{padding:16px}.download-grid{gap:12px}.download-platform button{font-size:13px}.top-tools .app-download-shortcut{display:none}}
.ui-record-surface tbody button:is(.col-title,[data-post]){border:0;box-shadow:none;background:transparent;border-radius:0;text-align:left;font:inherit;line-height:1.5;padding:0;transform:none}
.ui-record-surface tbody button:is(.col-title,[data-post]):hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){
 .ui-record-surface{padding:var(--ui-space-3)}
 .ui-list-actions .ui-action-button{width:var(--ui-control-height);min-width:var(--ui-control-height);padding:0;flex:none}
 .ui-list-actions .ui-action-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
:is(.office-shell .module-side,#mobile-menu #subnav) .menu-fold{margin:4px 0 8px}
/* Centered outline chevron, reused at every depth instead of text triangles. */
:is(.office-shell .module-side,#mobile-menu #subnav) .menu-fold>summary::before,
#collaboration-side .col-fold::before{
 content:'';display:block;width:16px;height:16px;flex:0 0 16px;border:0;margin:0;background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5 7 7-7 7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5 7 7-7 7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
 transform:rotate(0);transition:transform .16s ease
}
:is(.office-shell .module-side,#mobile-menu #subnav) .menu-fold[open]>summary::before,
#collaboration-side .col-fold[aria-expanded=true]::before{transform:rotate(90deg)}
#collaboration-side .col-departments>.col-team{margin-left:24px}
:is(.office-shell,#mobile-menu) .module-primary{height:var(--ui-control-height);min-height:var(--ui-control-height);padding:6px 12px;font-size:14px;line-height:var(--ui-control-line);border-radius:var(--ui-radius-control)}
:is(.office-shell .module-side,#mobile-menu #subnav) .menu-fold>summary,
:is(.office-shell .module-side,#mobile-menu #subnav) :is(.inner-side>button,.inner-side nav>button,.reservation-group-list>button,.module-bottom-setting>button,.menu-fold-body>button,.sub-tree>button,.menu-fold>button){
 min-height:var(--ui-menu-height);line-height:20px;padding-block:5px;border-radius:var(--ui-radius-control)
}
/* Every leaf uses one row contract, including board-specific and settings-star rows. */
#subnav :is([data-board],[data-category],[data-setting],[data-sub-nav],[data-approval-filter],[data-contact-nav],[data-col-kind],[data-col-team]){
 box-sizing:border-box;height:var(--ui-menu-height);min-height:var(--ui-menu-height);line-height:20px;padding:5px 10px;margin:0;border-radius:var(--ui-radius-control);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
#subnav .setting-menu-row{min-height:var(--ui-menu-height);margin:0;gap:0}
#subnav .setting-menu-row>.setting-star{height:var(--ui-menu-height);min-height:var(--ui-menu-height);width:28px;min-width:28px;flex:0 0 28px;padding:0;margin:0;line-height:20px;border-radius:var(--ui-radius-control)}
@media(max-width:700px){
 #mobile-menu #subnav :is([data-board],[data-category],[data-setting],[data-sub-nav],[data-approval-filter],[data-contact-nav],[data-col-kind],[data-col-team]){height:var(--ui-mobile-menu-height);min-height:var(--ui-mobile-menu-height);padding-block:6px}
 #mobile-menu #subnav .setting-menu-row>.setting-star{height:var(--ui-sidebar-tool-size);min-height:var(--ui-sidebar-tool-size);flex-basis:var(--ui-sidebar-tool-size);width:var(--ui-sidebar-tool-size);min-width:var(--ui-sidebar-tool-size)}
}
.global-search{height:var(--ui-control-height);border-radius:var(--ui-radius-control);overflow:hidden;padding:0 4px;gap:4px}
#global-search :is(input,select,button){min-height:0;height:calc(var(--ui-control-height) - 4px);border-radius:0;margin:0;padding-block:0;box-sizing:border-box}
#global-search input{flex:1 1 0;width:0;min-width:0;outline:none;box-shadow:none}
#global-search select{height:24px}
#global-search button{flex:0 0 30px;width:30px;display:grid;place-items:center;padding:0;line-height:1}
#global-search button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#global-search:focus-within{border-color:var(--muted);box-shadow:0 0 0 1px var(--muted)}
#global-search :is(button,select):focus-visible{outline:2px solid var(--text);outline-offset:-3px;border-radius:var(--ui-radius-small)}
.date-editor .date-text{height:var(--ui-control-height);min-height:var(--ui-control-height);border-radius:var(--ui-radius-control);padding-right:38px}
.date-editor .date-picker{min-height:0;height:auto;border-radius:var(--ui-radius-control)}
.date-popover-head :is(select,button),.date-popover-time select{min-height:32px;height:32px}
/* A single period control: center the date/arrows independently of the reset button. */
.cal-period.period-navigation{display:block;width:100%;min-width:0;container-type:inline-size;white-space:normal}
.period-navigation .period-track{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--ui-space-2)}
.period-navigation .period-core{grid-column:2;display:flex;align-items:center;gap:var(--ui-space-1);min-width:0}
.period-navigation .period-value{display:block;width:140px;min-width:0}
.period-navigation .period-value>.date-editor{display:block;width:100%;min-width:0;margin:0}
.period-navigation .period-value .date-text{width:100%;text-align:center;font-size:14px;letter-spacing:normal;margin:0;padding-left:8px;padding-right:32px}
.period-navigation .period-arrow{width:var(--ui-control-height);height:var(--ui-control-height);min-height:var(--ui-control-height);min-width:var(--ui-control-height);padding:0;line-height:1;border:1px solid var(--line);border-radius:var(--ui-radius-control);font-size:22px;background:var(--panel);color:var(--text)}
.period-navigation .period-today{grid-column:3;justify-self:start;margin:0;white-space:nowrap;height:var(--ui-control-height);min-height:var(--ui-control-height);padding:0 9px;border:1px solid var(--line);border-radius:var(--ui-radius-control);font-size:13px;background:var(--panel);color:var(--text)}
.leave-compose .period-navigation{margin-bottom:var(--ui-space-4)}
.reservation-toolbar:has(>.period-navigation){display:flex;flex-wrap:wrap;gap:var(--ui-space-3)}
.reservation-toolbar>.period-navigation{order:-1;flex:1 0 100%}
.attendance-toolbar>.period-navigation{grid-column:1/-1;grid-row:1}
.attendance-toolbar .attendance-group-label{grid-column:1/3;grid-row:2}
.attendance-toolbar .attendance-download{grid-column:3;grid-row:2}
@container(max-width:360px){
 .period-navigation .period-track{row-gap:var(--ui-space-1)}
 .period-navigation .period-today{grid-column:2;grid-row:2;justify-self:end}
}
/* Portraits stay circular. Workflow labels use the same radius as controls. */
.avatar,.profile-avatar,.person-avatar,.chat-avatar,.top-tools .identity{border-radius:9999px}
.badge{border-radius:var(--ui-radius-control)}
.form-picker-dialog{width:min(820px,95vw)}
.form-picker{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;margin-top:16px;min-height:280px}
.form-picker-tree{min-width:0;border-right:1px solid var(--line);padding-right:16px}
.form-picker-search{margin:0 0 12px;font-size:13px}
#form-picker-tree{max-height:55dvh;overflow:auto}
.form-category-tree{margin:0 0 6px}
.form-category-tree>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:var(--ui-control-height);padding:4px 8px;font-weight:600;border-radius:var(--ui-radius-control)}
.form-category-tree>summary::-webkit-details-marker{display:none}
.form-category-tree>summary::before{content:'';width:6px;height:6px;border-top:1.5px solid;border-right:1.5px solid;transform:rotate(45deg);transition:transform .18s ease;flex:none}
.form-category-tree[open]>summary::before{transform:rotate(135deg)}
.form-category-tree>summary>span{flex:1;overflow-wrap:anywhere}
.form-category-tree>summary>small{font-size:12px}
.form-category-tree>div{padding-left:14px}
.form-category-tree button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:6px 10px;min-height:var(--ui-control-height);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form-category-tree button[aria-pressed=true],.form-category-tree button:hover,.form-category-tree>summary:hover{background:var(--soft)}
.form-picker-detail{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.form-picker-detail h3{margin:8px 0 0;overflow-wrap:anywhere}
.form-picker-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.6}
.form-picker-detail button{margin-top:auto}
#category-add{display:flex;gap:8px;align-items:flex-end;margin:16px 0}
#category-add label{flex:1;min-width:0;margin:0}
.category-master-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.category-master-row>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.category-master-row button{min-height:var(--ui-control-height);padding:6px 10px}
/* All record lists share density. Document/entry tables and calendar cells are excluded. */
#content :is(.record-list-table,.approval-list-table,.board-record-table,.contact-table,.compact-table)>:is(thead,tbody)>tr>:is(th,td){
 padding:var(--ui-cell-block) 10px;height:var(--ui-list-row-height);line-height:20px;vertical-align:middle;
}
#content :is(.record-list-table,.approval-list-table,.board-record-table,.contact-table,.compact-table)>:is(thead,tbody)>tr>:is(th,td) button{
 min-height:var(--ui-list-control-height);height:auto;padding:3px 8px;line-height:20px;border-radius:var(--ui-radius-control);font-size:13px;vertical-align:middle;
}
#content :is(.record-list-table,.approval-list-table,.board-record-table,.contact-table,.compact-table)>thead>tr>th button{padding-inline:0}
#content .record-list-table td .actions{margin:0;gap:6px}
#content .record-list-table td:last-child .actions{flex-wrap:nowrap}
#content .record-list-table td:last-child button,.compact-actions button{white-space:nowrap}
#content .record-list-table td :is(input:not([type=checkbox]):not([type=radio]),select):not(.date-native){height:var(--ui-list-control-height);min-height:var(--ui-list-control-height);padding-block:3px}
.account-title-list .row,.org-order-row,.category-master-row{min-height:var(--ui-list-row-height);padding-block:5px}
:is(#content,dialog) :is(.account-title-list .row,.org-order-row,.category-master-row) button{min-height:var(--ui-list-control-height);padding-block:3px;line-height:20px}
.permission-subject-controls,.permission-class-add{max-width:100%;min-width:0}
.permission-chips{display:flex;flex-wrap:wrap;gap:6px;margin-block:8px}
.permission-chips .permission-class-rule{display:inline-flex;flex-wrap:nowrap;gap:6px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--soft);padding:3px 8px;max-width:100%}
.permission-chips .permission-class-rule span{flex:initial;min-width:0;overflow-wrap:anywhere}
.permission-chips .permission-class-rule b{font-size:11px;font-weight:400;white-space:nowrap;color:var(--muted)}
.permission-chips .permission-class-rule button{border:0;background:transparent;min-width:24px;min-height:24px;padding:0}
.permission-class [data-audience-picker]{min-width:min(240px,100%);max-width:100%}
.permission-subject-controls>*,.permission-class-add>*{min-width:0;max-width:100%}
/* The editor's secondary properties must not inherit the tiny delete column. */
#form-editor .field-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:8px}
#form-editor .field-row>input[data-prop=label]{grid-column:span 5}
#form-editor .field-row>select[data-prop=type]{grid-column:span 4}
#form-editor .field-row>label:has([data-prop=required]){grid-column:span 2;align-self:center;margin:0}
#form-editor .field-row>[data-delete]{grid-column:span 1;min-height:var(--ui-control-height);padding:6px}
#form-editor .field-row>.reorder-handle{grid-column:1/-1;justify-self:start;width:32px}
#form-editor .field-row>select[data-prop=width],#form-editor .field-row>label:has([data-prop=font_size]),#form-editor .field-row>label:has([data-prop=color]),#form-editor .field-row>select[data-prop=weight]{grid-column:span 3;margin:0}
#form-editor .field-row>textarea,#form-editor .field-row>.options,#form-editor .field-row>button[data-columns]{grid-column:1/-1}
#form-editor .field-row>button[data-columns]{justify-self:start;min-height:var(--ui-control-height)}
#form-editor #add-field{margin-right:8px}
@media(max-width:700px){
 :root{--ui-control-height:36px;--ui-menu-height:var(--ui-mobile-menu-height);--ui-label-width:64px;--ui-list-control-height:36px;--ui-list-row-height:auto;--ui-cell-block:6px;--ui-input-font-size:16px}
 /* Page forms use the same caption columns as dialogs, without changing PC forms. */
 #content.mobile-form-rows label.mobile-aligned-field{
  display:grid;grid-template-columns:var(--ui-label-width) minmax(0,1fr);gap:8px;
  align-items:start;margin:6px 0;min-width:0;width:100%;max-width:100%;
 }
 #content.mobile-form-rows label.mobile-aligned-field>.mobile-field-caption{
  grid-column:1;grid-row:1;font-size:12px;line-height:18px;padding-top:calc((var(--ui-control-height) - 18px)/2);min-width:0;overflow-wrap:anywhere;
 }
 #content.mobile-form-rows label.mobile-aligned-field>:not(.mobile-field-caption){
  grid-column:2;min-width:0;max-width:100%;margin:0;
 }
 #content.mobile-form-rows label.mobile-aligned-field>:is(input,select,textarea,.date-editor){width:100%;box-sizing:border-box}
 #content.mobile-form-rows label.mobile-aligned-field>.mobile-field-caption+:is(input,select,textarea,.date-editor){grid-row:1}
 #content.mobile-form-rows label.mobile-aligned-field[hidden]{display:none}
 #content.mobile-form-rows :is(.form-grid,.mail-plan-grid,.permission-subject-controls,.permission-class-add){row-gap:0}
 #content.mobile-form-rows .actions:has(>label.mobile-aligned-field){align-items:center}
 #content.mobile-form-rows :is(.actions,.org-toolbar)>label.mobile-aligned-field{flex:1 1 100%}
 #content.mobile-form-rows :is(.permission-subject-controls,.permission-class-add,.mail-plan-grid,.font-settings-grid){min-width:0}
 #content :is(.field-settings-button,.contact-top-actions>button,.office-list-search>button,.office-pagination button,.contact-pagination button,.cal-views button,.mobile-day-agenda header button,.management-cards button,.gadget-more,.gadget-edit-actions button),
 dialog .column-settings-footer button{
  height:auto;min-height:var(--ui-control-height);border-radius:var(--ui-radius-control);padding-block:6px;line-height:20px;box-sizing:border-box;
 }
 #content :is(.office-pagination,.contact-pagination){gap:4px;flex-wrap:wrap}
 #content :is(.office-pagination,.contact-pagination) button{min-width:var(--ui-control-height);padding-inline:8px}
 #content .contact-initials{display:flex;flex-wrap:wrap;gap:4px}
 #content .contact-initials button{height:var(--ui-control-height);min-height:var(--ui-control-height);min-width:var(--ui-control-height);border:1px solid var(--line);border-radius:var(--ui-radius-control)}
 #mobile-menu #subnav :is(.module-primary,.portal-return>button,.module-bottom-setting>button){font-size:14px;line-height:20px;border-radius:var(--ui-radius-control)}
 dialog:not(#mobile-menu){border-radius:var(--ui-radius-overlay)}
 :is(#content,dialog) details>summary{min-height:var(--ui-control-height);box-sizing:border-box;align-content:center}
 #content .contact-pagination :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-height:var(--ui-control-height);min-width:var(--ui-control-height);border-radius:var(--ui-radius-control)}
 /* Editable tables become labelled rows; never squeeze multiple controls into tiny columns. */
 #content .mail-rule-row label.mail-inline{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:var(--ui-control-height)}
 :is(#content,dialog) table.mobile-entry-table{display:block;min-width:0;width:100%;border-collapse:separate}
 :is(#content,dialog) .mobile-entry-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 :is(#content,dialog) .mobile-entry-table tbody{display:block}
 :is(#content,dialog) .mobile-entry-table tr{display:block;border:1px solid var(--line);border-radius:var(--ui-radius-surface);padding:8px;margin-bottom:12px}
 :is(#content,dialog) .mobile-entry-table tr[hidden]{display:none}
 :is(#content,dialog) .mobile-entry-table td{display:grid;grid-template-columns:var(--ui-label-width) minmax(0,1fr);gap:8px;align-items:center;padding:6px 0;border:0;min-width:0;overflow-wrap:anywhere}
 :is(#content,dialog) .mobile-entry-table td::before{content:attr(data-label);font-size:12px;line-height:18px;color:var(--muted)}
 :is(#content,dialog) .mobile-entry-table td>:is(input:not([type=checkbox]),select){width:100%;max-width:100%;min-width:0}
 :is(#content,dialog) .mobile-entry-table td.entry-actions{display:flex;flex-wrap:wrap;gap:6px}
 :is(#content,dialog) .mobile-entry-table td.entry-actions::before{flex-basis:100%}
 :is(#content,dialog) .mobile-entry-table button{white-space:nowrap;min-height:var(--ui-control-height);border-radius:var(--ui-radius-control);padding:6px 10px}
 #content .record-list-table td:last-child .actions{flex-wrap:wrap}
 .actions>label:has(>input:not([type=checkbox]):not([type=radio])),.actions>label:has(>select),.actions>label:has(>.date-editor){flex:1 1 100%}
 .form-grid{grid-template-columns:minmax(0,1fr)}
 #form-editor .field-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 #form-editor .field-row>input[data-prop=label],#form-editor .field-row>select[data-prop=type]{grid-column:1/-1}
 #form-editor .field-row>label:has([data-prop=required]),#form-editor .field-row>[data-delete],#form-editor .field-row>select[data-prop=width],#form-editor .field-row>label:has([data-prop=font_size]),#form-editor .field-row>label:has([data-prop=color]),#form-editor .field-row>select[data-prop=weight]{grid-column:span 1}

 .form-picker{grid-template-columns:minmax(0,1fr);gap:12px;min-height:0}
 .form-picker-tree{border-right:0;padding-right:0}
 #form-picker-tree{max-height:48dvh}
 .form-picker-detail{border-top:1px solid var(--line);padding-top:8px}
 .form-picker-detail button{width:100%}
 .aligned-form .aligned-field{gap:8px}
}
@media(prefers-reduced-motion:reduce){.form-category-tree>summary::before{transition:none}}
@media print{.document-sheet,.document-table,.approval-field{border-radius:0}}

/* Personal approval-line controls share the compact action row on all forms. */
:is(#content,dialog) .org-selection>[data-favorite-select]{width:min(100%,260px);max-width:100%;flex:0 1 260px;min-width:0;margin:0}

/* Calendar navigation stays interactive while the selected period loads. */
.cal-toolbar:has(>.period-navigation){display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--ui-space-3)}
.cal-toolbar>.cal-views{flex:0 0 auto}
.cal-toolbar>.period-navigation{order:0;flex:1 1 380px;width:auto;min-width:0}
.cal-load-status{min-height:18px;margin:0 0 6px;font-size:12px;color:var(--muted)}
@media(max-width:700px){.cal-toolbar>.period-navigation{flex-basis:100%}.cal-toolbar>.cal-views{width:100%}.cal-toolbar>.cal-views>button{flex:1}}

/* Shared approval search, including private drafts. No layout-specific copies. */
#content :is(#document-search,#draft-search){display:block;width:100%;min-width:0}
#content .approval-filter-panel{padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:var(--ui-radius-surface);margin-bottom:12px;min-width:0;container-type:inline-size;container-name:approval-filters}
#content .approval-filter-row{display:grid;grid-template-columns:100px 180px minmax(160px,300px) auto;gap:8px;align-items:center;margin-bottom:8px;max-width:720px;min-width:0}
#content .approval-filter-row>span{font-size:13px}
#content .approval-filter-panel .approval-filter-row>:is(input,select,button){width:100%;min-width:0;max-width:100%;margin:0}
#content .approval-filter-row>button{width:auto;justify-self:start}
#content .approval-filter-range{grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#content .approval-filter-range>.date-editor{width:180px;min-width:0;margin:0}
#content .approval-filter-range .date-text{width:100%;min-width:0;max-width:100%}
#content .approval-filter-undated{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:13px}
#content .approval-filter-actions{display:flex;gap:8px;margin-top:12px}
#content .approval-status-tabs{flex-wrap:wrap}
.date-popover .date-popover-head{grid-template-columns:36px minmax(0,94px) minmax(0,72px) 36px;gap:4px}
.date-popover .date-popover-head>:is(select,button){width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box}
.date-popover .date-popover-head>select{padding-left:4px!important;padding-right:24px!important;background-position:right 6px center!important}
.badge.withdrawn{background:#eceef1;color:#555d68}
[data-theme=dark] .badge.pending{background:#50452b;color:#f7d98a}
[data-theme=dark] .badge.approved{background:#244638;color:#a6e5c0}
[data-theme=dark] .badge.rejected{background:#513337;color:#f4bbc0}
[data-theme=dark] .badge.withdrawn{background:#3a3e46;color:#c8ced7}
@media(max-width:700px){
 #content .approval-filter-panel{padding:10px}
 #content .approval-filter-row{grid-template-columns:48px 94px minmax(0,1fr) 44px;gap:6px}
 #content .approval-filter-row>span{font-size:11px;white-space:nowrap}
 #content .approval-condition>select[data-condition-field]{grid-column:2;grid-row:1;padding-left:6px;padding-right:22px;background-position:right 6px center}
 #content .approval-condition>[data-condition-value]{grid-column:3;grid-row:1;padding-left:6px}
 #content .approval-condition>button{grid-column:4;grid-row:1;padding-inline:4px}
 #content .approval-filter-range{grid-column:2/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #content .approval-filter-range>.date-editor{width:100%;max-width:100%;min-width:0}
 #content .approval-filter-range>span:not(.date-editor){display:none}
 #content .approval-filter-range .date-text{padding-left:5px;padding-right:25px;letter-spacing:-.5px}
 #content .approval-filter-range .date-picker{width:24px;padding:3px;right:1px}
 #content .mobile-list-sort{display:flex;flex-flow:row nowrap;align-items:center;gap:6px;width:100%;margin:0}
 #content .mobile-list-sort>span{flex:0 0 48px;font-size:12px}
 #content .mobile-list-sort>select{flex:1;min-width:0;width:0;margin:0}
 #content .mobile-list-sort>button{flex:none;min-height:var(--ui-control-height);margin:0}
 .date-popover .date-popover-head{grid-template-columns:44px minmax(0,90px) minmax(0,64px) 44px}
 .date-popover .date-popover-head>:is(button,select){height:44px;min-height:44px}
}
@media(max-width:359px) and (pointer:coarse){
 #content .approval-filter-row{grid-template-columns:94px minmax(0,1fr) 44px}
 #content .approval-filter-row>span{grid-column:1/-1;grid-row:1}
 #content .approval-condition>select[data-condition-field]{grid-column:1;grid-row:2}
 #content .approval-condition>[data-condition-value]{grid-column:2;grid-row:2}
 #content .approval-condition>button{grid-column:3;grid-row:2}
 #content .approval-filter-range{grid-column:1/-1;grid-row:2}
}

/* Approval list identity and actions stay in place even when the list is empty. */
/* A tablet still has a sidebar: adapt to the actual filter width, not only the viewport. */
@container approval-filters (max-width:560px){
 #content .approval-filter-row{grid-template-columns:48px minmax(80px,100px) minmax(0,1fr) 44px;gap:6px}
 #content .approval-filter-row>span{font-size:11px;white-space:nowrap}
 #content .approval-condition>select[data-condition-field]{grid-column:2;grid-row:1;padding-left:6px;padding-right:22px}
 #content .approval-condition>[data-condition-value]{grid-column:3;grid-row:1;padding-left:6px}
 #content .approval-condition>button{grid-column:4;grid-row:1;padding-inline:4px}
 #content .approval-filter-range{grid-column:2/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #content .approval-filter-range>.date-editor{width:100%;max-width:180px;min-width:0}
 #content .approval-filter-range>span:not(.date-editor){display:none}
 #content .approval-filter-range .date-text{padding-left:5px;padding-right:25px}
}
@container approval-filters (max-width:320px){
 #content .approval-filter-row{grid-template-columns:94px minmax(0,1fr) 44px}
 #content .approval-filter-row>span{grid-column:1/-1;grid-row:1}
 #content .approval-condition>select[data-condition-field]{grid-column:1;grid-row:2}
 #content .approval-condition>[data-condition-value]{grid-column:2;grid-row:2}
 #content .approval-condition>button{grid-column:3;grid-row:2}
 #content .approval-filter-range{grid-column:1/-1;grid-row:2}
}
#document-search .office-list-bar{align-items:center;flex-wrap:wrap}
#document-search #document-bulk{display:flex;align-items:center;gap:8px;margin:0;flex:0 0 auto}
#document-search #document-bulk[hidden]{display:none}
#document-search #document-selected{font-size:13px;white-space:nowrap}
#document-search .approval-list-table .approval-empty-cell{text-align:center;height:120px;color:var(--muted);font-size:14px}
.mobile-empty-heading{padding:12px;background:var(--soft);color:var(--muted);font-size:13px;border-block:1px solid var(--line)}

/* Independent record values use independent columns, never forced stacked metadata. */
.record-cell-text{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:701px), (pointer:fine){
 #content .record-list-table>:is(thead,tbody)>tr>:is(th,td):not([colspan]){white-space:nowrap}
 .identity-catalog td{white-space:nowrap;vertical-align:middle}
}
@media(max-width:700px){
 .record-cell-text{max-width:100%;white-space:normal;overflow:visible;overflow-wrap:anywhere}
}

.record-full-text{white-space:pre-wrap;overflow-wrap:anywhere}
#content button.record-cell-text-button{display:block;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
@media(max-width:700px){#content button.record-cell-text-button{max-width:100%;min-width:0;white-space:nowrap}}

/* Shared date/time reading uses an explicit AM/PM separator; typing retains 24-hour digits. */
.date-editor.date-time-editor{width:272px;max-width:100%;min-width:0}
.date-time-editor .date-text{font-variant-numeric:tabular-nums;word-spacing:2px}
.time-only-editor{width:164px;max-width:100%}
.date-popover-time-only .date-popover-head,.date-popover-time-only .date-popover-body>div:first-child,.date-popover-time-only [data-today]{display:none}
.date-popover-time-only .date-popover-body{display:block}
.date-popover-time-only .date-popover-time{border:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.date-popover-time-only .date-popover-time>p{width:100%;margin:0}
.date-popover-time-only .date-popover-time>label{flex:1;min-width:60px}

.date-time-reading{display:none}
@media(max-width:700px){
 .date-editor.date-time-editor .date-text:not(:focus):not(:placeholder-shown){color:transparent}
 .date-editor.date-time-editor .date-text:not(:focus):not(:placeholder-shown)~.date-time-reading{display:flex;position:absolute;left:12px;right:38px;top:0;height:var(--ui-control-height);flex-direction:column;justify-content:center;pointer-events:none;line-height:18px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text)}
 .date-time-reading>span:first-child{font-size:12px;color:var(--muted)}
 .date-time-reading>span:last-child{font-size:14px}
}

/* Direct manipulation only; decorative motion is disabled. */
.cal-drag-handle{display:none;touch-action:none;cursor:grab;flex:none;font-size:18px;line-height:1;padding:4px}
.cal-event[data-movable]{cursor:grab}
.cal-drag-source{opacity:.35}
.cal-drop-target{outline:2px solid var(--text);outline-offset:-2px}
.cal-drag-ghost{position:fixed;left:0;top:0;z-index:90;pointer-events:none;padding:8px 12px;max-width:260px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--panel);color:var(--text);font-size:12px}
@media(max-width:700px){.mobile-agenda-event .cal-drag-handle{flex:0 0 44px;display:grid;place-items:center;min-width:44px;min-height:44px}.mobile-agenda-event>span:not(.cal-drag-handle){flex:1}}

/* Shared personal/management certificate states. */
.certificate-state{border:0;border-radius:9999px;font-size:12px;font-weight:500;padding:3px 9px;line-height:20px}
.certificate-state[data-state=requested]{background:#fff2cf;color:#775610}
[data-theme=dark] .certificate-state[data-state=requested]{background:#50452b;color:#f7d98a}
.certificate-state[data-state=processing]{background:#e3f4e9;color:#246641}
[data-theme=dark] .certificate-state[data-state=processing]{background:#244638;color:#a6e5c0}
.certificate-state[data-state=issued]{background:#e6efff;color:#315e9e}
[data-theme=dark] .certificate-state[data-state=issued]{background:#293e5a;color:#b5d0f7}
.certificate-state[data-state=rejected]{background:#fde8eb;color:#9c3945}
[data-theme=dark] .certificate-state[data-state=rejected]{background:#513337;color:#f4bbc0}
.certificate-state[data-state=cancelled]{background:#eceef1;color:#555d68}
[data-theme=dark] .certificate-state[data-state=cancelled]{background:#3a3e46;color:#c8ced7}

/* Product rule: instant UI. Drag positioning is direct manipulation, not animation.
   11/16: ux-pack.js의 motion 스위치를 켜면(html.ux-motion) 이 규칙이 풀려 부드러운 효과가 나온다. 끄면 예전처럼 즉시 표시. */
html:not(.ux-motion) *,html:not(.ux-motion) *::before,html:not(.ux-motion) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* One compact board formatting row; no global form-caption alignment inside it. */
:is(#content,dialog) .board-editor-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
:is(#content,dialog) .board-editor-toolbar[hidden]{display:none}
:is(#content,dialog) .board-editor-toolbar>button,:is(#content,dialog) .board-editor-toolbar>select{flex:0 0 auto;width:auto;min-width:32px;height:32px;min-height:32px;margin:0;padding:0 8px}
:is(#content,dialog) .board-editor-toolbar>select{width:76px;padding-right:24px}
.board-editor-modes{display:flex;gap:4px;margin:0 0 6px}.board-editor-modes button{height:var(--ui-control-height);min-height:var(--ui-control-height);padding:0 12px}.board-editor-modes button[aria-pressed=true]{background:var(--ui-selected-bg);color:var(--ui-selected-text)}
.board-color-picker{position:relative;flex:0 0 auto;margin:0}.board-color-picker summary{display:flex;gap:4px;align-items:center;justify-content:center;list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:var(--ui-radius-control);height:var(--ui-control-height);min-height:var(--ui-control-height);padding:0 8px;font-weight:600}.board-color-picker summary::-webkit-details-marker{display:none}.board-color-picker summary::after{display:none!important}
.board-color-palette{position:absolute;right:0;top:100%;z-index:15;display:grid;grid-template-columns:repeat(4,32px);gap:6px;padding:8px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--bg);box-shadow:var(--shadow)}
:is(#content,dialog) .board-color-palette button{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;margin:0;border:1px solid #999;border-radius:50%}
:is(#content,dialog) .board-editor-source{width:100%;min-width:0;min-height:260px;max-height:55vh;font-family:monospace;resize:vertical;box-sizing:border-box}
@media(max-width:700px){:is(#content,dialog) .board-editor-toolbar>button{height:44px;min-height:44px}.board-color-palette{grid-template-columns:repeat(4,44px)}:is(#content,dialog) .board-color-palette button{width:44px;min-width:44px;height:44px;min-height:44px}.board-editor-source{font-size:16px}}
.board-destination{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px;min-width:0}
.board-destination select{width:100%;min-width:0}
.board-comment-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.board-comment-heading .person-avatar{width:32px;height:32px;flex:0 0 32px}
.board-post-comment.is-reply{margin-left:32px;border-left:2px solid var(--line);padding-left:12px}
.board-post-comment p{white-space:pre-wrap;overflow-wrap:anywhere}
.board-post-comment .actions button{min-height:var(--ui-control-height);padding:2px 10px}
@media(max-width:600px){
 .board-destination{grid-template-columns:minmax(0,1fr)}
 .board-post-comment.is-reply{margin-left:16px}
}
.personal-font-preview{padding:16px;border:1px solid var(--line);border-radius:var(--ui-radius-surface);margin:16px 0}
.personal-font-preview[data-personal-font=system]{--personal-family:var(--font-system);--personal-size:14px;--personal-bold:600}
.personal-font-preview[data-personal-font=pretendard]{--personal-family:var(--font-pretendard);--personal-size:14px;--personal-bold:600}
.personal-font-preview:is([data-personal-font=default],[data-personal-font=plex]){--personal-family:var(--font-plex);--personal-size:14px;--personal-bold:600}
#personal-font-preview,#personal-font-preview :is(p,button,strong){font-family:var(--personal-family)!important;font-size:var(--personal-size)!important;letter-spacing:0!important;font-weight:400!important;line-height:1.6}
#personal-font-preview :is(h2,h3,small){font-family:var(--personal-family)!important;letter-spacing:0!important}
#personal-font-preview h2{font-size:24px!important;font-weight:600!important}
#personal-font-preview h3{font-size:16px!important;font-weight:600!important}
#personal-font-preview small{display:block;font-size:12px!important;margin-bottom:8px}
#personal-font-preview strong{font-weight:700!important}

/* Board navigation, notices and attachment affordances share PC/mobile rules. */
.file-symbol{width:18px;height:18px;flex:0 0 18px;vertical-align:middle;display:inline-block;margin-inline-end:6px}
.board-pin-icon{color:#2764bd}#content .board-record-table .pinned-post-title{font-weight:400;color:#2764bd}
#content .board-record-table .board-mobile-summary{display:none}
@media(max-width:700px){
 #content .board-record-table>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr);padding:8px 0;gap:0;align-items:center}
 #content .board-record-table>tbody>tr>td[data-column]{display:none}
 #content .board-record-table>tbody>tr>.board-select-cell{display:flex;align-items:center;justify-content:center;align-self:stretch;padding:0;min-height:44px}
 #content .board-record-table .board-select-cell input{width:18px;min-width:18px;height:18px;min-height:18px;margin:0}
 #content .board-record-table>tbody>tr>.board-mobile-summary{display:block;padding:0 6px;min-width:0}
 #content .board-record-table td:before{display:none}
 #content .board-record-table .board-mobile-title{display:flex;align-items:center;gap:5px;width:100%;min-height:44px;height:auto;padding:3px 0;border:0;background:none;text-align:left;font-size:15px;line-height:21px;color:var(--text)}
 #content .board-record-table .board-mobile-number{flex:none;font-size:13px}
 #content .board-record-table .board-mobile-title>svg{flex:none;width:16px;height:16px}
 #content .board-record-table .board-mobile-subject{min-width:0;overflow-wrap:anywhere}
 #content .board-record-table .board-mobile-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 7px;font-size:11px;line-height:17px;color:var(--muted);padding-bottom:3px}
 #content .board-record-table .board-mobile-meta>*{white-space:nowrap}
}
[data-theme=dark] .board-pin-icon,[data-theme=dark] #content .board-record-table .pinned-post-title{color:#93bfff}
.attachment-link-row>a:first-child{display:inline-flex;align-items:center;min-width:0;overflow-wrap:anywhere;gap:4px}
.attachment-list-heading{font-size:14px;margin:12px 0 8px}.files{padding:12px;border:1px solid var(--line);border-radius:var(--ui-radius-control);margin-block:16px}
.file-type-sheet{color:#248455}.file-type-slide{color:#bd5a24}.file-type-pdf{color:#c63f50}.file-type-hwp,.file-type-document{color:#3774bc}
.board-group-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.board-group-tabs>div{display:flex;gap:4px;align-items:center;padding:4px;border:1px solid var(--line);border-radius:var(--ui-radius-control)}
.board-group-tabs>div.active{background:var(--soft);border-color:var(--text)}
.board-admin-toolbar{justify-content:flex-start;gap:8px;flex-wrap:wrap}.board-admin-toolbar [data-save-navigation]{margin-left:auto}
.board-navigation-table th{background:var(--soft)}.board-navigation-table td{padding-block:var(--ui-cell-block)}
.board-navigation-table td{vertical-align:middle}.board-navigation-table td:nth-child(2){min-width:160px}.board-navigation-table .actions{flex-wrap:wrap}
.board-favorites-choices fieldset{border:0;border-top:1px solid var(--line);margin:12px 0;padding:8px 0}.board-favorites-choices legend{font-weight:600}
@media(max-width:700px){
 .board-group-tabs>div{max-width:100%;flex-wrap:wrap}.board-admin-toolbar{flex-wrap:wrap}
 .board-navigation-table,.board-navigation-table tbody{display:block;width:100%;min-width:0!important}.board-navigation-table thead{display:none}
 .board-navigation-table tr{display:grid;grid-template-columns:44px minmax(0,1fr);border-bottom:1px solid var(--line);padding:8px 0}
 .board-navigation-table td{display:block;border:0;white-space:normal!important;width:auto!important;min-width:0!important;max-width:none!important;padding:4px}
 .board-navigation-table td:first-child{grid-row:1/5}.board-navigation-table td:not(:first-child){grid-column:2}
 .board-navigation-table td:nth-child(3)::before{content:'운영자: ';color:var(--muted)}.board-navigation-table td:nth-child(4)::before{content:'상태: ';color:var(--muted)}
 .board-navigation-table td button{max-width:100%;overflow-wrap:anywhere}.board-navigation-table .actions{gap:4px}
 .board-navigation-table .board-separator-row td::before{content:none}.board-navigation-table .board-separator-row td:nth-child(2){align-self:center}
}

/* Board comments and personal sidebar ordering share compact, touch-safe controls. */
.board-comment-heading{display:grid;grid-template-columns:32px auto minmax(0,1fr) auto;gap:8px}
.board-comment-heading>small{min-width:0}.board-comment-actions{display:flex;align-items:center;gap:2px;margin-left:auto}
.board-comment-actions button{height:var(--ui-list-control-height);min-height:var(--ui-list-control-height);padding:2px 7px;background:transparent;border:0;font-size:12px}
.board-comment-inline{margin:8px 0 0 40px;min-width:0}.board-comment-inline>label{display:block}.board-comment-inline textarea{width:100%;resize:vertical}.board-comment-inline .actions{justify-content:flex-end}
.board-comment-count{color:var(--muted);font-size:.9em;white-space:nowrap}
.inline-order-tools{display:inline-flex;margin-left:auto;gap:2px;vertical-align:middle}.inline-order-tools button{display:inline-grid;place-items:center;width:var(--ui-list-control-height);height:var(--ui-list-control-height);min-height:var(--ui-list-control-height);padding:4px;border:0;background:transparent}.inline-order-tools svg{width:18px;height:18px}
.board-tree-group>summary{display:flex;align-items:center;gap:4px}.shared-board-row{display:flex;align-items:center;min-width:0}.shared-board-row>[data-board]{min-width:0;flex:1}.shared-board-row .reorder-handle{flex:none}.board-sidebar .board-tree-empty{padding:5px 10px;margin:0;font-size:12px}
@media(max-width:700px){.board-comment-heading{grid-template-columns:32px minmax(0,1fr) auto}.board-comment-heading>small{grid-column:2 / -1;grid-row:2;font-size:11px}.board-comment-actions{grid-column:3;grid-row:1}.board-comment-actions button{padding:2px 6px;min-width:40px}.board-comment-inline{margin-left:0}.board-comment-heading .person-avatar{grid-row:1 / span 2}}

/* Personal sidebar ordering: right-aligned actions, visible grips in both themes. */
:is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-heading,
.inline-order-heading{display:flex;align-items:center;gap:4px;min-width:0;width:100%;box-sizing:border-box}
:is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-heading>.inline-order-tools,
.inline-order-heading>.inline-order-tools{flex:0 0 auto;margin-left:auto;gap:4px;justify-content:flex-end}
:is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-tools>button,
.inline-order-tools>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:24px;min-width:24px;height:24px;min-height:24px;padding:3px;margin:0;border:0;border-radius:var(--ui-radius-control);background:transparent;color:var(--muted);line-height:1}
:is(.office-shell .module-side,#mobile-menu #subnav) button.reorder-handle,
button.reorder-handle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-width:28px;height:28px;min-height:28px;padding:4px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--soft);color:var(--text)}
button.reorder-handle svg{display:block;width:16px;height:20px;flex:none}
@media(max-width:700px){
 #mobile-menu #subnav button.reorder-handle{width:var(--ui-sidebar-tool-size);min-width:var(--ui-sidebar-tool-size);height:var(--ui-sidebar-tool-size);min-height:var(--ui-sidebar-tool-size);flex-basis:var(--ui-sidebar-tool-size)}
}

.employee-list-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;background:var(--soft);padding:12px;border:1px solid var(--line);border-radius:var(--ui-radius-control);margin-bottom:12px}
.employee-list-filters>label{flex:0 1 150px}.employee-list-filters>label:has(input[type=search]){flex-basis:220px}.employee-list-filters>.employee-merged-toggle,.employee-list-filters>output{flex-basis:100%}
.employee-list-filters label{margin:0;min-width:0;display:flex;flex-direction:column;gap:4px}.employee-list-filters :is(select,input:not([type=checkbox])){width:100%;min-width:0;max-width:100%}.employee-list-filters>.employee-merged-toggle{flex-direction:row;align-items:center;grid-column:1/-1}.employee-list-filters output{grid-column:1/-1;color:var(--muted);font-size:12px}
@media(max-width:700px){.employee-list-filters{display:grid;grid-template-columns:minmax(0,1fr)}.employee-list-filters label:not(.employee-merged-toggle){display:grid;grid-template-columns:var(--ui-label-width) minmax(0,1fr);align-items:center}}
/* Compact related controls without shrinking editable text or touch height. */
.office-search-criteria,.office-search-actions{display:flex;align-items:center;gap:6px;min-width:0}
.office-search-criteria>select{width:130px;min-width:0;margin:0}
.office-search-criteria>input{width:220px;min-width:0;margin:0}
.office-search-actions>button{margin:0;white-space:nowrap}
.compact-date-filter{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;max-width:440px;flex:1 1 370px}
.compact-date-caption{flex:0 0 var(--ui-label-width);font-size:12px;line-height:18px}
.compact-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:1 1 250px;min-width:0}
.compact-date-range>.date-editor{width:100%;min-width:0;margin:0}
.compact-date-range .date-text{width:100%;min-width:0;margin:0;padding-left:6px;padding-right:26px}
.compact-date-range .date-picker{width:24px;padding:3px;right:1px}
dialog form>.compact-date-filter{margin-bottom:var(--ui-space-3)}
@media(max-width:700px){
 #content.mobile-form-rows .employee-list-filters label.mobile-aligned-field{margin:0;align-items:center;gap:6px}
 #content.mobile-form-rows .employee-list-filters .mobile-field-caption{padding:0;align-self:center}
 .employee-list-filters>button{justify-self:end;width:auto}
 .office-list-form>.office-list-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
 .office-list-search>.office-search-criteria{grid-column:1/-1;display:grid;grid-template-columns:110px minmax(0,1fr)}
 .office-search-criteria>:is(input,select){width:100%;max-width:100%;min-height:var(--ui-control-height)}
 .office-search-criteria>select{padding-left:8px;padding-right:24px;background-position:right 8px center}
 .office-list-search>.office-search-actions{justify-self:end}
 .office-list-search:not(:has(>.office-date-filter))>.office-search-actions{grid-column:1/-1}
 .office-list-search>.office-date-filter{justify-self:start;min-width:0}
 .record-list-tools>.mobile-record-sort{flex:1 1 140px;width:auto;margin:0}
 .record-list-tools>.field-settings-button{flex:0 0 auto}
 #content .audit-filters{gap:8px}
 #content.mobile-form-rows .audit-filters label.mobile-aligned-field{margin:0}
 .audit-filters>.compact-date-filter{width:100%;max-width:none}
 #content.mobile-form-rows .audit-actions>label.mobile-aligned-field{flex:0 0 auto;width:auto;grid-template-columns:64px 80px;align-items:center;gap:6px;margin:0}
 #content.mobile-form-rows .audit-actions .mobile-field-caption{padding:0}
 .compact-date-range .date-text{letter-spacing:-.5px}
}
@media(min-width:380px) and (max-width:700px){
 .employee-list-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .employee-list-filters>label:not(.compact-filter-field){grid-column:1/-1}
 #content.mobile-form-rows .employee-list-filters label.compact-filter-field{grid-template-columns:48px minmax(0,1fr)}
 .employee-list-filters .compact-filter-field select{padding-left:6px;padding-right:22px;background-position:right 6px center}
 .employee-list-filters>button{grid-column:2}
}
/* Company leave uses shared input, period, table and mobile card rules. */
.company-leave-tabs,.company-leave-controls,.company-leave-downloads{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.company-leave-tabs [aria-selected="true"]{background:var(--ui-selected-bg);color:var(--ui-selected-text)}
.company-leave-controls label{display:flex;align-items:center;gap:8px;margin:0}
.company-leave-controls select{width:180px;max-width:100%}
.company-week-range{text-align:center}
.company-leave-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:12px 0 18px}
.company-leave-week button{height:auto;min-height:68px;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:8px 4px;white-space:normal}
.company-leave-week [aria-pressed="true"]{background:var(--ui-selected-bg);color:var(--ui-selected-text)}
.company-leave-week .is-today:not([aria-pressed="true"]){background:var(--hover)}
.company-annual-table td{white-space:nowrap}
@media(max-width:680px){.company-leave-controls{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.company-leave-controls label{display:grid;grid-template-columns:76px minmax(0,1fr)}.company-leave-controls select{width:100%;min-width:0}.company-leave-week{gap:3px}.company-leave-week button{font-size:11px;padding:6px 2px;min-height:60px}.company-leave-downloads{display:grid;grid-template-columns:minmax(0,1fr)}.company-annual-table td{white-space:normal;overflow-wrap:anywhere}}
/* Content-driven dates and dialogs: avoid stretching short temporal values. */
:where(#content,dialog) label.aligned-field>.date-editor:not(.date-time-editor){width:min(100%,200px);max-width:200px;justify-self:start}
dialog:has(>form[data-dialog-size="compact"]){width:min(380px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
dialog:has(#company-person-periods){width:max-content;min-width:min(720px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
#company-person-periods{min-width:0;max-width:100%}#company-person-periods>.table-wrap{max-width:100%;overflow:auto}
#company-person-periods .leave-period-table{width:max-content;min-width:100%}.leave-period-table th,.leave-period-table td{white-space:nowrap}
.leave-period-cards{display:none}.leave-period-cards article{border-bottom:1px solid var(--line);padding:8px 0}.leave-period-cards h3{margin:4px 0}.leave-period-cards dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.leave-period-cards dl>div{min-width:0}.leave-period-cards dt{font-size:12px;color:var(--muted)}.leave-period-cards dd{margin:2px 0;font-weight:600}
.company-leave-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.company-leave-toolbar .company-leave-downloads{margin-left:auto;justify-content:flex-end}.company-leave-controls [aria-selected="true"]{background:var(--ui-selected-bg);color:var(--ui-selected-text)}
.company-leave-week{gap:0;border:1px solid var(--line);border-radius:var(--ui-radius-surface);overflow:hidden;align-items:stretch}
.company-leave-week .company-leave-day{height:auto;min-height:170px;justify-content:flex-start;align-items:stretch;text-align:left;border:0;border-right:1px solid var(--line);border-radius:0;padding:10px 8px;gap:10px;background:var(--panel);color:var(--text);min-width:0}
.company-leave-week .company-leave-day:last-child{border-right:0}.company-leave-week .company-leave-day[aria-pressed="true"]{background:var(--hover);box-shadow:inset 0 -3px 0 var(--text)}
.company-day-heading{display:flex;align-items:center;gap:5px}.company-day-heading strong{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%}.company-leave-day.is-today .company-day-heading strong{background:var(--text);color:var(--bg)}
.company-leave-event{display:flex;justify-content:space-between;gap:4px;background:#dcecff;color:#174a78;padding:5px 6px;border-radius:var(--ui-radius-small);font-size:12px}.company-leave-names{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.company-leave-no-event{color:var(--muted)}
[data-theme="dark"] .company-leave-event{background:#213e5d;color:#cce5ff}
@media(max-width:700px){
 .company-leave-week .company-leave-day{min-height:104px;padding:6px 2px;gap:8px;font-size:11px}.company-day-heading{justify-content:center;gap:2px}.company-day-heading strong{width:20px;height:20px}.company-leave-event{justify-content:center;padding:5px 1px;font-size:11px}.company-leave-event>span,.company-leave-names{display:none}
 .company-leave-controls{display:flex;gap:4px}.company-leave-controls button{padding-inline:8px}.company-leave-toolbar{display:block}.company-leave-downloads{display:flex;flex-wrap:wrap;justify-content:flex-end}.company-leave-downloads button{flex:0 1 auto}
 dialog:has(#company-person-periods){width:calc(100vw - 24px);min-width:0} .leave-period-table{display:none}.leave-period-cards{display:block}
}
.audit-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.audit-filters label{margin:0;max-width:220px}.audit-filters select{width:180px;max-width:100%}.audit-actions{justify-content:flex-end;align-items:center}.audit-actions label{display:flex;gap:8px;align-items:center;margin:0}.audit-actions select{width:90px}.audit-paging{justify-content:center;align-items:center;flex-wrap:wrap}
@media(max-width:700px){.audit-filters{display:grid;grid-template-columns:minmax(0,1fr)}.audit-filters label{max-width:none}.audit-filters select{width:100%}}

#company-person-periods>label.aligned-field{display:grid;grid-template-columns:100px minmax(0,200px);align-items:center;gap:12px} #company-person-periods>label.aligned-field>select{width:100%;min-width:0}
@media(max-width:700px){#company-person-periods>label.aligned-field{grid-template-columns:64px minmax(0,1fr);gap:8px}}
/* Attendance details: the same date facts drive month, week and period views. */
dialog.attendance-detail-dialog{width:min(1060px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.attendance-detail{min-width:0}
.attendance-detail-toolbar,.attendance-detail-summary{display:flex;align-items:center;gap:var(--ui-space-3);flex-wrap:wrap;margin-bottom:var(--ui-space-3)}
.attendance-detail-toolbar>.period-navigation{flex:1;min-width:0}
.attendance-detail-summary{padding:var(--ui-space-3);background:var(--soft);border-radius:var(--ui-radius-surface)}
.attendance-detail-summary>a{margin-left:auto}
.attendance-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--ui-radius-surface);overflow:hidden}
.attendance-weekday{text-align:center;padding:8px 0;background:var(--soft);font-size:12px}
.attendance-calendar .attendance-day{height:auto;min-height:114px;border:0;border-top:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;background:var(--panel);color:var(--text);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;padding:8px;min-width:0;white-space:normal;text-align:left}
.attendance-calendar .attendance-day:nth-child(7n){border-right:0}
.attendance-calendar .attendance-day[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--text)}
.attendance-calendar .attendance-day.outside{background:var(--soft);opacity:.45}
.attendance-calendar .attendance-day.holiday>strong{color:var(--danger)}
.attendance-day-hours,.attendance-day-leave{font-size:12px;line-height:1.3}
.attendance-day-hours{font-weight:600}.attendance-day-leave{color:var(--muted)}
.attendance-day-clock{font-size:12px;color:var(--muted);line-height:1.4}
.attendance-selected{display:flex;gap:8px 16px;flex-wrap:wrap;padding:12px 0;align-items:center}
.attendance-detail-table td,.attendance-detail-table th{white-space:nowrap}
@media(max-width:600px){
 dialog.attendance-detail-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:12px}
 .attendance-detail-toolbar{display:block}.attendance-detail-toolbar>.quick-tabs{justify-content:flex-end;margin-top:8px}
 .attendance-calendar .attendance-day{min-height:78px;padding:5px 3px;gap:3px;font-size:12px}
 .attendance-day-clock{display:none}.attendance-day-hours,.attendance-day-leave{font-size:10px;word-break:normal;overflow-wrap:anywhere}
 .attendance-detail-summary{gap:8px;font-size:12px}.attendance-detail-summary>a{margin-left:0}
 .attendance-selected{font-size:12px}.attendance-selected>strong{width:100%}
}

.attendance-day-history{flex-basis:100%;font-size:12px}.attendance-day-history ul{margin:6px 0;padding-left:20px}

/* Issued numbers never paint over adjacent completion/approver columns. */
.approval-list-table [data-column=number]{width:100px;min-width:100px;max-width:100px}
.document-number-value{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Sidebar tools fit the existing row; they never dictate its block height. */
:is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-heading{position:relative;min-height:var(--ui-menu-height);padding-right:28px}
:is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-heading:has(.inline-order-tools>button:nth-child(2)){padding-right:56px}
:is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-heading>.inline-order-tools{position:absolute;right:0;top:50%;transform:translateY(-50%)}
.inline-order-tools .sidebar-tool svg{width:16px;height:16px;stroke-linecap:round;stroke-linejoin:round}
.inline-order-tools .sidebar-tool:hover{background:var(--soft);color:var(--text)}
.inline-order-tools .sidebar-tool:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
:is(.office-shell .module-side,#mobile-menu #subnav) .sidebar-mail-row{display:flex;align-items:center;gap:4px;min-height:var(--ui-menu-height)}
:is(.office-shell .module-side,#mobile-menu #subnav) .sidebar-mail-row>:is([data-mail-folder],[data-server-folder]){flex:1;min-width:0;text-align:left;border:0;background:transparent;margin:0;padding:5px 10px;min-height:var(--ui-menu-height);height:var(--ui-menu-height);line-height:20px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(.office-shell .module-side,#mobile-menu #subnav) .sidebar-mail-row>:is([aria-current="page"],.active){background:var(--nav-selected-bg);color:var(--nav-selected-text)}
:is(.office-shell .module-side,#mobile-menu #subnav) .sidebar-mail-row>:is([data-mail-folder],[data-server-folder]):not([aria-current="page"]):not(.active):hover{background:var(--nav-hover-bg);color:var(--text)}
:is(.office-shell .module-side,#mobile-menu #subnav) .sidebar-mail-row>.sidebar-mini-action{flex:0 0 auto;width:auto;min-width:0;min-height:22px;height:22px;padding:0 5px;border:1px solid var(--line);border-radius:var(--ui-radius-small);font-size:11px;line-height:20px;margin:0;background:transparent;color:var(--muted)}
:is(.office-shell .module-side,#mobile-menu #subnav) .sidebar-mail-heading{margin:12px 0 4px;font-size:14px;line-height:20px;padding-block:5px}
:is(.office-list-tools,.record-list-tools,.mail-search) .list-icon-tool{display:inline-grid;place-items:center;width:var(--ui-control-height);min-width:var(--ui-control-height);padding:0;flex:none}
/* Field settings stay flat in every list, including generic record toolbars. */
#content .field-settings-button.list-icon-tool{border:0;background:transparent;box-shadow:none}
.list-icon-tool svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
select.list-page-size{width:68px!important;min-width:0!important;flex:none!important;padding-left:10px;max-width:100%}
@media(max-width:700px){
 :is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-tools>.sidebar-tool{width:32px;min-width:32px;height:32px;min-height:32px}
 :is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-heading{padding-right:36px}
 :is(.office-shell .module-side,#mobile-menu #subnav) .inline-order-heading:has(.inline-order-tools>button:nth-child(2)){padding-right:72px}
 :is(.office-shell .module-side,#mobile-menu #subnav) .sidebar-mail-row>.sidebar-mini-action{height:32px;min-height:32px;padding-inline:6px}
}

/* Attendance container and seven-day grid are different components. */
.attendance-calendar-panel{display:block;min-width:0;padding:0;overflow:hidden}
.attendance-calendar-panel .attendance-view-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.attendance-view-tools>.actions,.attendance-detail-toolbar>.quick-tabs{margin-left:auto;justify-content:flex-end}
.clock-box .actions button{height:var(--ui-control-height);min-height:var(--ui-control-height);padding:4px 8px;font-size:13px;line-height:20px}
.attendance-gauge{padding:16px;border:1px solid var(--line);border-radius:var(--ui-radius-surface);background:var(--panel);margin:0 0 16px;min-width:0}
.attendance-gauge-title{display:flex;gap:8px 20px;justify-content:space-between;flex-wrap:wrap;font-size:14px}
.attendance-gauge-track{display:block;width:100%;height:12px;overflow:hidden;background:var(--soft);border-radius:6px;margin:16px 0 12px}
:root{--work-point:#2563eb;--work-point-soft:#93c5fd}
[data-theme=dark]{--work-point:#60a5fa;--work-point-soft:#bfdbfe}
.gauge-work{fill:var(--work-point)}.gauge-leave{fill:var(--work-point-soft)}
.work-meter{accent-color:var(--work-point)}
.attendance-gauge-legend{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:12px;margin-bottom:8px}
.attendance-clock-line{display:flex;align-items:center;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.attendance-clock-label{display:inline-block;font-size:10px!important;font-weight:500;padding:0 3px;border-radius:3px;line-height:16px}
.attendance-clock-label.arrival{background:#dcefe7;color:#21694f}.attendance-clock-label.departure{background:var(--soft);color:var(--muted)}
[data-theme=dark] .attendance-clock-label.arrival{background:#213e35;color:#9bdbbf}
.attendance-calendar-panel .hr-clock-tag{display:flex;flex-direction:column;gap:3px;height:auto;min-height:0}
@media(max-width:700px){
 .attendance-gauge{padding:12px}.attendance-gauge-title{font-size:13px}.attendance-gauge-legend{gap:6px 12px}
 .attendance-calendar-panel .hr-calendar-header,.attendance-calendar-panel .hr-calendar-week{min-width:0;grid-template-columns:repeat(7,minmax(0,1fr))}
 .attendance-calendar-panel .hr-calendar-header>span:first-child{display:none}
 .attendance-calendar-panel .hr-calendar-header>span{padding:8px 0}
 .attendance-calendar-panel .hr-calendar-week>aside{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;padding:8px;font-size:11px}
 .attendance-calendar-panel .hr-calendar-day{padding:5px 2px;min-height:90px;overflow:hidden}
 .attendance-calendar-panel .hr-clock-tag{padding:2px!important;border:0!important;background:transparent!important}
 .attendance-calendar-panel .hr-clock-tag .attendance-clock-line{font-size:10px;gap:1px;flex-wrap:wrap}
 .attendance-calendar-panel .hr-away-tag{font-size:10px!important;padding:2px!important}
 .attendance-calendar-panel .hr-calendar-day>small{font-size:10px;overflow-wrap:anywhere}
 .attendance-detail-toolbar>.quick-tabs{width:100%}
}

.office-shell .attendance-summary.attendance-summary-compact{display:block;padding:0;border:0;background:transparent;box-shadow:none}
.attendance-summary-compact>div+div{border:0;padding:0}
.attendance-live-line{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--line);font-size:12px;flex-wrap:wrap}
.attendance-live-line .work-meter{margin:0;width:160px;height:6px}

#content .attendance-calendar-panel.card{padding:0}

@media(max-width:700px){
 .attendance-calendar-panel .hr-calendar-header,.attendance-calendar-panel .hr-calendar-week{display:grid}
 .attendance-calendar-panel .hr-calendar-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
 .attendance-calendar-panel .hr-calendar-day.outside{display:flex}
 .attendance-calendar-panel .hr-calendar-day::before{display:none}
}

@media(max-width:700px){.attendance-calendar-panel .hr-calendar-day>b{position:static}.attendance-calendar-panel .hr-calendar-day>:is(.hr-clock-tag,.hr-away-tag,.hr-leave-tag){flex:0 0 auto;max-width:100%;min-width:0;min-height:0}}

/* Pin is color only; read state alone controls bold, on both layouts. */
#content .board-record-table .pinned-post-title{color:#2764bd}
[data-theme=dark] #content .board-record-table .pinned-post-title{color:#93bfff}

/* Reading state controls weight; pinning controls only color in both layouts. */
#content .board-record-table [data-post]{font-weight:400}
#content .board-record-table [data-post].is-unread{font-weight:650}
.attendance-calendar .attendance-day.holiday>strong,.attendance-calendar .attendance-weekday.sun{color:#ce3c48}
.attendance-calendar .attendance-day.saturday>strong,.attendance-calendar .attendance-weekday.sat{color:#2764bd}
[data-theme=dark] .attendance-calendar .attendance-day.holiday>strong,[data-theme=dark] .attendance-calendar .attendance-weekday.sun{color:#ff9aa5}
[data-theme=dark] .attendance-calendar .attendance-day.saturday>strong,[data-theme=dark] .attendance-calendar .attendance-weekday.sat{color:#93bfff}

/* Center period-core against the entire toolbar, never the space left by actions. */
:is(.cal-toolbar,.attendance-detail-toolbar):has(>.period-navigation){display:grid;grid-template-columns:minmax(0,1fr);container-type:inline-size;align-items:center;gap:8px}
:is(.cal-toolbar,.attendance-detail-toolbar)>.period-navigation{grid-area:1/1;width:100%;min-width:0;pointer-events:none}
:is(.cal-toolbar,.attendance-detail-toolbar)>.period-navigation .period-core,
:is(.cal-toolbar,.attendance-detail-toolbar)>.period-navigation .period-today{pointer-events:auto}
:is(.cal-toolbar:has(>.period-navigation)>.cal-views,.attendance-detail-toolbar:has(>.period-navigation)>.quick-tabs){grid-area:1/1;justify-self:end;width:auto;margin:0;z-index:1}
@container(max-width:900px){
 :is(.cal-toolbar:has(>.period-navigation)>.cal-views,.attendance-detail-toolbar:has(>.period-navigation)>.quick-tabs){grid-row:2;justify-self:end;width:auto;margin:0}
}
.attendance-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:18px}
.attendance-progress-summary{min-width:0}.attendance-total{display:block;font-size:24px;font-weight:600;margin:4px 0;color:var(--text)}
.attendance-guide{margin:6px 0;color:var(--muted);font-size:13px}
.attendance-overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;margin:0;padding-left:24px;border-left:1px solid var(--line)}
.attendance-overview-metrics dt{color:var(--muted);font-size:12px}.attendance-overview-metrics dd{margin:5px 0 0;font-size:clamp(14px,1.2vw,18px);overflow-wrap:anywhere}
.gauge-overtime{fill:var(--work-point);opacity:.7}.gauge-target{stroke:var(--text);stroke-width:3;stroke-dasharray:2 2}
.attendance-gauge-labels{display:block;width:100%;height:40px;overflow:visible;margin:-4px 0 12px;font-size:12px}.attendance-gauge-labels text{fill:var(--muted);text-anchor:end}.attendance-gauge-labels tspan{fill:var(--text);font-weight:500}
.attendance-gauge-labels .gauge-label-center{text-anchor:middle}.attendance-gauge-labels .gauge-label-start{text-anchor:start}
.attendance-gauge-legend{margin-top:16px;margin-bottom:0;color:var(--muted)}
@media(max-width:700px){
 .attendance-overview{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:12px}
 .attendance-overview-metrics{border-left:0;border-top:1px solid var(--line);padding:14px 0 0;gap:12px}
 .attendance-overview-metrics dd{font-size:15px}.attendance-total{font-size:21px}
}
/* On narrow detail dialogs, share the second line: reset left, view buttons right. */
@container (min-width:265px) and (max-width:360px){
 .attendance-detail-toolbar:has(>.period-navigation)>.quick-tabs{grid-area:1/1;align-self:end}
 .attendance-detail-toolbar .period-today{grid-column:1/-1;justify-self:start}
}
/* Capacity filters use short controls rather than stretching across the page. */
.mail-quota-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}
.mail-quota-filters>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin:0;min-width:0}
.mail-quota-filters select{width:160px;max-width:100%}
.mail-quota-filters>label:has(input){flex:1 1 240px;max-width:420px}
.mail-quota-filters input{width:100%;min-width:0}
.mail-quota-status-filter{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.mail-quota-status-filter select{width:auto;max-width:100%}
.mail-quota-tools{display:flex;flex-wrap:wrap;gap:var(--ui-space-2);align-items:center;margin-bottom:var(--ui-space-3)}
.mail-quota-tools label,.mail-quota-defaults form>label{display:flex;align-items:center;gap:var(--ui-space-2);margin:0}
.mail-quota-tools input[type=number],.mail-quota-defaults input[type=number]{width:110px;min-width:0}
.mail-quota-inline{display:flex;gap:var(--ui-space-1);align-items:center;margin:0}
.mail-quota-inline input[type=number]{width:100px;min-width:0;height:var(--ui-list-control-height);min-height:var(--ui-list-control-height)}
#content .mail-quota-inline button{flex:0 0 auto;white-space:nowrap;min-width:48px}
.mail-quota-defaults{margin-top:var(--ui-space-3)}
.mail-quota-defaults summary{cursor:pointer;margin-bottom:var(--ui-space-2)}
.mail-quota-prepared{display:flex;flex-wrap:wrap;gap:var(--ui-space-3);margin-block:var(--ui-space-3)}
.mail-quota-prepared label{display:flex;align-items:center;gap:var(--ui-space-1);margin:0}
@media(max-width:700px){
 .mail-quota-table,.mail-quota-table tbody{display:block;width:100%;min-width:0}
 .mail-quota-table thead{display:none}
 .mail-quota-table tr{display:block;padding-block:var(--ui-space-2);border-bottom:1px solid var(--border)}
 .mail-quota-table td{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:var(--ui-space-2);border:0;white-space:normal;overflow-wrap:anywhere}
 .mail-quota-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-weight:500}
 .mail-quota-inline{min-width:0}.mail-quota-inline input[type=number]{flex:1 1 0;width:0;max-width:100px}
 .mail-quota-tools label{flex-wrap:wrap}
}
@media(max-width:700px){
 .mail-quota-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mail-quota-filters>label{grid-template-columns:minmax(0,1fr);gap:5px}
 .mail-quota-filters select{width:100%}
 .mail-quota-filters>label:has(input){grid-column:1/-1;grid-template-columns:48px minmax(0,1fr);max-width:none}
}

/* A gear is a vector, never a font glyph or a flex-shrunk ellipse. */
.ui-settings-icon{display:inline-block;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important;aspect-ratio:1;vertical-align:middle}

/* Folder disclosure never selects or renames a mailbox. */
#subnav .mail-folder-branch{display:flex;align-items:center;min-width:0}
#subnav .mail-folder-branch[hidden]{display:none}
#subnav .mail-folder-branch>.sidebar-mail-row,#subnav .mail-folder-branch>[data-server-folder]{flex:1;min-width:0}
#subnav .mail-folder-toggle{flex:0 0 22px;width:22px;min-width:22px;height:26px;min-height:26px;padding:3px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center}
#subnav .mail-folder-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}
#subnav .mail-folder-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
@media(pointer:coarse){#subnav .mail-folder-toggle{min-height:var(--ui-sidebar-tool-size);flex-basis:var(--ui-sidebar-tool-size);width:var(--ui-sidebar-tool-size)}}

.chat-leave-status{color:var(--work-point,#2563eb);font-size:.85em;font-weight:600;white-space:nowrap}
/* Help centre uses the shared surfaces and menu dimensions; no animation or data polling. */
.help-search{display:flex;align-items:center;gap:var(--ui-space-2,8px);flex-wrap:wrap;margin-bottom:20px}
.help-search input{width:min(360px,100%);min-width:0;flex:1 1 180px;max-width:420px}
.help-article{max-width:1040px;margin-inline:auto;padding:clamp(18px,3vw,32px);line-height:1.8;overflow-wrap:anywhere}
.help-article h2{margin-top:0}.help-article h3 small{font-size:.85rem;font-weight:400;margin-left:10px}
.help-article li{padding:6px 0}.help-article ol{padding-left:24px}.help-note{border-inline-start:3px solid #3b82f6;padding:12px 16px;margin-block:20px;background:var(--surface-soft,rgba(127,127,127,.06));border-radius:var(--ui-radius-small,4px)}
.help-note p{margin:4px 0}.help-flow{margin:20px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px;border:1px solid var(--line);border-radius:var(--ui-radius-control,10px)}
.help-flow span{display:flex;gap:8px;align-items:center}.help-flow b{font-size:.9rem;font-weight:500}.help-flow i{font-style:normal;color:#3b82f6}.help-flow figcaption{flex-basis:100%;font-size:.75rem;opacity:.65}
.help-results{margin-bottom:24px}.help-results>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;white-space:normal;height:auto;min-height:48px;gap:3px;width:100%;margin-block:6px;padding:10px 14px}.help-results small{font-weight:400;opacity:.7}

.office-shell #content .help-search input{width:min(360px,100%);max-width:420px!important}
.office-shell[data-page=help] #subnav [data-help].active{background:var(--nav-selected-bg);color:var(--nav-selected-text)}
.split-datetime{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%;min-width:0}.split-datetime>.date-editor:not(.time-only-editor){width:154px!important;min-width:0}.split-datetime>.time-only-editor{width:148px!important;min-width:0}.split-datetime>.date-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.date-popover .date-popover-time{display:flex;gap:8px;border:0;padding:0;flex-wrap:wrap}.date-popover .date-popover-time>p{flex-basis:100%;margin:0}.date-popover .date-popover-time>label{flex:1;min-width:60px}.date-popover-datetime .date-popover-body{display:flex;flex-direction:column}
.cal-room-choices{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.cal-room-choices>span{font-size:13px}.cal-room-choices>div{display:flex;gap:6px;flex-wrap:wrap}.cal-room-choices button[aria-pressed=true]{background:var(--ui-selected-bg);color:var(--ui-selected-text)}
@media(max-width:700px){.time-range-field{grid-template-columns:minmax(0,1fr)!important}.time-range-field>.range-controls{width:100%;min-width:0}.split-datetime{flex-wrap:nowrap;width:100%}.split-datetime>.date-editor:not(.date-native){flex:1;width:0!important;min-width:0}.split-datetime>.date-native{flex:none}}

/* Colored calendar bars use consistent, non-bold labels. */
.cal-event.all-day,.cal-event.all-day span{font-weight:400;color:var(--event-ink,#fff)}
.mobile-day-event{font-weight:400;color:var(--text)}

/* PC app icons need two lines of space; compact submenu rows are a separate control. */
@media(min-width:701px){
 .office-shell .app-rail{padding-top:8px;padding-bottom:8px;gap:8px}
 .office-shell .app-rail nav{gap:0;flex-shrink:0}
 .office-shell .app-rail :is([data-nav],[data-top-nav]){min-height:var(--ui-rail-item-height);padding:3px 2px;gap:var(--ui-rail-icon-gap);line-height:16px;flex-shrink:0}
 .office-shell .app-rail :is([data-nav],[data-top-nav])>span:not(.nav-count){line-height:16px;white-space:nowrap}
 .office-shell .app-rail .nav-count{top:2px;right:3px}
}
.mail-undo-stack{position:fixed;z-index:110;bottom:20px;left:50%;transform:translateX(-50%);width:min(440px,calc(100vw - 24px));display:flex;flex-direction:column;gap:8px;max-height:40dvh;overflow:auto;overscroll-behavior:contain;pointer-events:none}
.mail-undo-bar{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:var(--ui-radius-control,10px);background:#25282d;color:#fff;box-shadow:0 4px 16px #0003;pointer-events:auto;font-size:14px;line-height:1.5}
.mail-undo-bar>span{flex:1;min-width:0;overflow-wrap:anywhere}
.mail-undo-bar>button{flex:none;min-height:36px;padding:6px 8px;color:#fff;background:transparent;border:0;box-shadow:none;white-space:nowrap;font-size:14px;font-weight:600}
.mail-undo-bar>button:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.mail-undo-bar>.mail-undo-close{width:32px;padding:0;font-size:22px;font-weight:400}
@media(max-width:700px){.mail-undo-stack{bottom:calc(var(--mobile-bottom,50px) + 12px)}.mail-undo-bar{gap:6px;padding:8px 8px 8px 12px;font-size:13px}.mail-undo-bar>button{font-size:13px}}

/* Account operations: compact status details, shared typography. */
.session-device{display:block;font-size:12px;color:var(--muted);margin-top:4px}
#account-readiness{margin-top:16px}#account-readiness summary{cursor:pointer;display:flex;gap:8px;align-items:center}#account-readiness .readiness-missing{color:var(--danger,#b42318)}#account-readiness td small{display:block;color:var(--muted)}

.session-policy-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.session-policy-form input{width:100px;min-width:0}.session-policy-form label{margin:0}

/* Sensitive-menu authentication: compact dialog, no business-form replacement. */
dialog.step-up-dialog:not(#mobile-menu){width:min(440px,calc(100% - 32px));min-width:0;max-width:440px;box-sizing:border-box;padding:20px;max-height:calc(100dvh - 32px)}
.step-up-dialog form{display:grid;gap:12px}
.step-up-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.step-up-dialog h2{margin:0}
.step-up-dialog p,.step-up-dialog .actions{margin:0}
.step-up-dialog input{width:100%;box-sizing:border-box;letter-spacing:.12em}
.step-up-dialog [data-error]{color:var(--danger,#c2414b);margin:0;min-height:1em}
.step-up-settings form{display:grid;gap:10px;margin-block:12px}
.step-up-settings input{max-width:100%;box-sizing:border-box}
.step-up-settings pre{white-space:pre-wrap;overflow-wrap:anywhere}
.session-policy-restore{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.session-policy-restore label{flex:0 0 auto}
.session-policy-restore select{flex:1 1 220px;min-width:0;max-width:100%}
.session-policy-history{margin-top:16px}
.session-policy-history summary{cursor:pointer}
.session-policy-impact{margin:10px 0}
/* Module policy preview: value pairs wrap inside the card, never widen the page. */
.module-policy-preview{min-width:0;border-top:1px solid var(--line);padding-block:12px;margin-block:12px}
.module-policy-preview[hidden]{display:none}
.module-policy-preview h3{font-size:inherit;margin:0 0 8px}
.module-policy-preview ul{padding:0;margin:0;list-style:none;display:grid;gap:8px}
.module-policy-preview li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;align-items:start}
.module-policy-preview li span{min-width:0;overflow-wrap:anywhere}
.module-policy-preview p{margin:12px 0 0}
.module-policy-history{margin-top:16px;min-width:0}
.module-policy-history p{margin-block:12px}
.module-form>button+button{margin-inline-start:8px}
/* One navigation glyph and alignment for date controls, back, and module menus. */
.navigation-icon-button{align-items:center;justify-content:center;vertical-align:middle;touch-action:manipulation}
.navigation-icon-button .navigation-icon{display:block;flex:none;width:22px;height:22px;min-width:22px;margin:0;fill:none;stroke:currentColor;stroke-width:1.8}
.period-navigation .navigation-icon-button,.date-popover-head .navigation-icon-button{display:inline-flex}
.navigation-icon-button:focus-visible{outline:2px solid var(--accent,#2563eb);outline-offset:2px}
/* Collaboration app catalog and account notification inbox. */
.col-app-card{position:relative;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}
.col-app-card .col-kind-card{border:0;background:transparent;width:100%;min-height:180px;padding:42px 18px 22px;box-shadow:none}
.col-card-gear,.col-card-star{position:absolute;top:8px;z-index:1;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;background:transparent;box-shadow:none;font-size:21px}
.col-card-gear{left:8px}.col-card-star{right:8px}.col-card-star[aria-pressed=true]{color:#b97800}
.col-settings-home{max-width:1000px;margin:24px auto;text-align:center}
.col-settings-home h2{display:flex;align-items:center;justify-content:center;gap:10px}
.col-settings-home h2 svg{width:28px;height:28px}
.col-settings-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:24px 0}
.mobile-menu-page>.mobile-page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
#mobile-home-notifications{display:none}
@media(max-width:700px){#mobile-home-notifications:not([hidden]){display:grid;place-items:center;grid-column:3;grid-row:1;width:40px;height:44px;padding:10px;border:0;box-shadow:none;background:transparent}#mobile-home-notifications svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.topbar:has(#mobile-home-notifications:not([hidden])) #mobile-search-toggle{display:none}}
.col-settings-cards button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:155px;padding:20px 12px;white-space:normal}
.col-settings-cards button span{font-size:12px;color:var(--muted,#687385);line-height:1.5}
.col-pending{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:12px;background:#d52c40;color:#fff;font-size:11px;flex:none}
.col-team-row{display:flex;align-items:center}.col-team-row>button[data-col-team]{flex:1;min-width:0;text-align:left}
#collaboration-side .col-fold{flex:0 0 24px;width:24px;padding:0;background:transparent;border:0;box-shadow:none}
.col-team-kinds{margin-left:0;padding-left:24px;border-left:0}
.col-team-kinds>button{display:flex;align-items:center;gap:6px;width:100%;min-width:0;text-align:left}
.col-team-kinds>button>span:not(.col-pending){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.col-departments>summary{padding:10px 0;cursor:pointer}
.col-settings-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
#col-list-config label{display:flex;gap:10px;align-items:center;min-height:40px}
#col-access-config,#col-app-operators{padding-block:12px}
#notification-bell,.mobile-notification-bell{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:6px}
#notification-bell svg,.mobile-notification-bell svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.notification-items{display:grid;gap:8px}.notification-item{display:flex;flex-direction:column;align-items:flex-start;text-align:left;white-space:normal;gap:6px;padding:12px;width:100%;height:auto;line-height:1.5}
.notification-item span{overflow-wrap:anywhere}.notification-item small{color:var(--muted,#687385)}
.notification-item.unread{border-left:3px solid var(--accent,#2563eb)}
.notification-inbox #notification-more{margin-top:12px;width:100%}

@media(max-width:700px){.col-settings-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.col-settings-cards button{min-height:110px}.col-app-card .col-kind-card{min-height:145px}.col-settings-home{margin:12px auto}}

.col-column-row{display:flex;align-items:center;gap:6px}.col-column-row label{flex:1;min-width:0}.col-card-gear svg{width:20px;height:20px}

/* Mail folder sharing uses the same organization picker, selected people below. */
.mail-share-dialog .organization-selection-body{grid-template-columns:minmax(0,1fr)}
.mail-share-dialog .org-selected-panel{border-left:0;border-top:1px solid var(--line);padding-top:12px}
#subnav .sidebar-mail-row>button>span[title="공유 중인 메일함"]{display:inline-flex;flex:none;align-items:center;margin-right:4px}

.mail-selection-summary{padding:8px 12px;background:var(--soft);border-radius:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mail-selection-summary[hidden]{display:none}

/* Company presentation settings: preserve dark contrast and familiar controls. */
:root:not([data-theme=dark]){--nav-selected-bg:var(--company-navigation,#25272b);--work-point:var(--company-accent,#2563eb)}
:root[data-surface=normal]:not([data-theme=dark]){--bg:var(--company-background,#fff)}
:root[data-theme=dark]{--work-point:color-mix(in srgb,var(--company-accent,#2563eb),white 42%)}
.company-brand-form{max-width:900px}.company-brand-form>fieldset{margin:0;padding:0;border:0;min-width:0}
.company-brand-form>fieldset>label{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:12px;margin:12px 0}
.company-brand-form input[type=color]{width:76px;height:36px;padding:3px}.company-brand-form .check{display:flex;align-items:center;gap:8px}
.company-brand-form fieldset fieldset{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:10px}
.company-settings-save{display:flex;justify-content:center;margin:24px 0 0}
.company-brand-preview{border:1px solid #d9dde3;border-radius:12px;overflow:hidden;margin:20px 0;color:#25272b;pointer-events:none}
.company-brand-preview>header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #e5e7eb}.company-brand-preview img{width:44px;height:36px;object-fit:contain}
.company-brand-preview>div{display:grid;grid-template-columns:145px minmax(0,1fr);min-height:170px}.company-brand-preview aside{padding:12px;background:#f4f5f6;display:flex;flex-direction:column;gap:12px}.company-brand-preview aside b{padding:8px;background:var(--preview-nav);color:var(--preview-on-nav,#fff);border-radius:8px}.company-brand-preview main{padding:16px;min-width:0}.company-brand-preview [data-preview-accent]{color:var(--preview-point)}.company-brand-preview progress{display:block;width:100%;accent-color:var(--preview-point);margin:12px 0}
@media(max-width:600px){.company-brand-form>fieldset>label{grid-template-columns:105px minmax(0,1fr);gap:8px}.company-brand-preview>div{grid-template-columns:95px minmax(0,1fr)}.company-brand-preview main{padding:10px}.company-brand-form input[type=file]{min-width:0;width:100%}}

.account-search-row,.account-quick-filters,.account-quick-filters>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-search-row{margin-bottom:12px}.account-search-row input{width:280px;max-width:70vw}
.account-quick-filters{gap:12px 24px;margin-bottom:16px}.account-quick-filters strong{font-size:13px;margin-right:4px}
.account-quick-filters button[aria-pressed="true"]{background:var(--ui-selected-bg);color:var(--ui-selected-text)}

.form-description-toggle{display:none}
@media(max-width:760px){
 .form-description-disclosure{margin-block:12px}
 .form-description-disclosure .form-description{margin:0}
 .form-description-disclosure:not(.expanded) .form-description-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:2lh}
 .form-description-toggle{display:block;margin:4px 0 0 auto;min-height:32px;padding:4px 8px;border:0;box-shadow:none;background:none;color:var(--accent)}
}

.backup-policy{display:grid;grid-template-columns:minmax(100px,150px) minmax(0,1fr);gap:12px 20px}.backup-policy dt{font-weight:600}.backup-policy dd{margin:0;overflow-wrap:anywhere}.preserve-lines{white-space:pre-line}

.person-avatar>.person-avatar-placeholder{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;stroke:none}.person-label{display:inline-flex;align-items:center;gap:7px;vertical-align:middle}.person-label .person-avatar{width:26px;height:26px;min-width:26px;flex:none}.person-label .presence-dot{display:none}
/* Metadata rows align avatar/name and text by their visual center, not inline baselines. */
.ui-meta-row,.board-post-meta{display:flex;align-items:center;flex-wrap:wrap}
.ui-meta-row{gap:8px 16px;line-height:1.5}
.ui-meta-row>*,.board-post-meta>*,.board-mobile-meta>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.board-post-meta>span,.board-mobile-meta>span{display:inline-flex;align-items:center}


.approval-source-table{overflow-x:auto;max-width:100%}.approval-source-table table{width:100%;border-collapse:collapse}.approval-source-table td,.approval-source-table th{border:1px solid var(--border,#aaa);padding:10px;white-space:pre-wrap;overflow-wrap:anywhere;min-width:70px}

/* Clip the photo itself, not the presence badge attached to its corner. */
.person-avatar{overflow:visible}
.person-avatar>img{border-radius:50%}
.person-avatar:has(>img:not([hidden]))>.person-avatar-placeholder{visibility:hidden}
.profile-image-preview>.person-avatar{width:100%;height:100%}
.top-tools .identity>.person-avatar{width:100%;height:100%}
.person-avatar>.chat-presence-dot{right:-1px;bottom:-1px;z-index:2}

/* Shared directory and survey components, desktop rail expansion. */
.link-type-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.link-type-label,.link-type-filters button{display:inline-flex;align-items:center;gap:8px}
.link-type-label{vertical-align:middle;line-height:20px}
.link-type-filters{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
#content .link-directory-table{table-layout:fixed;width:100%}
.link-directory-table th:nth-child(1){width:130px}.link-directory-table th:nth-child(2){width:28%}.link-directory-table th:nth-child(3){width:100px}.link-directory-table th:nth-child(4){width:140px}.link-directory-table th:nth-child(6){width:70px}
.link-url{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-type-edit{display:grid;grid-template-columns:minmax(150px,1fr) minmax(140px,1fr) 24px auto;align-items:end;gap:12px;margin-bottom:16px}
.link-type-edit label{display:flex;flex-direction:column;gap:6px}.link-type-edit>.link-type-icon{align-self:center}
.survey-status{display:inline-flex;align-items:center;border-radius:5px;padding:2px 6px;background:var(--soft);color:var(--muted);font-size:12px;white-space:nowrap}
.survey-status.is-open{color:#137346;background:#def4e9}.survey-status.is-unanswered{color:#b42336;background:#ffebee}
[data-theme=dark] .survey-status.is-open{color:#81dfb1;background:#173b2a}[data-theme=dark] .survey-status.is-unanswered{color:#ffadba;background:#47232a}
.survey-date{white-space:nowrap}
[data-apply-mail-rules] progress{width:100%;accent-color:var(--info,#2865e8)}
@media(min-width:701px){
 html:not(.messenger-desktop) .office-shell.rail-expanded{--rail:160px}
 html:not(.messenger-desktop) .office-shell{transition:grid-template-columns .16s ease}
 html:not(.messenger-desktop) .app-rail .rail-bottom{gap:3px}
 html:not(.messenger-desktop) .app-rail .rail-bottom button{min-height:36px;height:36px;width:100%;padding:4px;flex-direction:row;gap:0}
 html:not(.messenger-desktop) .app-rail .rail-bottom button span:not(.nav-count){display:none}
 html:not(.messenger-desktop) .app-rail #rail-admin{display:flex;flex-direction:column;gap:3px}
 html:not(.messenger-desktop) .app-rail #rail-expand{border-top:1px solid var(--line);border-radius:0;margin-top:4px}
 html:not(.messenger-desktop) .app-rail .rail-bottom #theme-toggle{display:none}
 html:not(.messenger-desktop) .rail-expanded #app-menu{gap:var(--ui-space-1)}
 html:not(.messenger-desktop) .rail-expanded #app-menu button{flex-direction:row;justify-content:flex-start;padding:0 10px;gap:10px;min-height:var(--ui-menu-height);height:var(--ui-menu-height);font-size:13px;line-height:20px;margin:0;flex-shrink:0}
 html:not(.messenger-desktop) .rail-expanded #app-menu button svg{flex:none}
 html:not(.messenger-desktop) .rail-expanded #app-menu button .nav-count{position:static;margin-left:auto}
 html:not(.messenger-desktop) .office-shell.rail-expanded .rail-bottom button{justify-content:flex-start;padding:0 10px;gap:10px;font-size:13px;min-height:var(--ui-menu-height);height:var(--ui-menu-height);line-height:20px}
 html:not(.messenger-desktop) .office-shell.rail-expanded .rail-bottom button span:not(.nav-count){display:inline}
 html:not(.messenger-desktop) .office-shell.rail-expanded .app-rail :is([data-nav],[data-top-nav]):is(.active,[aria-current="page"]){background:var(--nav-selected-bg);color:var(--nav-selected-text);border-radius:var(--ui-radius-control)}
 html:not(.messenger-desktop) .office-shell.rail-expanded .app-rail :is([data-nav],[data-top-nav]):is(.active,[aria-current="page"])>svg{background:transparent;color:inherit}
 html:not(.messenger-desktop) .office-shell:not(.rail-expanded) .app-rail #rail-expand{justify-content:center;padding:4px}
 html:not(.messenger-desktop) .office-shell.rail-expanded .app-rail #rail-expand{justify-content:flex-start;padding:4px 10px}
 html:not(.messenger-desktop) .office-shell.rail-expanded .app-rail #rail-expand>svg{margin-left:5.5px}
}
@media(max-width:700px){.link-type-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 24px auto;gap:6px}.link-type-edit input,.link-type-edit select{min-width:0;width:100%}#content .link-directory-table{table-layout:auto}.link-url{max-width:200px}}
@media(prefers-reduced-motion:reduce){html:not(.messenger-desktop) .office-shell{transition:none}}

/* One control geometry for available links and upcoming platforms. */
.download-platform .download-platform-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:12px 18px;text-decoration:none;color:var(--text);background:var(--panel);font:inherit;line-height:1.4}
.download-platform a.download-platform-button:hover{background:var(--soft);border-color:var(--muted)}
.download-platform .download-platform-button:focus-visible{outline:2px solid var(--accent,#2563eb);outline-offset:3px}
.download-platform button.download-platform-button:disabled{opacity:.55;cursor:not-allowed}
.download-qr-placeholder{display:grid;place-items:center;min-height:160px;border-radius:12px;background:var(--soft);color:var(--muted);font-size:13px}

.link-directory-table .link-notes{white-space:normal;overflow-wrap:anywhere}.link-directory-table td:nth-child(2){overflow-wrap:anywhere}
/* Shared chat event row: web, desktop portal and mobile portal. */
.chat-system-message{display:flex;flex-direction:column;align-items:center;gap:4px;margin:12px 0;padding:4px 12px;color:var(--muted,#737b88);font-size:12px;text-align:center;overflow-wrap:anywhere}
.chat-system-message time{font-size:10px}
/* Sender labels stay beside the avatar, independent of bubble/attachment width. */
.messages .message .message-author,#content .messages .message .message-author{justify-self:start;align-self:start;width:fit-content;max-width:100%;text-align:left;justify-content:flex-start;padding:0;min-height:0;margin:0 0 5px;line-height:20px}
/* Profile controls are inline message content, not padded form buttons. */
.messages .message .message-avatar-button,#content .messages .message .message-avatar-button{display:block;padding:0;margin:0;border:0;min-width:0;min-height:0;line-height:0}
/* Filled selection controls use company navigation color and its paired contrast.
   Workflow status colors, destructive actions and user-selected labels stay semantic. */
:is(.survey-tabs [aria-selected=true],.cal-views button.active,.contact-tabs button.active,
 .contact-initials button[aria-pressed=true],.col-settings-tabs [aria-pressed=true],
 .company-leave-tabs [aria-selected=true],.company-leave-week [aria-pressed=true],
 .company-leave-controls [aria-selected=true],.company-attendance-filter button[aria-pressed=true],
 .leave-calendar button.selected,.leave-unit-buttons button[aria-pressed=true],
 .mail-settings-tabs [aria-pressed=true],.chat-filter-bar [aria-pressed=true],
 .org-calendar-tree button[aria-pressed=true],.work-group-detail button[aria-pressed=true],
 .document-pagination button[aria-current=page],.cal-date.is-today span,
 .company-leave-day.is-today .company-day-heading strong,.mobile-month-day.is-today .mobile-day-number){
 background:var(--nav-selected-bg);color:var(--nav-selected-text);border-color:var(--nav-selected-bg)
}
/* Today is an orientation marker, not a company-colored selection control. */
html[data-theme=dark] :is(.cal-date.is-today>span,
 .company-leave-day.is-today .company-day-heading strong,
 .mobile-month-day.is-today .mobile-day-number){
 background:#f1f3f4!important;color:#202124!important;border-color:#f1f3f4!important
}
html[data-theme] .login-card form button.primary,
html.messenger-desktop .office-shell #content #new-room.desktop-new-room{
 background:var(--nav-selected-bg);color:var(--nav-selected-text);border-color:var(--nav-selected-bg)
}
#draft-files{display:flex;flex-direction:column;gap:6px;margin-block:8px}
#draft-files .attachment-link-row{display:flex;align-items:center;gap:8px}
#draft-files .attachment-link-row>span{min-width:0;overflow-wrap:anywhere;flex:1}
#draft-files .attachment-link-row>button{flex:none}

/* Shared attachments and attendance correction controls (2026-11-05). */
.attachment-thumbnail{width:72px;height:60px;flex:none;object-fit:contain;background:var(--soft);border:1px solid var(--line);border-radius:var(--ui-radius-small);vertical-align:middle}
.attachment-link-row>a:first-child{display:inline-flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.draft-attachment-list{display:flex;flex-direction:column;gap:8px;margin-block:8px}
.draft-attachment-list .attachment-link-row{display:flex;align-items:center;gap:8px}
.draft-attachment-list .attachment-link-row>:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.draft-attachment-list .attachment-link-row>button{flex:none}
#attendance-correction .correction-date-row{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:8px}
#attendance-correction .correction-date-row label{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:none;width:min(100%,240px);margin:0}
#attendance-correction .correction-date-row input{width:100%;min-width:0;box-sizing:border-box}
#attendance-correction #correction-fields{border:0;padding:0;margin:0;min-width:0}
#attendance-correction #correction-fields:disabled{opacity:.55}
.approval-line-heading{display:flex;align-items:center;gap:8px}
.help-tooltip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;font-size:12px;font-weight:400;color:var(--muted);cursor:help}
.help-tooltip>[role=tooltip]{display:none;position:absolute;left:0;bottom:calc(100% + 8px);z-index:5;width:min(320px,65vw);padding:10px;background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:var(--ui-radius-small);box-shadow:0 4px 14px #0002;font-size:12px;line-height:1.6;white-space:normal}
.help-tooltip:is(:hover,:focus)>[role=tooltip]{display:block}
.help-tooltip.below>[role=tooltip]{bottom:auto;top:calc(100% + 8px)}
/* 11/13 메모 제목 옆 도움말: 제목(h1) 밖에 두어 모바일 상단 제목에 섞이지 않게. 모바일은 '기본 메모' 옆. */
.heading>div:has(>.memo-help){display:flex;flex-wrap:wrap;align-items:center;column-gap:6px}.heading>div:has(>.memo-help)>p{flex-basis:100%}
@media(max-width:767px){.heading>div:has(>.memo-help)>p{flex-basis:auto;order:1}.heading>div:has(>.memo-help)>.memo-help{order:2}}
.office-shell .top-tools :is(.app-download-shortcut,#theme-toggle,#logout){border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--panel);color:var(--text);padding:6px 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}

/* Google Material Icons open_in_new, Apache-2.0; license accompanies ui-icons.js. */
:root{--external-link-icon:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE5IDE5SDVWNWg3VjNINWMtMS4xMSAwLTIgLjktMiAydjE0YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0ydi03aC0ydjd6TTE0IDN2MmgzLjU5bC05LjgzIDkuODMgMS40MSAxLjQxTDE5IDYuNDFWMTBoMlYzaC03eiIvPjwvc3ZnPg==")}
:where(a[target="_blank"]:not([download]):not([data-download-only]):not(.brand):not(:has(img)),[data-desktop-route],.external-link-indicator)::after{content:"";display:inline-block;width:1em;height:1em;flex:none;margin-inline-start:.35em;vertical-align:-.125em;background:currentColor;mask:var(--external-link-icon) center/contain no-repeat;-webkit-mask:var(--external-link-icon) center/contain no-repeat}
.desktop-menu-grid:has([data-desktop-route]){grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.desktop-menu-grid [data-desktop-route]::after{position:static;margin-inline-start:auto;align-self:center;width:1em;height:1em;color:inherit}


/* Survey columns and confirmed reservation selection, 2026-11-06. */
.survey-table{table-layout:fixed;min-width:680px}
.survey-table .survey-state-column{width:180px}.survey-table .survey-date-column{width:230px}.survey-table .survey-author-column{width:110px}
.survey-table .survey-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.survey-table :is(.survey-date-column,.survey-author-column,.survey-date,.survey-author){text-align:left}
.reservation-week-day .reservation-slot.slot-confirmed{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--on-accent);opacity:1}
.board-access-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.board-access-toolbar>label,.board-base-label{display:flex;align-items:center;gap:8px}
.board-access-toolbar>label.mobile-aligned-field{display:flex;width:auto;flex:none;white-space:nowrap}.board-access-toolbar .mobile-field-caption{width:auto;flex:none;max-width:none}
@media(max-width:700px){.board-registration .board-access-rule{grid-template-columns:minmax(0,1fr) auto;max-width:100%}.board-registration .board-access-rule>:is(strong,span){grid-column:1/-1}.board-registration .board-access-rule>label{min-width:0}.board-registration .board-access-rule>select{grid-column:1}.board-registration .board-access-rule>button{grid-column:2}.board-registration .board-audience-list span{float:none;margin-inline-start:5px}}

/* Shared picker alignment and modal heading clearance (2026-11-06). */
dialog>header:first-child{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding-bottom:4px}
dialog>header:first-child h2{margin:0;min-width:0;overflow-wrap:anywhere}
dialog>header:first-child>button{flex:none;align-self:flex-start;margin:0}
:is(#content,dialog) :is(.permission-subject-controls,.permission-class-add){display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
:is(#content,dialog) :is(.permission-subject-controls,.permission-class-add)>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0;grid-template-columns:none}
:is(#content,dialog) :is(.permission-subject-controls,.permission-class-add)>label>.field-caption{width:auto;max-width:none;white-space:normal}
:is(#content,dialog) :is(.permission-subject-controls,.permission-class-add)>label>:not(.field-caption){grid-row:auto}
.permission-subject-controls [data-subject-organization] .org-selection{margin:0}
.permission-subject-controls [data-subject-organization] .people:empty{display:none}
.board-base-radios{display:flex;flex-wrap:wrap;gap:12px;border:0;margin:0;padding:0}
.board-base-radios label{display:flex;align-items:center;gap:6px;margin:0}
.board-base-radios legend{margin-bottom:8px}
.board-access-toolbar{align-items:flex-end}
.clock-missing{padding:12px;border:1px solid #e9a5a5;border-radius:var(--ui-radius-control);background:#fff1f1;color:#8b2525;line-height:1.6}
[data-theme=dark] .clock-missing{background:#39282b;border-color:#9d6268;color:#ffd0d3}
#attendance-approvers,#approver-picker{border:0;padding:0;margin:0;min-width:0}
fieldset[disabled] .chip{cursor:default}
.attendance-date-range>label:has([data-attendance-day]){display:flex;align-items:center;gap:6px}
.attendance-date-range [data-attendance-day]{flex:none;width:var(--ui-control-height,36px);padding-inline:0}
.hr-empty-day{font-size:12px;min-height:28px;padding:3px 6px}

.attendance-editor .field-caption{word-break:keep-all}
.hr-calendar-day b[data-missing-day]{cursor:pointer}

/* Private HR record editor, shared modal and date controls. */
.hr-profile-tabs{display:flex;gap:8px;margin-bottom:16px}.hr-profile-tabs button[aria-selected=true]{background:var(--ui-selected-bg);color:var(--ui-selected-text)}
#hr-panel-basic[hidden],#hr-panel-history[hidden]{display:none!important}
.hr-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.hr-history-toolbar button{white-space:nowrap}
.hr-history-head,.hr-history-row{display:grid;grid-template-columns:minmax(150px,1fr) 144px 144px 52px;gap:10px;align-items:start}
.hr-history-head{padding:10px 0;font-weight:600}.hr-history-row{margin-bottom:10px}.hr-history-row label{display:block!important;min-width:0;margin:0}.hr-history-row label>span:first-child{display:none}.hr-history-row textarea{width:100%;min-height:72px;resize:vertical}.hr-history-row input{width:100%;min-width:0}.hr-history-row button{margin:0}
@media(max-width:600px){.hr-history-head{display:none}.hr-history-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.hr-history-row label:first-child{grid-column:1/-1}.hr-history-row label>span:first-child{display:block;font-size:12px;margin-bottom:4px}.hr-history-row .date-editor{width:100%;min-width:0}.hr-history-row>[data-history-remove]{grid-column:2;justify-self:end;white-space:nowrap;min-height:28px;padding:4px 10px}.hr-history-toolbar{align-items:flex-start}.hr-history-toolbar p{margin:0}}

/* Board new-post markers share the rail count window and keep long labels aligned. */
.board-sidebar [data-board]{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.board-sidebar [data-board]>.board-menu-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.board-sidebar [data-board]>.board-new-count{position:static;flex:none;margin-left:auto;min-width:16px;width:16px;height:16px;padding:0;border-radius:50%;font-size:10px;line-height:16px}

/* Collaboration history: one compact event, optional field-level details. */
.col-history-list{list-style:none;padding:0;margin:0}
.col-history-item{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.col-history-item:last-child{border-bottom:0;padding-bottom:0}
.col-history-item>.person-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;overflow:hidden}
.col-history-body{flex:1;min-width:0}
.col-history-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.col-history-meta time{font-size:12px;color:var(--muted)}
.col-history-panel .col-history-summary{margin:3px 0 0;overflow-wrap:anywhere}
.col-history-changes{margin-top:5px;font-size:13px}
.col-history-changes>summary{cursor:pointer;color:var(--muted);width:fit-content}
.col-history-changes dl{display:block;margin:8px 0 0;padding:0}
.col-history-changes dl>div{padding:6px 0;overflow-wrap:anywhere}
.col-history-changes dt{font-weight:600;margin:0 0 4px}
.col-history-changes dd{margin:2px 0;white-space:pre-wrap}
.col-history-changes dd>.muted{margin-right:6px}

/* Filled vendor-independent glyphs: external CSS also works under strict style-src CSP. */
:is(.ui-link-icon,.ui-spreadsheet-icon)>path{fill:currentColor;stroke:none}

/* 2026-11-06: PC controls share the selected submenu row's 30px / R10 box.
   Keep structural cards, calendar cells, portraits and mobile touch targets separate. */
:is(.certificate-state,.survey-status,.clock-status){border-radius:var(--ui-radius-control)}
#content :is(.badge:not(.room-unread),.certificate-state,.survey-status,.mail-label){
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 min-height:var(--ui-status-height);padding:1px 8px;line-height:20px;
 border-radius:var(--ui-radius-control);vertical-align:middle
}
@media(min-width:701px){
 :root{--ui-control-height:var(--ui-menu-height);--ui-list-control-height:var(--ui-control-height)}
 button{padding-block:4px;line-height:20px;min-height:var(--ui-control-height)}
 .office-shell .heading button{min-height:var(--ui-control-height)}
 :is(#content,dialog) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]),:is(#content,dialog) select:not([multiple]){padding-block:4px;border-radius:var(--ui-radius-control)}
 :is(#content,dialog) :is(.approval-filter-actions,.approval-condition,.attendance-download,.office-search-actions,.survey-tabs,.cal-views,.cal-toolbar,.contact-tabs,.contact-top-actions,.view-tabs,.mail-toolbar,.mail-search)>button,
 #content button[data-link-type]{box-sizing:border-box;height:var(--ui-control-height);min-height:var(--ui-control-height);padding-block:4px;line-height:20px;border-radius:var(--ui-radius-control)}
 :is(#content,dialog) :is(.actions,.heading,.heading-actions,.form-footer,.approval-action-bar,.form-designer-toolbar,.col-builder-toolbar,.record-list-tools,.office-list-tools,.office-list-search,.col-search,.permission-subject-controls,.permission-class-add,.org-picker,.org-toolbar,.org-selection,.board-admin-toolbar,.post-actions,.board-editor-actions,.preview-actions,.navigation-group-row,.navigation-board-row,.form-status-filters,.quick-filters,.status-filters,.col-status-filters,.approval-status-tabs,.account-quick-filters,.office-pagination,.contact-pagination)>button,
 :is(#content,dialog) :is(button.ui-action-button,button.primary,button.danger,button.open-org-picker,form>button),
 .office-shell .top-tools>button:not(.identity),
 .office-shell :is(.module-primary,.module-bottom-setting>button,.portal-return>button),
 :is(.office-date-filter,.office-toolbar-more,.field-type-picker)>summary{
  box-sizing:border-box;height:var(--ui-control-height);min-height:var(--ui-control-height);padding-block:0;line-height:20px;border-radius:var(--ui-radius-control);align-content:center
 }
 .office-shell .top-tools>button.identity{width:var(--ui-control-height);height:var(--ui-control-height);min-height:var(--ui-control-height)}
 .office-shell .top-tools>#notification-bell{width:var(--ui-control-height);height:var(--ui-control-height);min-height:var(--ui-control-height);padding:3px}
 #content .ui-record-table td button.col-status-trigger{display:inline-flex;align-items:center;height:auto;min-height:var(--ui-status-height);padding:0;line-height:20px;vertical-align:middle}
 #content .download-platform .download-platform-button{height:var(--ui-control-height);min-height:var(--ui-control-height);padding:4px 12px;border-radius:var(--ui-radius-control);line-height:20px}
 /* A search control is one box; its internal pieces are deliberately inset. */
 .office-shell #global-search{height:var(--ui-control-height);min-height:var(--ui-control-height)}
 .office-shell #global-search :is(input,select,button){min-height:0;height:calc(var(--ui-control-height) - 4px);padding-block:0}
 /* Reuse the original selectors: their #mobile-menu branch otherwise wins
    specificity even on desktop, leaving 6px padding inside the 30px box. */
 :is(.office-shell,#mobile-menu) .module-primary{display:flex;align-items:center;justify-content:center;padding-block:0;line-height:20px}
 #subnav :is([data-board],[data-category],[data-setting],[data-sub-nav],[data-approval-filter],[data-contact-nav],[data-col-kind],[data-col-team]){padding-block:0;align-content:center}
}

/* Connection facts are readable values; only source fields and columns are editable. */
#purchase-settings .purchase-connection-value{display:grid;grid-template-columns:minmax(120px,180px) minmax(0,1fr);align-items:start;gap:8px 16px;padding:8px 0;border-bottom:1px solid var(--line)}
#purchase-settings .purchase-connection-value>p{margin:0;overflow-wrap:anywhere;line-height:1.5}
#purchase-settings .purchase-connection-value>span{line-height:1.5}
#purchase-settings :is(.purchase-map-key,.purchase-map-header){min-width:0;width:100%}
#purchase-settings summary{cursor:pointer}
.purchase-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 16px}
.purchase-status-toolbar,.purchase-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.purchase-status-toolbar>button:first-of-type{margin-left:auto}
.purchase-summary{margin:16px 0 24px;gap:12px 24px}
.purchase-dashboard p:last-child{margin-bottom:0}
[id^="purchase-panel-"]{min-width:0}
[id^="purchase-panel-"] .table-wrap{max-width:100%;overflow:auto}
.purchase-job-cards{display:none}
@media(max-width:700px){
 [id^="purchase-panel-"] .purchase-job-table{display:none}
 .purchase-job-cards{display:grid;gap:16px}
 .purchase-job-cards article{border-top:1px solid var(--line);padding-top:12px;overflow-wrap:anywhere}
 .purchase-job-cards article p{margin:6px 0}
}
@media(max-width:700px){#purchase-settings .purchase-connection-value{grid-template-columns:minmax(80px,100px) minmax(0,1fr);gap:8px}#purchase-settings .settings-grid{grid-template-columns:minmax(0,1fr)}}
.attachment-preview-dialog .image-viewport{position:relative;overflow:hidden!important;touch-action:none;cursor:grab;min-height:50dvh}
.attachment-preview-dialog .image-viewport.dragging{cursor:grabbing}
.attachment-preview-dialog .video-viewport{position:relative;overflow:hidden;min-height:0}
.attachment-preview-dialog .video-viewport video{position:absolute;left:50%;top:50%;translate:-50% -50%;max-width:100%;max-height:100%;object-fit:contain}
.attachment-preview-dialog .image-viewport img{position:absolute;left:50%;top:50%;translate:-50% -50%;max-width:none!important;max-height:none!important;transform-origin:center;user-select:none}

/* Attachment inputs have one explicit picker action, plus a non-clickable drop area. */
.attachment-picker{border:1px dashed var(--line);border-radius:var(--ui-radius-control);padding:14px;min-width:0;background:var(--panel)}.attachment-picker input[type=file][hidden]{display:none!important}.attachment-picker.dragover{border-color:var(--text);background:var(--soft)}.attachment-picker p{font-size:12px;color:var(--muted);margin:8px 0}.attachment-picker-button{width:auto!important}.attachment-picker .draft-attachment-list{margin-top:10px}.mail-draft-subject{border:0;box-shadow:none;background:transparent;text-align:left}.mail-draft-list h2{font-size:16px}.mail-draft-list+details{margin-top:24px}

/* Shared file types and compact attachment rows. */
.file-type-color-icon{display:inline-block;width:20px!important;height:20px!important;min-width:20px;max-width:20px;object-fit:contain;flex:0 0 20px;vertical-align:middle}
.files{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.files>.attachment-list-heading{margin:0 0 2px}
.files>.attachment-link-row{display:flex;width:100%;min-width:0;align-items:center;gap:8px;flex-wrap:nowrap}
.files .attachment-link-row>a{box-sizing:border-box;height:var(--ui-control-height);min-height:var(--ui-control-height);padding:0 10px;display:inline-flex;align-items:center;border-radius:var(--ui-radius-control);line-height:20px;min-width:0}
.files .attachment-link-row>a:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 110px)}
.files .attachment-link-row>a[data-download-only]{flex:none;white-space:nowrap}
.draft-attachment-list .attachment-thumbnail{width:20px;height:20px}
.draft-attachment-list .attachment-link-row>span{display:flex;align-items:center;gap:6px}
.chat-file-type>.file-type-color-icon{width:24px!important;height:24px!important;max-width:24px}
.link-type-edit .link-quick-choice{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;white-space:nowrap}
.link-type-edit .link-quick-choice input{width:auto;margin:0}
#link-type-editor .link-type-edit{display:grid;grid-template-columns:minmax(100px,1fr) minmax(110px,1fr) auto auto;gap:10px;align-items:end}
#link-type-editor .link-type-edit>.link-quick-choice{min-height:var(--ui-control-height);align-self:end}
@media(max-width:620px){#link-type-editor .link-type-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#link-type-editor .link-type-edit>button{justify-self:end}.files .attachment-link-row>a:first-child{max-width:calc(100% - 105px)}}

#link-settings{max-width:1000px;width:100%}
.link-type-label{white-space:nowrap}
@media(max-width:700px){#content .link-directory-table{min-width:680px}.link-directory-table th{white-space:nowrap}}

/* Compact link settings: one line per type, with accessible reorder controls. */
#link-type-editor .link-type-edit{grid-template-columns:minmax(180px,1fr) minmax(155px,.9fr) auto auto 48px;gap:8px;margin-bottom:8px;align-items:center}
#link-type-editor .link-kind-field,#link-type-editor .link-icon-field{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap;margin:0;font-size:12px;min-width:0}
#link-type-editor .link-kind-field input,#link-type-editor .link-icon-field select{flex:1;width:0;min-width:0;margin:0}
.link-type-order{display:flex;gap:4px;align-items:center}
.link-type-order button{box-sizing:border-box;width:var(--ui-control-height);height:var(--ui-control-height);min-height:var(--ui-control-height);padding:0;flex:none}
#link-type-editor [data-type-remove]{box-sizing:border-box;height:var(--ui-control-height);min-height:var(--ui-control-height);white-space:nowrap;padding:0 10px}
#link-type-editor .link-quick-choice{align-self:center}
.link-type-fixed{font-size:12px;color:var(--muted);text-align:center}
@media(max-width:1100px){#link-type-editor .link-type-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}#link-type-editor .link-kind-field{grid-column:1/3}#link-type-editor .link-icon-field{grid-column:1/3;grid-row:auto}.link-type-order{grid-column:2;justify-self:end}#link-type-editor .link-quick-choice{grid-column:1}.link-type-fixed{grid-column:3}}

#content button.link-url-copy{display:inline-block;background:transparent;border:0;box-shadow:none;padding:0;margin:0;height:auto;min-height:0;min-width:0;border-radius:0;text-align:left;text-decoration:underline;color:inherit;font:inherit;cursor:pointer;vertical-align:middle}

.link-filter-panel{display:grid;gap:8px;margin:16px 0 12px;min-width:0}
.link-filter-panel .link-filter-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;margin:0;min-width:0}
.link-filter-panel .link-filter-title{display:flex;align-items:center;min-height:var(--ui-control-height);margin:0;padding:0;line-height:20px;font-size:14px}
.link-filter-panel .link-search-fields{display:flex;align-items:center;gap:8px;min-width:0}
.link-filter-panel .link-search-fields input{flex:0 1 260px;width:260px;min-width:0;margin:0}
.link-filter-panel .link-search-fields button{flex:none}
.link-filter-panel :is(.link-type-filters,.link-department-filters){display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;min-width:0}
#content .link-filter-panel button{box-sizing:border-box;height:var(--ui-control-height);min-height:var(--ui-control-height);border-radius:var(--ui-radius-control);padding-block:0;line-height:20px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px}
@media(max-width:700px){.link-filter-panel .link-filter-row{grid-template-columns:32px minmax(0,1fr);gap:8px}.link-filter-panel .link-search-fields input{flex:1;width:0}}

#link-category-settings{max-width:1000px;margin-bottom:28px}.link-category-card{margin:12px 0}.link-category-fields{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto;align-items:center;gap:12px}.link-category-fields>label{display:flex;align-items:center;gap:8px;white-space:nowrap;margin:0}.link-category-fields input,.link-category-fields select{min-width:0;width:0;flex:1}.link-category-fields .actions{margin:0}.link-category-members{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.link-category-members>label{display:flex;align-items:center;gap:8px;margin:0}.link-category-members select{width:120px}.link-category-access{margin-top:12px}#link-category-side button small{margin-left:8px;color:var(--muted)}
@media(max-width:1100px){.link-category-fields{grid-template-columns:minmax(0,1fr)}.link-category-members>label{width:100%;justify-content:space-between}}

/* Notification inbox: menu tabs scroll within the dialog, not the page. */
.notification-inbox{min-width:0}
.notification-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px;min-width:0}
.notification-tabs{display:flex;gap:4px;overflow-x:auto;min-width:0;flex:1;padding-bottom:4px}
.notification-tabs button{flex:0 0 auto;white-space:nowrap}
.notification-tabs button[aria-selected=true]{background:var(--ui-selected-bg);color:var(--ui-selected-text);border-color:var(--ui-selected-bg)}
#notification-read-all{flex:0 0 auto;white-space:nowrap}
.notification-status:empty{display:none}
/* 2026-11-11: CSP(style-src 'self') blocks style attributes; these replace former inline styles. */
.chat-message-link{color:inherit;text-decoration:underline;overflow-wrap:anywhere}
.code-scroll-block{max-height:360px;overflow:auto;white-space:pre-wrap}
.mail-folder-depth[data-depth="1"]{padding-left:12px}
.mail-folder-depth[data-depth="2"]{padding-left:24px}
.mail-folder-depth[data-depth="3"]{padding-left:36px}
.mail-folder-depth[data-depth="4"]{padding-left:48px}
.mail-folder-depth[data-depth="5"]{padding-left:60px}
.mail-folder-depth[data-depth="6"]{padding-left:72px}
:is(#content,dialog) button.board-tree-name[data-depth="0"]{padding-inline-start:12px!important}
:is(#content,dialog) button.board-tree-name[data-depth="1"]{padding-inline-start:28px!important}
:is(#content,dialog) button.board-tree-name[data-depth="2"]{padding-inline-start:44px!important}
:is(#content,dialog) button.board-tree-name[data-depth="3"]{padding-inline-start:60px!important}
:is(#content,dialog) button.board-tree-name[data-depth="4"]{padding-inline-start:76px!important}
:is(#content,dialog) button.board-tree-name[data-depth="5"]{padding-inline-start:92px!important}
:is(#content,dialog) button.board-tree-name[data-depth="6"]{padding-inline-start:108px!important}
/* 2026-11-11: --danger was referenced but never defined; dark mode kept the dark-red fallback (2.5:1). */
:root{--danger:#b42318}
[data-theme=dark]{--danger:#ff8a80}
/* 2026-11-12: 사용법은 상단 알림 옆 아이콘 버튼(알림 버튼과 같은 크기). */
#top-help{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:6px}
#top-help svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
@media(min-width:701px){.office-shell .top-tools>#top-help{width:var(--ui-control-height);height:var(--ui-control-height);min-height:var(--ui-control-height);padding:3px}}
/* 2026-11-12: PC 메뉴바 간격 3단계(보통=기존 토큰). 펼친 메뉴바와 모바일에는 적용하지 않는다. 미리보기도 같은 토큰을 쓴다. */
@media(min-width:701px){
 .office-shell[data-rail-density=compact]:not(.rail-expanded),.rail-preview[data-rail-density=compact]{--ui-rail-item-height:48px;--ui-rail-icon-box:26px;--ui-rail-icon-gap:1px;--rail-label-size:10px}
 .office-shell[data-rail-density=tight]:not(.rail-expanded),.rail-preview[data-rail-density=tight]{--ui-rail-item-height:38px;--ui-rail-icon-box:30px;--ui-rail-icon-gap:0px}
 .office-shell[data-rail-density]:not(.rail-expanded) #app-menu button>span:not(.nav-count){font-size:var(--rail-label-size,11px);line-height:14px}
 .office-shell[data-rail-density=tight]:not(.rail-expanded) #app-menu button>:is(span:not(.nav-count),small){display:none}
}
/* iOS형 켜기/끄기 스위치: <input type=checkbox role=switch class=ui-switch> */
:is(#content,dialog,body) input.ui-switch[role=switch]{appearance:none;-webkit-appearance:none;box-sizing:border-box;position:relative;flex:none;display:inline-block;width:40px!important;min-width:40px!important;max-width:40px!important;height:24px!important;min-height:24px!important;max-height:24px!important;margin:0;padding:0!important;border-radius:12px!important;border:0!important;box-shadow:none!important;background:var(--line,#d0d3d9);cursor:pointer;transition:background .15s}
input.ui-switch[role=switch]::after{content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:transform .15s}
:is(#content,dialog,body) input.ui-switch[role=switch]:checked{background:var(--work-point,#2563eb)}
input.ui-switch[role=switch]:checked::after{transform:translateX(16px)}
input.ui-switch[role=switch]:focus-visible{outline:2px solid var(--text,#25272b);outline-offset:2px}
input.ui-switch[role=switch]:disabled{opacity:.5;cursor:default}
[data-theme=dark] :is(#content,dialog,body) input.ui-switch[role=switch]:not(:checked){background:#4a4d53}
@media(prefers-reduced-motion:reduce){input.ui-switch[role=switch],input.ui-switch[role=switch]::after{transition:none}}
@media(forced-colors:active){input.ui-switch[role=switch]{appearance:auto;-webkit-appearance:auto;width:auto;height:auto}input.ui-switch[role=switch]::after{content:none}}
/* 메뉴바 편집 화면 */
.rail-editor{display:grid;grid-template-columns:minmax(0,560px) 200px;gap:18px;align-items:start}
.rail-editor h2{font-size:14px;font-weight:650;margin:0 0 10px;display:flex;align-items:baseline;gap:8px}
.rail-editor h2 small{font-size:12px;font-weight:400}
.rail-editor-settings h2:not(:first-child){margin-top:22px}
.rail-density{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rail-density-option{display:flex;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--line);border-radius:var(--ui-radius-control);cursor:pointer}
.rail-density-option:has(input:checked){border-color:var(--accent,#484848);background:var(--soft)}
.rail-density-option input{margin-top:2px}
.rail-density-option span{display:flex;flex-direction:column;gap:2px}
.rail-density-option b{font-size:13px;font-weight:600}
.rail-density-option small{font-size:11px;color:var(--muted);line-height:1.35}
.rail-editor-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--ui-radius-control)}
.rail-editor-row{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px 0 6px;border-top:1px solid var(--line)}
.rail-editor-row:first-child{border-top:0}
.rail-editor-row.is-off .rail-editor-icon,.rail-editor-row.is-off .rail-editor-name{opacity:.45}
.rail-editor-icon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.rail-editor-name{flex:1;min-width:0;font-size:13px}
.rail-editor-note{margin:10px 0 0;font-size:12px}
.rail-editor-preview{position:sticky;top:calc(var(--header,60px) + 16px)}
.rail-editor-preview p{font-size:12px;margin:0 0 12px}
.rail-preview{width:72px;margin:0 auto;padding:8px 6px;display:flex;flex-direction:column;background:var(--rail-glass);border:1px solid var(--line);border-radius:var(--ui-radius-control);max-height:min(620px,calc(100dvh - 260px));overflow:hidden}
.rail-preview-item{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;min-height:var(--ui-rail-item-height);gap:var(--ui-rail-icon-gap);font-size:var(--rail-label-size,11px);line-height:14px;color:var(--text);white-space:nowrap}
.rail-preview-item>svg{box-sizing:border-box;width:var(--ui-rail-icon-box);height:var(--ui-rail-icon-box);padding:4px;fill:none;stroke:currentColor;stroke-width:1.8}
.rail-preview[data-rail-density=tight] .rail-preview-item>span{display:none}

/* 회의록 환경설정(통합설정 안 iframe) · 옆 메뉴 회의 목록 나무 */
.meeting-settings-frame{display:block;width:100%;height:calc(100dvh - var(--header,60px) - 150px);min-height:520px;border:0;background:transparent}
:is(.office-shell .module-side,#mobile-menu #subnav) .menu-fold-body>button.meeting-sub{padding-left:28px}
.meeting-fold .menu-fold-body>button[data-meeting-view]{display:flex;align-items:center;gap:6px}
.meeting-fold .menu-fold-body>button[data-meeting-view]>.board-menu-name{flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meeting-fold .menu-fold-body>button[data-meeting-view]>.board-new-count{position:static;flex:none;margin-left:auto;min-width:16px;width:16px;height:16px;padding:0;border-radius:50%;font-size:10px;line-height:16px}

/* 2026-11-12 공통 상태태그 규칙(사용자 확정): 상태태그는 모두 테두리·글자를 상태색으로, 바탕은 같은 색을 연하게 채운다.
   회의록·협업 등 상태를 표시하는 태그와 상태 퀵필터는 이 규칙(.ui-status-tag + tone-색)을 쓴다. 새 색을 만들 때도 여기 값을 쓴다. */
:root{--tag-gray:#5b6472;--tag-yellow:#a16207;--tag-green:#15803d;--tag-blue:#2563eb;--tag-red:#dc2626;--tag-purple:#9333ea;--tag-orange:#c2410c;--tag-teal:#0f766e;--tag-sky:#0369a1;--tag-navy:#1e3a8a;--tag-indigo:#4f46e5;--tag-pink:#be185d;--tag-lime:#4d7c0f;--tag-brown:#92400e;--tag-slate:#334155;--tag-black:#111827;--tag-amber:#b45309;--tag-emerald:#047857;--tag-cyan:#0e7490;--tag-violet:#6d28d9;--tag-fuchsia:#a21caf;--tag-rose:#be123c;--tag-olive:#5c6b1f;--tag-maroon:#7f1d1d}
[data-theme=dark]{--tag-gray:#aeb6c2;--tag-yellow:#facc15;--tag-green:#4ade80;--tag-blue:#7aa7ff;--tag-red:#f87171;--tag-purple:#c084fc;--tag-orange:#fb923c;--tag-teal:#2dd4bf;--tag-sky:#7dd3fc;--tag-navy:#93b4ff;--tag-indigo:#a5b4fc;--tag-pink:#f9a8d4;--tag-lime:#bef264;--tag-brown:#e0a872;--tag-slate:#cbd5e1;--tag-black:#f3f4f6;--tag-amber:#fbbf24;--tag-emerald:#34d399;--tag-cyan:#22d3ee;--tag-violet:#c4b5fd;--tag-fuchsia:#f0abfc;--tag-rose:#fda4af;--tag-olive:#c5d36b;--tag-maroon:#f0a3a3}
.ui-status-tag{--tag-tone:var(--tag-gray);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:24px;padding:0 8px;border-radius:var(--ui-radius-control,10px);border:1px solid var(--tag-tone);color:var(--tag-tone);background:color-mix(in srgb,var(--tag-tone) 12%,transparent);font-size:12px;font-weight:650;line-height:1;white-space:nowrap;vertical-align:middle}
.tone-gray{--tag-tone:var(--tag-gray)}.tone-yellow{--tag-tone:var(--tag-yellow)}.tone-green{--tag-tone:var(--tag-green)}.tone-blue{--tag-tone:var(--tag-blue)}.tone-red{--tag-tone:var(--tag-red)}.tone-purple{--tag-tone:var(--tag-purple)}.tone-orange{--tag-tone:var(--tag-orange)}.tone-teal{--tag-tone:var(--tag-teal)}.tone-sky{--tag-tone:var(--tag-sky)}.tone-navy{--tag-tone:var(--tag-navy)}.tone-indigo{--tag-tone:var(--tag-indigo)}.tone-pink{--tag-tone:var(--tag-pink)}.tone-lime{--tag-tone:var(--tag-lime)}.tone-brown{--tag-tone:var(--tag-brown)}.tone-slate{--tag-tone:var(--tag-slate)}.tone-black{--tag-tone:var(--tag-black)}.tone-amber{--tag-tone:var(--tag-amber)}.tone-emerald{--tag-tone:var(--tag-emerald)}.tone-cyan{--tag-tone:var(--tag-cyan)}.tone-violet{--tag-tone:var(--tag-violet)}.tone-fuchsia{--tag-tone:var(--tag-fuchsia)}.tone-rose{--tag-tone:var(--tag-rose)}.tone-olive{--tag-tone:var(--tag-olive)}.tone-maroon{--tag-tone:var(--tag-maroon)}

/* 회의록 목록(2026-11-12): 공통 표 규칙 위에 회의록 전용 값만 둔다 */
.meeting-table .meeting-dept{color:var(--text)}
.meeting-table .meeting-title a{color:var(--text);font-weight:400;text-decoration:none}
.meeting-table .meeting-title.unread a{font-weight:700}
.meeting-table .meeting-attendees{min-width:280px;max-width:380px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meeting-table tr[data-meeting-id]{cursor:pointer}
.meeting-table tr.meeting-locked td{color:var(--muted)}
.meeting-table tr.meeting-locked .meeting-title a{color:var(--muted);font-weight:400}
.meeting-count{margin:0 0 6px}
/* 퀵필터가 많을 때 PC에서는 두 줄로 절반씩(링크·회의록 공통), 모바일은 이어서 줄바꿈 */
.filter-lines{display:grid!important;gap:6px}
.filter-lines .filter-line{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
@media(max-width:700px){.filter-lines{display:flex!important;flex-wrap:wrap}.filter-lines .filter-line{display:contents}.meeting-table .meeting-attendees{max-width:none;white-space:normal}}

/* 11/12: 왼쪽 메뉴바 '메뉴 펼치기'(가로줄 세 개)는 아이콘이 많아 길어져도 맨 아래에 고정 */
html:not(.messenger-desktop) .office-shell .app-rail>#rail-expand{position:sticky;bottom:-8px;margin-top:0;flex:none;z-index:1;min-height:36px;height:36px;width:100%;padding:4px;display:flex;flex-direction:row;align-items:center;gap:0;background:var(--rail-glass,var(--bg));box-shadow:0 -6px 8px -6px rgb(0 0 0 / .12)}
html:not(.messenger-desktop) .office-shell .app-rail>#rail-expand span:not(.nav-count){display:none}

/* 메모(2026-11-12): 스티커 메모처럼 카드가 내용만큼 길어진다 */
.memo-board{display:grid;gap:10px;max-width:760px;margin-top:8px}
.memo-filters{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.memo-filters button[aria-pressed="true"]{background:var(--ui-selected-bg);color:var(--ui-selected-text);border-color:var(--ui-selected-bg)}
.memo-list{display:grid;gap:8px}
.memo-item{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:start;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--panel,#fff)}
.memo-check{display:flex;align-items:center;justify-content:center;height:26px}
.memo-check input{width:18px;height:18px;margin:0}
#content .memo-text{display:block;width:100%;min-height:26px;height:auto;resize:none;overflow:hidden;border:0;outline:0;box-shadow:none;background:transparent;padding:3px 0;margin:0;font:inherit;line-height:20px;color:var(--text);white-space:pre-wrap}
.memo-item.is-done .memo-text{color:var(--muted);text-decoration:line-through}
.memo-item.is-deleted{opacity:.75}
#content .memo-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:0;border:0;background:transparent;color:var(--muted);box-shadow:none}
#content .memo-icon:hover{color:var(--text);background:color-mix(in srgb,var(--text) 8%,transparent)}
#content .memo-icon.danger:hover{color:var(--tag-red)}
#content .memo-add-link{justify-self:start;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;box-shadow:none;color:var(--text);font-weight:650;padding:4px 2px;height:auto;min-height:0}
#content .memo-add-box{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border:1.5px dashed var(--line);border-radius:14px;background:color-mix(in srgb,var(--text) 3%,transparent);color:var(--muted);font-size:22px;box-shadow:none}
#content .memo-add-box:hover{color:var(--text);border-color:var(--muted)}
.memo-empty{margin:8px 2px}
#subnav .memo-add-category{color:var(--muted)}

/* 2026-11-13 사이트 전용 확인·입력·알림 팝업(ui-dialog.js). 브라우저 기본 팝업 대신, 화면 가운데. */
dialog.ui-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 32px));max-height:min(80dvh,560px);padding:24px;border:1px solid var(--line);border-radius:var(--ui-radius-surface);background:var(--panel);color:var(--text);box-shadow:0 18px 48px #0003}
dialog.ui-dialog::backdrop{background:#0006}
dialog.ui-dialog form{display:grid;gap:14px;margin:0}
dialog.ui-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0}
dialog.ui-dialog h2{margin:0;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
dialog.ui-dialog .ui-dialog-close{flex:none;width:var(--ui-control-height);min-width:var(--ui-control-height);padding:0;margin:0}
dialog.ui-dialog .ui-dialog-message{margin:0;white-space:pre-line;overflow-wrap:anywhere;line-height:1.6;color:var(--text)}
dialog.ui-dialog .ui-dialog-input{width:100%;margin:0}
dialog.ui-dialog .ui-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin:6px 0 0;flex-wrap:wrap}
dialog.ui-dialog .ui-dialog-actions button{margin:0;min-width:72px}
dialog.ui-dialog .ui-dialog-actions button.primary.danger{background:var(--danger,#c2414b);border-color:var(--danger,#c2414b);color:#fff}
@media(max-width:700px){dialog.ui-dialog{padding:20px}dialog.ui-dialog .ui-dialog-actions button{min-height:44px;flex:1 1 0}}
.meeting-list-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 6px}.meeting-list-bar .meeting-count{margin:0}.meeting-list-bar select{width:auto}
/* 2026-11-13 메모: 입력칸은 처음 1줄, 줄이 늘면 그만큼 커진다. 체크박스·휴지통은 첫 줄 높이에 맞춘다(PC·모바일 같음). */
#content .memo-item{align-items:start}
#content .memo-item .memo-check{margin:0!important;padding:0!important;align-self:start;height:26px;min-height:26px}
#content .memo-item .memo-text{min-height:26px!important;height:26px}
#content .memo-item .memo-icon{align-self:start;height:26px!important;min-height:26px!important;width:30px;min-width:30px}
#content .memo-item .memo-text{padding:3px 0!important;line-height:20px!important}
.ui-status-tag.chat-leave-status{height:18px;padding:0 5px;font-size:11px;border-radius:var(--ui-radius-control,10px);margin-right:4px;vertical-align:1px}
.org-person-main .ui-status-tag.chat-leave-status{margin-left:6px}
/* 11/13 휴가신청서 사용 단위: 날짜별 표 */
.leave-unit-table-wrap{max-width:100%;overflow-x:auto}.leave-unit-table{width:auto;min-width:min(100%,420px);border-collapse:collapse;font-size:13px;margin:2px 0}.leave-unit-table th,.leave-unit-table td{padding:6px 12px;border:1px solid var(--line);text-align:center;white-space:nowrap;height:auto}.leave-unit-table th{background:var(--soft);color:var(--muted);font-weight:500}
.attachment-ext-groups{border:1px solid var(--line);border-radius:var(--ui-radius-control);padding:10px 12px;margin:8px 0;display:grid;gap:6px}.attachment-ext-groups legend{font-size:13px;padding:0 4px}.attachment-ext-groups>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px}.attachment-ext-groups strong{min-width:64px;font-weight:500}.attachment-ext-groups label{display:inline-flex;align-items:center;gap:4px;margin:0;font-weight:400}.attachment-risk-notes{margin:8px 0;font-size:13px}.attachment-risk-notes summary{cursor:pointer}.attachment-risk-notes ul{margin:8px 0;padding-left:18px;color:var(--muted);display:grid;gap:4px}
.module-form.setting-focus{outline:2px solid var(--work-point,#2563eb);outline-offset:2px}
/* 11/15 로드맵 A3: <a class="button"> 다운로드 링크를 버튼 모양으로 */a.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:var(--ui-control-height);padding:0 12px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:var(--panel);color:var(--text);font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;vertical-align:middle}a.button:hover{background:var(--soft);text-decoration:none}a.button:focus-visible{outline:2px solid var(--work-point);outline-offset:2px}a.button.primary{background:var(--accent);border-color:var(--accent);color:var(--panel)}@media (max-width:700px){a.button{min-height:36px}}
/* 11/15 로드맵 A6: 701~1211px에서 근태 달력이 카드 밖으로 잘리지 않게(주간 합계 칸을 줄이고 최소 폭 해제) */@media(min-width:701px) and (max-width:1211px){.attendance-calendar-panel .hr-calendar-header,.attendance-calendar-panel .hr-calendar-week{min-width:0;grid-template-columns:88px repeat(7,minmax(0,1fr))}.attendance-calendar-panel .hr-calendar-day{min-width:0;overflow:hidden}}
/* 11/15 사용자 결정 D2: 선택된 탭·필터·세그먼트는 한 색(라이트=짙은 글자색 배경, 다크=밝은 배경). D3: 카드 모서리 10px. */
:root{--ui-selected-bg:var(--text);--ui-selected-text:var(--panel)}
/* 11/15 사용자 결정 D5: 태블릿 세로·반쪽 창(701~1023px)은 사이드 메뉴·상단 도구를 줄여 본문 폭을 넓힌다. */
@media(min-width:701px) and (max-width:1023px){:root{--sub:172px}.office-shell .module-side{padding:20px 12px}.global-search{width:clamp(180px,28vw,300px)}.app-download-shortcut span{display:none}.app-download-shortcut{padding-left:8px;padding-right:8px}}
@media(min-width:701px) and (max-width:1023px){.office-shell .home-gadget-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.office-shell .home-gadget-column:nth-child(3){grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.office-shell .home-gadget .gadget-metrics :is(span,small,p){word-break:keep-all;overflow-wrap:anywhere}}
/* 11/15 주 52시간: 이번 주 누적이 48시간 이상이면 빨간 글자 */
.clock-worked [data-week-level=warn],.clock-worked [data-week-level=over]{color:var(--danger,#b42318)}
/* 11/16 상단바 안내 띠: 로고와 검색 사이 빈 칸, 왼쪽 정렬. 색은 기본(테두리)·노란·빨간. 여러 줄은 한 줄씩 위로 넘어간다. */
.topbar>.top-notice{flex:1 1 auto;min-width:0;max-width:760px;margin:0 auto 0 12px;display:flex;align-items:center;gap:10px;height:var(--ui-control-height);padding:0 12px;border-radius:var(--ui-radius-control);border:1px solid var(--text);background:var(--panel);color:var(--text);font-size:13px;line-height:20px;text-align:left;font-weight:600}
.topbar>.top-notice[hidden]{display:none}
.topbar>.top-notice .top-notice-window{flex:1 1 auto;min-width:0;height:20px;overflow:hidden;display:block}
.topbar>.top-notice .top-notice-track{display:flex;flex-direction:column;transition:transform .9s cubic-bezier(.45,0,.2,1)}
.topbar>.top-notice .top-notice-text{display:block;height:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar>.top-notice[data-tone=yellow]{border-color:var(--tag-yellow);color:var(--tag-yellow);background:color-mix(in srgb,var(--tag-yellow) 10%,var(--panel))}
.topbar>.top-notice[data-tone=red]{border-color:var(--danger);color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,var(--panel))}
.topbar>.top-notice .top-notice-action{flex:none;height:24px;padding:0 10px;border-radius:var(--ui-radius-control);border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}
/* 11/16 사용자 요청: 사이트 전체 "즉시 표시" 규칙(애니메이션 끔)의 예외. 상단 안내 띠만 5초마다 0.9초 동안 부드럽게 위로 올라간다. */
html .topbar>.top-notice .top-notice-track{transition:transform .9s cubic-bezier(.45,0,.2,1)!important}
@media(max-width:1023px){.topbar>.top-notice{display:none}}
/* 11/16 결재 검색: 버튼을 검색항목 드롭다운 칸(2번째 열)에 맞추고 초기화 → 검색(검정) 순서 */
#content .approval-filter-actions{display:grid;grid-template-columns:100px auto auto;justify-content:start;gap:8px;margin-top:12px}
#content .approval-filter-actions>button{width:auto;margin:0}
@container approval-filters (max-width:560px){#content .approval-filter-actions{grid-template-columns:48px auto auto;gap:6px}}
/* 11/16 검은(주) 버튼도 마우스를 올리면 바뀐다: 라이트는 조금 밝게, 다크(밝은 버튼)는 조금 어둡게 */
button.primary:not(:disabled):hover,a.button.primary:hover{background:color-mix(in srgb,var(--accent) 80%,#fff);border-color:color-mix(in srgb,var(--accent) 80%,#fff)}
[data-theme=dark] button.primary:not(:disabled):hover,[data-theme=dark] a.button.primary:hover{background:color-mix(in srgb,var(--accent) 80%,#000);border-color:color-mix(in srgb,var(--accent) 80%,#000)}
button.danger:not(:disabled):hover{filter:brightness(.92)}
[data-theme=dark] button.danger:not(:disabled):hover{filter:brightness(1.1)}
/* 11/16 경영지원 주 52시간 현황 */
#content .week-limit-board{padding:14px 16px;margin-bottom:12px}
#content .week-limit-board h2{font-size:15px;margin:0 0 8px}
#content .week-limit-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
#content .week-limit-list li{display:grid;grid-template-columns:minmax(80px,140px) minmax(0,1fr) auto auto;gap:10px;align-items:center;min-height:32px}
#content .week-limit-list .week-limit-name{font-weight:600}
#content .week-limit-list .week-limit-tag{font-size:12px;padding:2px 8px;border-radius:10px;background:var(--soft)}
#content .week-limit-list li[data-level=over] :is(strong,.week-limit-tag){color:var(--danger)}

/* 2026-11-16 B5 탭·세그먼트 통일(ROADMAP B5, 결정 D2): 선택색은 --ui-selected-bg 하나, 모서리 10px, 높이는 공통 컨트롤 높이.
   새 화면은 컨테이너에 .ui-tabs를 쓰고 선택은 aria-pressed=true(필터·보기 전환) 또는 aria-selected=true(role=tab)로 표기한다.
   옛 탭 클래스는 아래 묶음으로 같은 모양을 받는다(마크업 전환은 메뉴 묶음별로 계속). 협업 상태 필터(.col-status-filters)는 상태 색 태그라 제외. */
.ui-tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
:is(.ui-tabs,.survey-tabs,.quick-tabs,.contact-tabs,.approval-status-tabs,.view-tabs,.quick-filters,.list-filters,.form-status-filters,.col-settings-tabs,.mail-settings-tabs,.link-type-filters,.col-tabs,.board-admin-tabs,.status-filters,.mobile-attendance-filters,.leave-entry-modes,.desktop-settings-tabs,.work-group-tabs,.purchase-tabs,.cal-views,.office-list-filters,.employee-list-filters,.audit-filters,.mail-quota-filters,.chat-filter-bar,.notification-tabs,.hr-profile-tabs,.company-leave-tabs,.account-quick-filters,.memo-filters,.board-editor-modes,.portal-tabs)>:is(button,a,[role=tab]){border-radius:var(--ui-radius-control)}
:is(.ui-tabs,.survey-tabs,.quick-tabs,.contact-tabs,.approval-status-tabs,.view-tabs,.quick-filters,.list-filters,.form-status-filters,.col-settings-tabs,.mail-settings-tabs,.link-type-filters,.col-tabs,.board-admin-tabs,.status-filters,.mobile-attendance-filters,.leave-entry-modes,.desktop-settings-tabs,.work-group-tabs,.purchase-tabs,.cal-views,.office-list-filters,.employee-list-filters,.audit-filters,.mail-quota-filters,.chat-filter-bar,.notification-tabs,.hr-profile-tabs,.company-leave-tabs,.account-quick-filters,.memo-filters,.board-editor-modes,.portal-tabs) :is(button,a,[role=tab]):is([aria-pressed=true],[aria-selected=true],[aria-current=page],.active){background:var(--ui-selected-bg);color:var(--ui-selected-text);border-color:var(--ui-selected-bg);box-shadow:none}
/* 2026-11-16 B2: 대화 목록 '알림 허용' 버튼이 필터 줄에서 늘어나 PC 50px로 보이던 것 → 공통 버튼 높이(PC 30·모바일 36). */
#content .room-list>.chat-filter-bar #chat-notify-permission{box-sizing:border-box;height:var(--ui-control-height);min-height:var(--ui-control-height);padding-block:0;align-self:center}

/* 11/17 iPhone TestFlight 설치 순서 안내(다운로드 페이지 App Store 칸) */
.download-steps{font-size:13px;line-height:1.55;color:var(--text);text-align:left}
.download-steps p{margin:0 0 6px}
.download-steps ol{margin:0;padding-left:20px}
.download-steps li+li{margin-top:2px}
/* 2026-11-17 마이페이지 OTP 새로 등록: QR은 라이트·다크 모두 흰 바탕이어야 OTP 앱이 읽는다(의도된 고정색). */
.works-otp-qr{width:200px;max-width:100%;padding:8px;margin:8px 0 12px;background:#fff;border:1px solid var(--line);border-radius:var(--ui-radius-control)}
.works-otp-qr svg{display:block;width:100%;height:auto}
.works-otp-steps{margin:0 0 4px;padding-left:20px;line-height:1.7}
.works-otp-manual{margin:0 0 12px;font-size:12px;color:var(--muted)}.works-otp-manual code{font-size:13px;letter-spacing:.04em;color:var(--text);word-break:break-all}
.works-otp-done{font-weight:600}
