/* Jeongdo Design System — feature screen styles. */

/* 고객 승인 버전 이력과 직전 버전 비교. */
main.approval-public-view { max-width: 58rem; }
.approval-publish-panel { margin-top: 0; }
.approval-version-list { display: grid; gap: var(--space-4); }
.approval-version-card { display: grid; gap: var(--space-5); }
.approval-version-header h2,
.approval-version-header h3 { margin: 0; }
.approval-version-meta { margin: var(--space-2) 0 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.approval-decision { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.approval-result { margin-top: var(--space-2); }
.approval-version-card .approval-decision-form { max-width: none; }
.approval-decision-actions { padding-left: calc(28% + var(--space-4)); }
.version-diff-state { display: flex; align-items: baseline; gap: var(--space-2); }
.version-diff { border-top: 1px solid var(--color-border-subtle); padding-top: var(--space-4); }
.version-diff-summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.version-diff-groups { display: grid; gap: var(--space-2); }
.version-diff-group { overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: var(--color-surface-default); }
.version-diff-group > summary { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-4); background: var(--color-surface-subtle); cursor: pointer; }
.version-diff-group > summary::after { color: var(--color-text-secondary); content: "펼치기"; font-size: var(--font-size-xs); }
.version-diff-group[open] > summary::after { content: "접기"; }
.version-diff-group-count { margin-left: auto; color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.version-diff-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.version-diff-item { padding: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
.version-diff-item:first-child { border-top: 0; }
.version-diff-item-head { display: flex; align-items: center; gap: var(--space-2); }
.version-diff-fields { display: grid; gap: var(--space-2); margin: var(--space-3) 0 0; }
.version-diff-fields > div { display: grid; grid-template-columns: minmax(6rem, .3fr) 1fr; gap: var(--space-3); align-items: start; }
.version-diff-fields dt { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.version-diff-fields dd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-2); align-items: center; margin: 0; font-size: var(--font-size-sm); overflow-wrap: anywhere; }
.version-diff-before,
.version-diff-after { min-width: 0; padding: var(--space-2); border-radius: var(--radius-sm); }
.version-diff-before { background: var(--color-danger-subtle); color: var(--color-danger); }
.version-diff-after { background: var(--color-success-subtle); color: var(--color-success); }

@media (max-width: 48rem) {
  .approval-publish-panel .panel-header,
  .approval-version-header { flex-direction: column; }
  .approval-publish-panel .panel-header form,
  .approval-publish-panel .panel-header .btn { width: 100%; }
  .approval-version-header .button-group { width: 100%; }
  .approval-version-header .button-group .btn { flex: 1; }
  .approval-decision { align-items: flex-start; flex-direction: column; }
  .approval-decision-actions { padding-left: 0; }
  .version-diff-state,
  .version-diff-summary { align-items: flex-start; flex-direction: column; }
  .version-diff-fields > div { grid-template-columns: 1fr; gap: var(--space-1); }
  .version-diff-fields dd { grid-template-columns: 1fr; }
  .version-diff-fields dd > [aria-hidden="true"] { transform: rotate(90deg); justify-self: center; }
}

/* Design system catalogue — drafting index and material sample board. */
.public-view:has(.ds-shell) { max-width: none; padding: 0; }
.ds-shell { min-height: 100vh; display: grid; grid-template-columns: 15rem minmax(0, 1fr); background: var(--color-surface-canvas); }
.ds-index { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: var(--space-6); border-right: 1px solid var(--color-border-default); background: var(--color-surface-default); }
.ds-index::after { position: absolute; inset: 0 0 0 auto; width: var(--space-2); background-image: repeating-linear-gradient(to bottom, var(--color-border-default) 0 1px, transparent 1px var(--space-4)); content: ""; pointer-events: none; }
.ds-index-brand { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-primary); text-decoration: none; }
.ds-index-brand > span:last-child { display: grid; line-height: var(--line-height-tight); }
.ds-index-brand small { color: var(--color-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); text-transform: uppercase; }
.ds-index nav { display: grid; gap: var(--space-1); margin-top: var(--space-12); }
.ds-index nav a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); border-radius: var(--radius-sm); color: var(--color-text-secondary); font-size: var(--font-size-sm); text-decoration: none; }
.ds-index nav a:hover { background: var(--color-surface-subtle); color: var(--color-text-primary); }
.ds-index nav span { color: var(--color-info); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.ds-index-note { margin: auto 0 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.ds-catalogue { min-width: 0; }
.ds-masthead { min-height: 30rem; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); padding: var(--space-12) clamp(var(--space-6), 6vw, var(--space-16)); background: var(--color-surface-inverse); color: var(--color-text-inverse); }
.ds-eyebrow { margin: 0 0 var(--space-6); color: var(--color-info-border); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .14em; }
.ds-masthead h1 { max-width: 52rem; margin: 0; font-size: clamp(2.75rem, 6vw, 6.5rem); line-height: .98; letter-spacing: -.065em; }
.ds-masthead-meta { display: grid; grid-template-columns: auto auto; gap: var(--space-2) var(--space-5); padding-left: var(--space-5); border-left: 1px solid var(--color-border-strong); font-family: var(--font-family-data); font-size: var(--font-size-xs); white-space: nowrap; }
.ds-masthead-meta span { color: var(--color-text-disabled); }
.ds-lead { max-width: 62rem; margin: 0; padding: var(--space-12) clamp(var(--space-6), 6vw, var(--space-16)); color: var(--color-text-secondary); font-size: var(--font-size-xl); line-height: 1.75; }

/* Jjaim brand proposal preview. */
.jjaim-preview { --brand-primary: var(--jjaim-brand-700); --brand-action: var(--jjaim-brand-700); --brand-dark: var(--jjaim-brand-900); --brand-soft: var(--jjaim-brand-100); --brand-softest: var(--jjaim-brand-50); --brand-on-primary: var(--color-text-inverse); --brand-accent: var(--jjaim-brass); color: var(--jjaim-ink); background: var(--jjaim-paper); }
.jjaim-preview[data-brand-theme="smoked-oak"] { --brand-primary: var(--jjaim-smoked-oak-700); --brand-action: var(--jjaim-smoked-oak-800); --brand-dark: var(--jjaim-smoked-oak-900); --brand-soft: var(--jjaim-smoked-oak-100); --brand-softest: var(--jjaim-smoked-oak-100); --brand-on-primary: var(--color-text-inverse); }
.jjaim-preview .ds-section-head span { color: var(--brand-primary); }
.jjaim-logo-upper { fill: var(--jjaim-smoked-oak-700); }
.jjaim-logo-lower { fill: var(--jjaim-ink); }
.jjaim-logo-joint { fill: var(--jjaim-brass); }
.jjaim-approved-lockup { display: grid; grid-template-columns: minmax(14rem, .7fr) 1fr; gap: var(--space-8); align-items: center; margin-bottom: var(--space-4); padding: var(--space-6); border: 1px solid var(--color-border-default); background: var(--jjaim-paper); }
.jjaim-approved-lockup > div:first-child { display: grid; gap: var(--space-1); }
.jjaim-approved-lockup > div:first-child > span { color: var(--brand-primary); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .08em; }
.jjaim-approved-lockup p { margin: var(--space-2) 0 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.jjaim-approved-mark { display: flex; align-items: center; justify-content: center; gap: var(--space-5); min-height: 9rem; border-left: 1px solid var(--color-border-default); }
.jjaim-approved-mark .jjaim-brand-icon { width: 5rem; height: 5rem; }
.jjaim-approved-mark > span { display: grid; gap: var(--space-1); }
.jjaim-approved-mark strong { font-size: var(--font-size-2xl); letter-spacing: -.04em; }
.jjaim-approved-mark small { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.jjaim-theme-switcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin-bottom: var(--space-4); }
.jjaim-theme-option { --option-color: var(--jjaim-brand-700); display: flex; align-items: center; gap: var(--space-3); min-height: 4.5rem; padding: var(--space-3); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); background: var(--color-surface-default); color: var(--jjaim-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); }
.jjaim-theme-option:hover { transform: translateY(-1px); border-color: var(--option-color); }
.jjaim-theme-option[aria-pressed="true"] { border-color: var(--option-color); box-shadow: 0 0 0 2px var(--option-color); }
.jjaim-theme-option i { width: 2.25rem; height: 2.25rem; display: block; flex: 0 0 auto; border-radius: 50%; background: var(--option-color); box-shadow: inset 0 0 0 1px var(--color-overlay); }
.jjaim-theme-option span { display: grid; gap: var(--space-1); min-width: 0; }
.jjaim-theme-option strong { font-size: var(--font-size-sm); }
.jjaim-theme-option small { color: var(--color-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jjaim-theme-smoked-oak { --option-color: var(--jjaim-smoked-oak-700); }
.jjaim-icon-lab { display: grid; grid-template-columns: minmax(12rem, .42fr) 1fr; gap: var(--space-6); align-items: center; margin-bottom: var(--space-4); padding: var(--space-5); border: 1px solid var(--color-border-default); background: var(--color-surface-default); }
.jjaim-icon-lab > div:first-child { display: grid; gap: var(--space-1); }
.jjaim-icon-lab > div:first-child > span { color: var(--brand-primary); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .08em; }
.jjaim-icon-lab > div:first-child > p { margin: var(--space-2) 0 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.jjaim-icon-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.jjaim-icon-switcher button { display: flex; align-items: center; gap: var(--space-3); min-height: 5.5rem; padding: var(--space-3); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); background: var(--jjaim-paper); color: var(--jjaim-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast); }
.jjaim-icon-switcher button:hover { border-color: var(--brand-action); }
.jjaim-icon-switcher button[aria-pressed="true"] { border-color: var(--brand-action); background: var(--brand-softest); box-shadow: 0 0 0 1px var(--brand-action); color: var(--brand-action); }
.jjaim-icon-switcher svg { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; fill: currentColor; }
.jjaim-icon-switcher button > span { display: grid; gap: var(--space-1); }
.jjaim-icon-switcher strong { font-size: var(--font-size-sm); }
.jjaim-icon-switcher small { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.jjaim-hero-preview { position: relative; min-height: 34rem; display: grid; align-content: space-between; overflow: hidden; padding: var(--space-8); background: var(--brand-primary); color: var(--brand-on-primary); transition: background var(--motion-normal), color var(--motion-normal); }
.jjaim-wordmark { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--space-3); font-size: var(--font-size-xl); }
.jjaim-brand-icon { width: 2.5rem; height: 2.5rem; display: block; fill: currentColor; }
.jjaim-brand-icon.mini { width: 1.125rem; height: 1.125rem; color: var(--brand-action); }
.jjaim-hero-preview .jjaim-logo-upper { fill: var(--jjaim-paper); }
.jjaim-hero-preview .jjaim-logo-lower { fill: var(--jjaim-smoked-oak-900); }
.jjaim-hero-copy { position: relative; z-index: 1; max-width: 44rem; }
.jjaim-hero-copy > p, .jjaim-component-card > p, .jjaim-dark-card > p { margin: 0 0 var(--space-4); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .12em; }
.jjaim-hero-copy h3 { margin: 0 0 var(--space-4); font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -.06em; }
.jjaim-hero-copy > span { color: var(--brand-on-primary); opacity: .72; }
.jjaim-hero-actions { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-8); }
.jjaim-hero-actions button, .jjaim-dark-card button { min-height: 2.75rem; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-sm); background: var(--jjaim-paper); color: var(--brand-dark); font: inherit; font-weight: var(--font-weight-semibold); cursor: pointer; }
.jjaim-hero-actions a { color: var(--brand-on-primary); font-size: var(--font-size-sm); text-underline-offset: var(--space-1); }
.jjaim-joint { position: absolute; top: 0; right: 0; width: min(36rem, 55%); height: 100%; opacity: .18; }
.jjaim-joint span { position: absolute; display: block; border: 1px solid var(--brand-on-primary); transform: rotate(45deg); }
.jjaim-joint span:nth-child(1) { width: 24rem; height: 24rem; top: -7rem; right: -4rem; }
.jjaim-joint span:nth-child(2) { width: 16rem; height: 16rem; top: 10rem; right: 10rem; border-color: var(--brand-accent); }
.jjaim-joint span:nth-child(3) { width: 8rem; height: 8rem; bottom: -3rem; right: 2rem; }
.jjaim-palette { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr .8fr; margin-top: var(--space-4); border: 1px solid var(--color-border-default); }
.jjaim-chip { min-height: 10rem; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1); padding: var(--space-4); border-right: 1px solid var(--color-border-default); }
.jjaim-chip:last-child { border-right: 0; }
.jjaim-chip span, .jjaim-chip code { font-size: var(--font-size-xs); }
.jjaim-chip strong { font-family: var(--font-family-data); }
.jjaim-chip code { opacity: .7; }
.jjaim-chip-primary { background: var(--brand-primary); color: var(--color-text-inverse); transition: background var(--motion-normal); }
.jjaim-chip-ink { background: var(--jjaim-ink); color: var(--color-text-inverse); }
.jjaim-chip-paper { background: var(--jjaim-paper); }
.jjaim-chip-soft { background: var(--brand-soft); transition: background var(--motion-normal); }
.jjaim-chip-brass { background: var(--jjaim-brass); color: var(--jjaim-brand-900); }
.jjaim-approved-board { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; margin: var(--space-8) 0 0; overflow: hidden; border: 1px solid var(--color-border-default); background: var(--jjaim-ink); }
.jjaim-approved-board img { width: 100%; height: auto; display: block; }
.jjaim-approved-board figcaption { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); padding: var(--space-5); border-left: 1px solid var(--jjaim-smoked-oak-700); color: var(--color-text-inverse); }
.jjaim-approved-board figcaption span { color: var(--jjaim-brass); font-family: var(--font-family-data); font-size: var(--font-size-xs); letter-spacing: .08em; }
.jjaim-approved-board figcaption small { color: var(--color-text-disabled); line-height: var(--line-height-relaxed); }
.jjaim-applications { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-8); }
.jjaim-ui-card, .jjaim-component-card, .jjaim-dark-card { min-height: 25rem; border: 1px solid var(--color-border-default); background: var(--color-surface-default); }
.jjaim-ui-card { display: flex; flex-direction: column; }
.jjaim-ui-card > header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--color-border-subtle); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.jjaim-mini-brand { display: flex; align-items: center; gap: var(--space-2); color: var(--jjaim-ink); font-size: var(--font-size-sm); }
.jjaim-mini-mark { width: .875rem; height: .875rem; display: block; background: var(--brand-primary); transform: rotate(45deg); transition: background var(--motion-normal); }
.jjaim-ui-content { display: flex; flex: 1; flex-direction: column; padding: var(--space-6); }
.jjaim-ui-content > p { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.jjaim-ui-content h3 { margin: var(--space-2) 0 var(--space-8); font-size: var(--font-size-xl); }
.jjaim-ui-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.jjaim-ui-meta span { display: grid; gap: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.jjaim-ui-meta strong { color: var(--jjaim-ink); font-size: var(--font-size-lg); }
.jjaim-progress { height: var(--space-1); margin: var(--space-5) 0; overflow: hidden; background: var(--brand-soft); }
.jjaim-progress span { width: 68%; height: 100%; display: block; background: var(--brand-action); transition: background var(--motion-normal); }
.jjaim-ui-content button, .jjaim-button-primary { min-height: 2.5rem; margin-top: auto; border: 1px solid var(--brand-action); border-radius: var(--radius-sm); background: var(--brand-action); color: var(--color-text-inverse); font: inherit; font-weight: var(--font-weight-semibold); transition: background var(--motion-normal), border-color var(--motion-normal); }
.jjaim-component-card { display: flex; flex-direction: column; padding: var(--space-6); background: var(--jjaim-paper); }
.jjaim-component-card > p { color: var(--brand-primary); }
.jjaim-component-card h3 { margin: 0; font-size: var(--font-size-2xl); line-height: var(--line-height-tight); }
.jjaim-button-row { display: flex; gap: var(--space-2); margin: var(--space-8) 0 var(--space-4); }
.jjaim-button-primary, .jjaim-button-secondary { margin: 0; padding: 0 var(--space-4); cursor: pointer; }
.jjaim-button-secondary { min-height: 2.5rem; border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); background: transparent; color: var(--jjaim-ink); font: inherit; font-weight: var(--font-weight-semibold); }
.jjaim-selection { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding: var(--space-4); border: 1px solid var(--brand-action); background: var(--brand-softest); transition: background var(--motion-normal), border-color var(--motion-normal); }
.jjaim-selection-icon { width: 1.5rem; height: 1.5rem; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--brand-action); color: var(--color-text-inverse); font-size: var(--font-size-xs); }
.jjaim-selection div { display: grid; min-width: 0; }
.jjaim-selection small { color: var(--color-text-secondary); }
.jjaim-selection em { margin-left: auto; color: var(--brand-action); font-size: var(--font-size-xs); font-style: normal; font-weight: var(--font-weight-semibold); }
.jjaim-dark-card { display: flex; flex-direction: column; padding: var(--space-6); background: var(--jjaim-ink); color: var(--color-text-inverse); }
.jjaim-dark-card > p { color: var(--brand-accent); }
.jjaim-dark-card h3 { margin: auto 0 var(--space-3); font-size: var(--font-size-2xl); line-height: var(--line-height-tight); }
.jjaim-dark-card > span { color: var(--color-text-disabled); font-size: var(--font-size-sm); }
.jjaim-dark-card button { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-6); background: var(--brand-action); color: var(--color-text-inverse); transition: background var(--motion-normal); }
.jjaim-dark-card b { color: var(--brand-accent); }
.jjaim-ratio { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; margin: var(--space-6) 0 0; color: var(--color-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jjaim-ratio strong { color: var(--jjaim-ink); }
.jjaim-alternatives { margin-top: var(--space-16); padding-top: var(--space-10); border-top: 1px solid var(--color-border-default); }
.jjaim-alternatives > header { display: grid; grid-template-columns: minmax(13rem, .55fr) 1fr; gap: var(--space-2) var(--space-8); align-items: end; margin-bottom: var(--space-8); }
.jjaim-alternatives > header span { color: var(--brand-primary); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .08em; }
.jjaim-alternatives > header h3 { margin: 0; font-size: var(--font-size-2xl); }
.jjaim-alternatives > header p { grid-column: 2; margin: 0; color: var(--color-text-secondary); }
.jjaim-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.jjaim-option-card { --preview-primary: var(--jjaim-brand-700); --preview-dark: var(--jjaim-brand-800); --preview-soft: var(--jjaim-brand-100); overflow: hidden; border: 1px solid var(--color-border-default); background: var(--color-surface-default); }
.jjaim-option-visual { min-height: 20rem; display: flex; flex-direction: column; padding: var(--space-5); background: var(--preview-soft); color: var(--preview-dark); }
.jjaim-option-brand { display: flex; align-items: center; gap: var(--space-2); }
.jjaim-option-brand .jjaim-mini-mark { background: var(--preview-primary); }
.jjaim-option-visual > p { margin: auto 0 var(--space-6); font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); letter-spacing: -.02em; }
.jjaim-option-visual button { width: 100%; min-height: 2.625rem; border: 1px solid var(--preview-primary); border-radius: var(--radius-sm); background: var(--preview-primary); color: var(--color-text-inverse); font: inherit; font-weight: var(--font-weight-semibold); cursor: pointer; }
.jjaim-option-info { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); padding: var(--space-5); border-top: var(--space-1) solid var(--preview-primary); }
.jjaim-option-info > span { color: var(--preview-primary); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .06em; }
.jjaim-option-info > strong { font-family: var(--font-family-data); font-size: var(--font-size-sm); }
.jjaim-option-info > p { grid-column: 1 / -1; margin: var(--space-2) 0 0; font-weight: var(--font-weight-semibold); }
.jjaim-option-info > small { grid-column: 1 / -1; min-height: 3.5em; color: var(--color-text-secondary); line-height: var(--line-height-normal); }
.ds-section { padding: var(--space-16) clamp(var(--space-6), 6vw, var(--space-16)); border-top: 1px solid var(--color-border-default); scroll-margin-top: var(--space-4); }
.ds-section-head { display: grid; grid-template-columns: minmax(14rem, .7fr) 1fr; gap: var(--space-8); margin-bottom: var(--space-10); }
.ds-section-head span, .ds-card-label { margin: 0; color: var(--color-info); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .08em; }
.ds-section-head h2 { margin: var(--space-2) 0 0; font-size: var(--font-size-2xl); }
.ds-section-head > p { max-width: 34rem; margin: 0; color: var(--color-text-secondary); }
.ds-color-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--color-border-default); }
.ds-swatch { min-height: 12rem; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1); padding: var(--space-4); border-right: 1px solid var(--color-border-default); }
.ds-swatch:last-child { border-right: 0; }
.ds-swatch span { font-weight: var(--font-weight-semibold); }
.ds-swatch strong { font-family: var(--font-family-data); font-size: var(--font-size-sm); }
.ds-swatch code { font-size: var(--font-size-xs); opacity: .72; overflow-wrap: anywhere; }
.ds-swatch-ink { background: var(--color-surface-inverse); color: var(--color-text-inverse); }
.ds-swatch-paper { background: var(--color-surface-default); }
.ds-swatch-blue { background: var(--color-info); color: var(--color-text-inverse); }
.ds-swatch-green { background: var(--color-success); color: var(--color-text-inverse); }
.ds-swatch-brass { background: var(--color-warning); color: var(--color-text-inverse); }
.ds-swatch-red { background: var(--color-danger); color: var(--color-text-inverse); }
.ds-token-panels, .ds-feedback-grid, .ds-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.ds-token-table-wrap { margin-top: var(--space-4); }
.ds-token-table-wrap code { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.ds-specimen-panel { padding: var(--space-6); border: 1px solid var(--color-border-subtle); background: var(--color-surface-default); }
.ds-specimen-panel h3 { margin: 0 0 var(--space-6); font-size: var(--font-size-sm); }
.ds-space-list { display: flex; align-items: flex-end; gap: var(--space-5); min-height: 5rem; }
.ds-space-list div { display: grid; justify-items: center; gap: var(--space-2); }
.ds-space { display: block; background: var(--color-info); }
.ds-space-1 { width: var(--space-1); height: var(--space-1); }
.ds-space-2 { width: var(--space-2); height: var(--space-2); }
.ds-space-4 { width: var(--space-4); height: var(--space-4); }
.ds-space-6 { width: var(--space-6); height: var(--space-6); }
.ds-space-8 { width: var(--space-8); height: var(--space-8); }
.ds-radius-list { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ds-radius-list span { display: inline-grid; width: 4.5rem; height: 4.5rem; place-items: center; border: 1px solid var(--color-border-strong); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.ds-radius-sm { border-radius: var(--radius-sm); }
.ds-radius-md { border-radius: var(--radius-md); }
.ds-radius-lg { border-radius: var(--radius-lg); }
.ds-radius-pill { border-radius: var(--radius-pill); }
.ds-type-sheet { border-top: 1px solid var(--color-border-strong); }
.ds-font-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.ds-font-stack div { display: grid; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--color-border-subtle); background: var(--color-surface-default); }
.ds-font-stack span { color: var(--color-info); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .08em; }
.ds-font-stack strong { font-size: var(--font-size-xl); }
.ds-font-stack code { color: var(--color-text-secondary); font-size: var(--font-size-xs); overflow-wrap: anywhere; }
.ds-weight-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: var(--space-8); border: 1px solid var(--color-border-subtle); background: var(--color-surface-default); }
.ds-weight-list span { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-4); border-right: 1px solid var(--color-border-subtle); }
.ds-weight-list span:last-child { border-right: 0; }
.ds-weight-list code { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.ds-type-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 9rem; align-items: baseline; gap: var(--space-5); padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border-subtle); }
.ds-type-row code, .ds-type-row > span { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.ds-type-row p { margin: 0; }
.ds-type-display p { font-size: var(--font-size-display); font-weight: var(--font-weight-bold); line-height: 1.08; letter-spacing: -.045em; }
.ds-type-2xl p { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); }
.ds-type-xl p { font-size: var(--font-size-xl); }
.ds-type-lg p { font-size: var(--font-size-lg); }
.ds-type-md p { font-size: var(--font-size-md); }
.ds-type-sm p { font-size: var(--font-size-sm); }
.ds-type-xs p { font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.ds-component-stage { display: grid; gap: var(--space-6); padding: var(--space-8); border: 1px solid var(--color-border-subtle); background-image: linear-gradient(var(--color-border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--color-border-subtle) 1px, transparent 1px); background-size: var(--space-4) var(--space-4); }
.ds-demo-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ds-feedback-grid { align-items: start; }
.ds-alert-list { display: grid; gap: var(--space-2); }
.ds-alert-list .alert { display: flex; gap: var(--space-2); }
.ds-card-grid .card { min-height: 17rem; display: flex; flex-direction: column; }
.ds-card-grid h3 { margin: var(--space-1) 0 0; }
.ds-card-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-8) 0; }
.ds-card-data div { display: grid; gap: var(--space-1); }
.ds-card-data dt { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.ds-card-data dd { margin: 0; font-weight: var(--font-weight-semibold); }
.ds-card-actions { display: flex; gap: var(--space-2); margin-top: auto; }
.ds-empty-demo { max-width: none; width: 100%; min-height: 17rem; margin: 0; display: grid; place-items: center; align-content: center; gap: var(--space-2); }
.ds-empty-demo p { margin: 0 0 var(--space-3); }
.ds-table-wrap { margin-top: var(--space-4); }
.ds-form-demo { max-width: 48rem; }
.ds-footer { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-8); align-items: center; padding: var(--space-8) clamp(var(--space-6), 6vw, var(--space-16)); border-top: 1px solid var(--color-border-default); background: var(--color-surface-default); }
.ds-footer span { color: var(--color-info); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .08em; }
.ds-footer p { margin: 0; }
.ds-footer a { color: var(--color-text-secondary); font-size: var(--font-size-sm); }

@media (max-width: 64rem) {
  .ds-shell { grid-template-columns: 1fr; }
  .ds-index { position: relative; z-index: 10; height: auto; display: block; padding: var(--space-4); border-right: 0; border-bottom: 1px solid var(--color-border-default); }
  .ds-index::after, .ds-index-note { display: none; }
  .ds-index nav { display: flex; margin-top: var(--space-4); overflow-x: auto; }
  .ds-index nav a { flex: 0 0 auto; }
  .ds-masthead { min-height: 26rem; }
  .ds-color-grid { grid-template-columns: repeat(3, 1fr); }
  .ds-swatch:nth-child(3) { border-right: 0; }
  .ds-swatch { border-bottom: 1px solid var(--color-border-default); }
  .ds-swatch:nth-child(n+4) { border-bottom: 0; }
  .jjaim-palette { grid-template-columns: repeat(3, 1fr); }
  .jjaim-chip { border-bottom: 1px solid var(--color-border-default); }
  .jjaim-chip:nth-child(3) { border-right: 0; }
  .jjaim-chip:nth-child(n+4) { border-bottom: 0; }
  .jjaim-applications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jjaim-dark-card { grid-column: 1 / -1; min-height: 20rem; }
  .jjaim-option-grid { grid-template-columns: 1fr; }
  .jjaim-option-card { display: grid; grid-template-columns: 1fr 1fr; }
  .jjaim-option-info { border-top: 0; border-left: var(--space-1) solid var(--preview-primary); }
  .jjaim-theme-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jjaim-icon-lab { grid-template-columns: 1fr; align-items: start; }
  .jjaim-approved-board { grid-template-columns: 1fr; }
  .jjaim-approved-board figcaption { border-top: 1px solid var(--jjaim-smoked-oak-700); border-left: 0; }
}

@media (max-width: 48rem) {
  .ds-masthead { min-height: 30rem; display: grid; align-content: end; }
  .ds-masthead h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .ds-masthead-meta { width: fit-content; }
  .ds-lead { font-size: var(--font-size-lg); }
  .ds-section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .ds-section-head, .ds-token-panels, .ds-feedback-grid, .ds-card-grid, .ds-font-stack { grid-template-columns: 1fr; }
  .ds-section-head { gap: var(--space-3); }
  .ds-color-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-swatch { min-height: 9rem; }
  .ds-swatch:nth-child(odd) { border-right: 1px solid var(--color-border-default); }
  .ds-swatch:nth-child(even) { border-right: 0; }
  .ds-swatch:nth-child(n+4) { border-bottom: 1px solid var(--color-border-default); }
  .ds-swatch:nth-child(n+5) { border-bottom: 0; }
  .ds-type-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .ds-weight-list { grid-template-columns: repeat(2, 1fr); }
  .ds-weight-list span:nth-child(2) { border-right: 0; }
  .ds-weight-list span:nth-child(-n+2) { border-bottom: 1px solid var(--color-border-subtle); }
  .ds-type-row > span { display: none; }
  .ds-type-display p { font-size: var(--font-size-2xl); }
  .ds-component-stage { padding: var(--space-5); }
  .ds-card-data { grid-template-columns: 1fr 1fr; }
  .ds-footer { grid-template-columns: 1fr auto; }
  .ds-footer p { display: none; }
  .jjaim-hero-preview { min-height: 32rem; padding: var(--space-6); }
  .jjaim-hero-copy h3 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .jjaim-hero-actions { align-items: flex-start; flex-direction: column; }
  .jjaim-joint { width: 80%; }
  .jjaim-palette, .jjaim-applications { grid-template-columns: 1fr; }
  .jjaim-chip { min-height: 7rem; border-right: 0; border-bottom: 1px solid var(--color-border-default); }
  .jjaim-chip:nth-child(n+4) { border-bottom: 1px solid var(--color-border-default); }
  .jjaim-chip:last-child { border-bottom: 0; }
  .jjaim-dark-card { grid-column: auto; }
  .jjaim-alternatives > header { grid-template-columns: 1fr; align-items: start; }
  .jjaim-alternatives > header p { grid-column: auto; }
  .jjaim-option-card { display: block; }
  .jjaim-option-info { border-top: var(--space-1) solid var(--preview-primary); border-left: 0; }
  .jjaim-option-visual { min-height: 16rem; }
  .jjaim-theme-option { min-height: 4rem; }
  .jjaim-theme-option i { width: 1.75rem; height: 1.75rem; }
  .jjaim-icon-switcher { grid-template-columns: 1fr; }
  .jjaim-icon-switcher button { min-height: 4.5rem; }
  .jjaim-approved-lockup { grid-template-columns: 1fr; padding: var(--space-5); }
  .jjaim-approved-mark { justify-content: flex-start; padding-top: var(--space-5); border-top: 1px solid var(--color-border-default); border-left: 0; }
}

/* Jjaim Design System 2.0 — approved smoked-oak identity. */
.jds-system {
  color-scheme: light;
  color: var(--jjaim-text-primary);
  background: var(--jjaim-surface-canvas);
  transition: color var(--motion-normal), background-color var(--motion-normal);
}
html:has(.jds-system),
body:has(.jds-system),
.public-view:has(.jds-system),
.jds-system .ds-catalogue { background: var(--jjaim-surface-canvas); }
.jds-system[data-theme="dark"] {
  color-scheme: dark;
  --jjaim-surface-canvas: var(--jjaim-dark-canvas);
  --jjaim-surface-default: var(--jjaim-dark-surface);
  --jjaim-surface-subtle: var(--jjaim-dark-surface-subtle);
  --jjaim-surface-selected: var(--jjaim-dark-surface-selected);
  --jjaim-surface-inverse: var(--jjaim-dark-text-primary);
  --jjaim-text-primary: var(--jjaim-dark-text-primary);
  --jjaim-text-secondary: var(--jjaim-dark-text-secondary);
  --jjaim-border-subtle: var(--jjaim-dark-border-subtle);
  --jjaim-border-strong: var(--jjaim-dark-border-strong);
  --jjaim-action-primary: var(--jjaim-dark-action);
  --jjaim-action-primary-hover: var(--jjaim-dark-action-hover);
  --jjaim-action-on-primary: var(--jjaim-ink);
  --color-surface-canvas: var(--jjaim-dark-canvas);
  --color-surface-default: var(--jjaim-dark-surface);
  --color-surface-subtle: var(--jjaim-dark-surface-subtle);
  --color-surface-hover: var(--jjaim-dark-surface-subtle);
  --color-surface-selected: var(--jjaim-dark-surface-selected);
  --color-text-primary: var(--jjaim-dark-text-primary);
  --color-text-secondary: var(--jjaim-dark-text-secondary);
  --color-text-disabled: var(--jjaim-dark-border-strong);
  --color-border-subtle: var(--jjaim-dark-border-subtle);
  --color-border-default: var(--jjaim-dark-border-strong);
  --color-border-strong: var(--jjaim-dark-text-secondary);
  --color-action-primary: var(--jjaim-dark-action);
  --color-action-primary-hover: var(--jjaim-dark-action-hover);
  --color-action-focus: var(--jjaim-brass);
  --color-info: var(--jjaim-dark-info);
  --color-info-subtle: var(--jjaim-dark-info-subtle);
  --color-info-border: var(--jjaim-dark-info-border);
  --color-success: var(--jjaim-dark-success);
  --color-success-subtle: var(--jjaim-dark-success-subtle);
  --color-success-border: var(--jjaim-dark-success-border);
  --color-warning: var(--jjaim-dark-warning);
  --color-warning-subtle: var(--jjaim-dark-warning-subtle);
  --color-warning-border: var(--jjaim-dark-warning-border);
  --color-danger: var(--jjaim-dark-danger);
  --color-danger-subtle: var(--jjaim-dark-danger-subtle);
  --color-danger-border: var(--jjaim-dark-danger-border);
  --focus-ring: 0 0 0 3px var(--jjaim-dark-focus-ring);
}
html:has(.jds-system[data-theme="dark"]),
body:has(.jds-system[data-theme="dark"]),
.public-view:has(.jds-system[data-theme="dark"]) { background: var(--jjaim-dark-canvas); }
.jds-system .ds-index { border-color: var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-system .ds-index::after { width: var(--space-1); background: var(--jjaim-brass); opacity: .8; }
.jds-system .ds-index-brand { gap: var(--space-4); color: var(--jjaim-text-primary); }
.jds-system .ds-index-brand .jjaim-brand-icon { width: 2.75rem; height: 2.75rem; }
.jds-system .ds-index-brand strong { font-size: var(--font-size-xl); letter-spacing: -.04em; }
.jds-system .ds-index-brand small { color: var(--jjaim-text-secondary); letter-spacing: .04em; }
.jds-theme-switcher { display: grid; gap: var(--space-2); margin-top: var(--space-8); }
.jds-theme-switcher > span { color: var(--jjaim-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); letter-spacing: .08em; }
.jds-theme-switcher > div { display: grid; grid-template-columns: repeat(3, 1fr); padding: var(--space-1); border: 1px solid var(--jjaim-border-subtle); border-radius: var(--radius-md); background: var(--jjaim-surface-subtle); }
.jds-theme-switcher button { min-height: 2rem; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--jjaim-text-secondary); font: inherit; font-size: var(--font-size-xs); cursor: pointer; }
.jds-theme-switcher button[aria-pressed="true"] { background: var(--jjaim-surface-default); color: var(--jjaim-text-primary); box-shadow: var(--shadow-sm); font-weight: var(--font-weight-semibold); }
.jds-system .ds-index nav { margin-top: var(--space-10); }
.jds-system .ds-index nav a { border-radius: var(--radius-sm); color: var(--jjaim-text-secondary); }
.jds-system .ds-index nav a:hover { background: var(--jjaim-surface-subtle); color: var(--jjaim-text-primary); }
.jds-system .ds-index nav span { color: var(--jjaim-brand-700); }
.ds-index-rule { margin-top: auto; padding-top: var(--space-8); border-top: 1px solid var(--jjaim-border-subtle); }
.ds-index-rule i { width: var(--space-2); height: var(--space-6); display: block; margin-bottom: var(--space-4); background: var(--jjaim-brass); transform: skewY(-28deg); }
.ds-index-rule p { margin: 0; color: var(--jjaim-text-secondary); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); line-height: var(--line-height-normal); }

.jds-hero { position: relative; min-height: 42rem; display: grid; grid-template-columns: minmax(18rem, .72fr) 1.2fr; grid-template-rows: 1fr auto; overflow: hidden; border-bottom: 1px solid var(--jjaim-border-subtle); background: var(--jjaim-surface-default); color: var(--jjaim-text-primary); }
.jds-hero-mark { display: grid; place-items: center; padding: clamp(var(--space-8), 7vw, var(--space-16)); border-right: 1px solid var(--jjaim-border-subtle); }
.jds-hero-mark .jjaim-brand-icon { width: min(22rem, 70%); height: auto; }
.jds-hero-mark .jjaim-logo-upper { fill: var(--jjaim-brand-700); }
.jds-hero-mark .jjaim-logo-lower { fill: var(--jjaim-ink); }
.jds-hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(var(--space-8), 7vw, var(--space-16)); }
.jds-system .ds-eyebrow { color: var(--jjaim-brand-700); }
.jds-hero h1 { max-width: 52rem; margin: 0; font-size: clamp(3rem, 6vw, 6.5rem); font-weight: var(--font-weight-bold); line-height: .98; letter-spacing: -.065em; }
.jds-hero-copy > p:last-child { max-width: 38rem; margin: var(--space-8) 0 0; color: var(--jjaim-text-secondary); font-size: var(--font-size-lg); }
.jds-hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--jjaim-border-subtle); }
.jds-hero-meta div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-right: 1px solid var(--jjaim-border-subtle); }
.jds-hero-meta div:last-child { border-right: 0; }
.jds-hero-meta dt { color: var(--jjaim-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jds-hero-meta dd { margin: 0; color: var(--jjaim-text-primary); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.jds-hero-joint { position: absolute; top: 0; left: calc(36% - var(--space-2)); width: var(--space-4); height: 5.5rem; background: var(--jjaim-brass); transform: skewY(-28deg); }

.jds-system .ds-section { border-color: var(--jjaim-border-subtle); background: var(--jjaim-surface-canvas); }
.jds-system .ds-section:nth-of-type(even) { background: var(--jjaim-surface-canvas); }
.jds-system .ds-section-head { grid-template-columns: minmax(16rem, .72fr) 1fr; }
.jds-system .ds-section-head span,
.jds-system .ds-card-label { color: var(--jjaim-brand-700); }
.jds-system .ds-section-head h2 { color: var(--jjaim-text-primary); font-size: clamp(2rem, 3.3vw, 3.5rem); line-height: 1.08; letter-spacing: -.05em; }
.jds-system .ds-section-head > p { color: var(--jjaim-text-secondary); font-size: var(--font-size-lg); }

.jds-principles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-principles article { position: relative; min-height: 14rem; padding: var(--space-6); border-right: 1px solid var(--jjaim-border-subtle); }
.jds-principles article:last-child { border-right: 0; }
.jds-principles article::before { width: var(--space-2); height: var(--space-8); display: block; margin-bottom: var(--space-8); background: var(--jjaim-brand-700); content: ""; transform: skewY(-28deg); }
.jds-principles article:last-child::before { background: var(--jjaim-brass); }
.jds-principles span { color: var(--jjaim-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); letter-spacing: .08em; }
.jds-principles strong { display: block; margin-top: var(--space-2); font-size: var(--font-size-xl); }
.jds-principles p { margin: var(--space-6) 0 0; color: var(--jjaim-text-secondary); font-size: var(--font-size-sm); }

.jds-logo-stage { display: grid; grid-template-columns: 1.3fr .7fr; margin-top: var(--space-8); border: 1px solid var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-lockup-primary { min-height: 25rem; display: flex; align-items: center; justify-content: center; gap: clamp(var(--space-5), 4vw, var(--space-10)); padding: var(--space-10); border-right: 1px solid var(--jjaim-border-subtle); }
.jds-lockup-primary .jjaim-brand-icon { width: clamp(7rem, 15vw, 12rem); height: auto; }
.jds-lockup-primary > div { display: grid; gap: var(--space-3); }
.jds-lockup-primary strong { font-size: clamp(3.5rem, 8vw, 7.5rem); line-height: .9; letter-spacing: -.08em; }
.jds-lockup-primary span { color: var(--jjaim-text-secondary); font-size: var(--font-size-sm); }
.jds-logo-variants { display: grid; grid-template-rows: repeat(3, 1fr); }
.jds-logo-variants article { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); border-bottom: 1px solid var(--jjaim-border-subtle); }
.jds-logo-variants article:last-child { border-bottom: 0; }
.jds-logo-variants .jjaim-brand-icon { width: 4rem; height: 4rem; }
.jds-logo-variants span { font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jds-logo-variants .is-cream { background: var(--jjaim-white); }
.jds-logo-variants .is-oak { background: var(--jjaim-brand-700); color: var(--jjaim-text-inverse); }
.jds-logo-variants .is-ink { background: var(--jjaim-ink); color: var(--jjaim-text-inverse); }
.jds-logo-variants .is-reverse .jjaim-logo-upper { fill: var(--jjaim-white); }
.jds-logo-variants .is-oak .jjaim-logo-lower { fill: var(--jjaim-ink); }
.jds-logo-variants .is-ink .jjaim-logo-lower { fill: var(--jjaim-brand-700); }

.jds-logo-rules { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--space-4); border: 1px solid var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-logo-rules article { min-height: 13rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); padding: var(--space-5); border-right: 1px solid var(--jjaim-border-subtle); }
.jds-logo-rules article:last-child { border-right: 0; }
.jds-logo-rules strong { font-size: var(--font-size-sm); }
.jds-logo-rules p { margin: var(--space-1) 0 0; color: var(--jjaim-text-secondary); font-size: var(--font-size-xs); }
.jds-clearspace { width: 7rem; height: 7rem; display: grid; place-items: center; border: 1px dashed var(--jjaim-brand-700); background: var(--jjaim-surface-default); }
.jds-clearspace .jjaim-brand-icon { width: 3.5rem; height: 3.5rem; }
.jds-clearspace span { position: absolute; margin: -6.25rem 0 0 -6.25rem; color: var(--jjaim-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jds-minimum { min-height: 7rem; display: flex; align-items: flex-end; gap: var(--space-6); }
.jds-minimum .size-16 { width: 1rem; height: 1rem; }
.jds-minimum .size-24 { width: 1.5rem; height: 1.5rem; }
.jds-minimum .size-32 { width: 2rem; height: 2rem; }
.jds-joint-rule i { width: 2.25rem; height: 5rem; display: block; background: var(--jjaim-brass); transform: skewY(-28deg); }
.jds-master-reference { margin-top: var(--space-4); border: 1px solid var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-master-reference summary { padding: var(--space-4) var(--space-5); color: var(--jjaim-text-primary); font-weight: var(--font-weight-semibold); cursor: pointer; }
.jds-master-reference img { width: 100%; height: auto; display: block; border-top: 1px solid var(--jjaim-border-subtle); }

.jds-color-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--jjaim-border-subtle); }
.jds-color-grid article { min-height: 15rem; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1); padding: var(--space-5); border-right: 1px solid var(--jjaim-border-subtle); }
.jds-color-grid article:last-child { border-right: 0; }
.jds-color-grid span { font-weight: var(--font-weight-semibold); }
.jds-color-grid strong,
.jds-color-grid code { font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jds-color-grid p { margin: var(--space-3) 0 0; font-size: var(--font-size-xs); opacity: .75; }
.jds-color-white { background: var(--jjaim-white); color: var(--jjaim-ink); }
.jds-color-oak { background: var(--jjaim-brand-700); color: var(--jjaim-white); }
.jds-color-ink { background: var(--jjaim-ink); color: var(--jjaim-white); }
.jds-color-cream { background: var(--jjaim-paper); color: var(--jjaim-ink); }
.jds-color-mist { background: var(--jjaim-neutral-50); color: var(--jjaim-ink); }
.jds-color-brass { background: var(--jjaim-brass); color: var(--jjaim-ink); }
.jds-foundation-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-4); margin-top: var(--space-4); }
.jds-system .ds-specimen-panel { border-color: var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-ratio-bar { height: 3.5rem; display: grid; grid-template-columns: 60fr 25fr 12fr 3fr; overflow: hidden; border: 1px solid var(--jjaim-border-subtle); }
.jds-ratio-bar span:nth-child(1) { background: var(--jjaim-white); }
.jds-ratio-bar span:nth-child(2) { background: var(--jjaim-ink); }
.jds-ratio-bar span:nth-child(3) { background: var(--jjaim-brand-700); }
.jds-ratio-bar span:nth-child(4) { background: var(--jjaim-brass); }
.jds-ratio-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.jds-ratio-list li { display: grid; color: var(--jjaim-text-secondary); font-size: var(--font-size-xs); }
.jds-ratio-list b { color: var(--jjaim-text-primary); font-family: var(--font-family-data); }
.jds-contrast-list { display: grid; gap: var(--space-2); }
.jds-contrast-list span { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--jjaim-border-subtle); }
.jds-contrast-list i { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--jjaim-ink); color: var(--jjaim-white); font-family: var(--font-family-data); font-size: var(--font-size-xs); font-style: normal; }
.jds-contrast-list i.limit { background: var(--jjaim-brass); color: var(--jjaim-ink); }
.jds-contrast-list small { color: var(--jjaim-text-secondary); font-size: var(--font-size-xs); text-align: right; }
.jds-token-table { margin-top: var(--space-4); }
.jds-system .data-table { background: var(--jjaim-surface-default); }
.jds-system .data-table th { color: var(--jjaim-text-secondary); }
.jds-system .data-table code { color: var(--jjaim-brand-700); font-size: var(--font-size-xs); }
.jds-system .ds-space { background: var(--jjaim-brand-700); }
.jds-system .ds-radius-list span { border-color: var(--jjaim-border-strong); }
.jds-panel-note { margin: var(--space-5) 0 0; color: var(--jjaim-text-secondary); font-size: var(--font-size-xs); }

.jds-system .ds-font-stack { grid-template-columns: 1fr 1fr 1fr; }
.jds-system .ds-font-stack div { border-color: var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-system .ds-font-stack span { color: var(--jjaim-brand-700); }
.jds-system .ds-font-stack code,
.jds-system .ds-type-row code,
.jds-system .ds-type-row > span { color: var(--jjaim-text-secondary); }
.jds-system .ds-type-sheet { border-color: var(--jjaim-border-strong); }
.jds-system .ds-type-row { border-color: var(--jjaim-border-subtle); }
.jds-system .ds-type-display p { color: var(--jjaim-brand-800); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.055em; }

.jds-component-stage { background-color: var(--jjaim-surface-default); background-image: linear-gradient(var(--jjaim-border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--jjaim-border-subtle) 1px, transparent 1px); }
.jds-component-stage > div { display: grid; gap: var(--space-4); }
.jds-stage-label { color: var(--jjaim-text-secondary); font-family: var(--font-family-data); font-size: var(--font-size-xs); letter-spacing: .08em; }
.jds-system .btn.primary { border-color: var(--jjaim-action-primary); background: var(--jjaim-action-primary); color: var(--jjaim-action-on-primary); }
.jds-system .btn.primary:hover { border-color: var(--jjaim-action-primary-hover); background: var(--jjaim-action-primary-hover); }
.jds-system .btn:not(.primary, .danger, .ghost) { border-color: var(--jjaim-border-subtle); background: var(--jjaim-surface-default); color: var(--jjaim-text-primary); }
.jds-system :where(a, button, input, select, textarea, summary):focus-visible { outline-color: var(--jjaim-action-focus); box-shadow: 0 0 0 var(--space-1) var(--jjaim-brass-soft); }
.jds-component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.jds-project-card { min-height: 28rem; display: flex; flex-direction: column; padding: var(--space-6); border: 1px solid var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-project-card > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--space-4); border-bottom: 1px solid var(--jjaim-border-subtle); color: var(--jjaim-text-secondary); font-size: var(--font-size-xs); }
.jds-project-card > p { margin: var(--space-8) 0 var(--space-2); color: var(--jjaim-brand-700); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jds-project-card h3 { margin: 0; font-size: var(--font-size-2xl); }
.jds-project-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: auto 0 var(--space-4); }
.jds-project-card dl div { padding: var(--space-3); border: 1px solid var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-project-card dt { color: var(--jjaim-text-secondary); font-size: var(--font-size-xs); }
.jds-project-card dd { margin: var(--space-1) 0 0; font-weight: var(--font-weight-bold); }
.jds-project-card .jjaim-progress { background: var(--jjaim-surface-selected); }
.jds-project-card .jjaim-progress span { background: var(--jjaim-brand-700); }
.jds-project-card > .btn { align-self: flex-start; margin-top: var(--space-5); }
.jds-system .jjaim-mini-brand { color: var(--jjaim-text-primary); }
.jds-system .jjaim-mini-brand .jjaim-brand-icon { width: 1.75rem; height: 1.75rem; }
.jds-form-demo { max-width: none; min-height: 28rem; display: flex; flex-direction: column; border-color: var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-form-heading span { color: var(--jjaim-brand-700); font-family: var(--font-family-data); font-size: var(--font-size-xs); }
.jds-form-heading h3 { margin: var(--space-1) 0 var(--space-6); font-size: var(--font-size-2xl); }
.jds-system .field input,
.jds-system .field select { border-color: var(--jjaim-border-subtle); background: var(--jjaim-surface-default); }
.jds-selection { position: relative; display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); padding: var(--space-4); border: 1px solid var(--jjaim-brand-700); background: var(--jjaim-surface-default); cursor: pointer; }
.jds-selection input { position: absolute; opacity: 0; }
.jds-selection span { display: grid; }
.jds-selection small { color: var(--jjaim-text-secondary); }
.jds-selection i { width: .75rem; height: 2rem; display: block; margin-left: auto; background: var(--jjaim-brass); transform: skewY(-28deg); }
.jds-form-demo .actions { margin-top: auto; }

.jds-system .ds-alert-list .alert,
.jds-system .ds-card-grid .card,
.jds-system .ds-empty-demo { border-color: var(--jjaim-border-subtle); }
.jds-system .ds-card-grid .card,
.jds-system .ds-empty-demo { background: var(--jjaim-surface-default); }
.jds-system .ds-footer { border-color: var(--jjaim-border-subtle); background: var(--jjaim-ink); color: var(--jjaim-white); }
.jds-system .ds-footer span { color: var(--jjaim-brass); }
.jds-system .ds-footer a { color: var(--jjaim-neutral-200); }

.jds-system[data-theme="dark"] .ds-section-head span,
.jds-system[data-theme="dark"] .ds-card-label,
.jds-system[data-theme="dark"] .jds-project-card > p,
.jds-system[data-theme="dark"] .jds-form-heading span,
.jds-system[data-theme="dark"] .data-table code { color: var(--jjaim-dark-logo-upper); }
.jds-system[data-theme="dark"] :where(.ds-index-brand, .jds-hero-mark, .jds-lockup-primary, .jds-clearspace, .jds-minimum, .jjaim-mini-brand) .jjaim-logo-upper { fill: var(--jjaim-dark-logo-upper); }
.jds-system[data-theme="dark"] :where(.ds-index-brand, .jds-hero-mark, .jds-lockup-primary, .jds-clearspace, .jds-minimum, .jjaim-mini-brand) .jjaim-logo-lower { fill: var(--jjaim-dark-text-primary); }
.jds-system[data-theme="dark"] .ds-footer { background: var(--jjaim-dark-surface-subtle); }

@media (max-width: 64rem) {
  .jds-theme-switcher { width: min(22rem, 100%); }
  .jds-hero { min-height: 36rem; grid-template-columns: .65fr 1fr; }
  .jds-hero h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
  .jds-logo-stage { grid-template-columns: 1fr; }
  .jds-lockup-primary { border-right: 0; border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-logo-variants { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .jds-logo-variants article { border-right: 1px solid var(--jjaim-border-subtle); border-bottom: 0; }
  .jds-logo-variants article:last-child { border-right: 0; }
  .jds-color-grid { grid-template-columns: repeat(3, 1fr); }
  .jds-color-grid article { border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-color-grid article:nth-child(3) { border-right: 0; }
  .jds-color-grid article:nth-child(n+4) { border-bottom: 0; }
  .jds-system .ds-font-stack { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .jds-system .ds-index nav { margin-top: var(--space-4); }
  .jds-hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .jds-hero-mark { min-height: 18rem; border-right: 0; border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-hero-mark .jjaim-brand-icon { width: 10rem; }
  .jds-hero h1 { font-size: clamp(2.7rem, 13vw, 4.25rem); }
  .jds-hero-meta { grid-template-columns: 1fr; }
  .jds-hero-meta div { border-right: 0; border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-hero-meta div:last-child { border-bottom: 0; }
  .jds-hero-joint { left: auto; right: var(--space-8); }
  .jds-system .ds-section-head { grid-template-columns: 1fr; }
  .jds-principles,
  .jds-logo-rules,
  .jds-foundation-grid,
  .jds-component-grid { grid-template-columns: 1fr; }
  .jds-principles article,
  .jds-logo-rules article { border-right: 0; border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-principles article:last-child,
  .jds-logo-rules article:last-child { border-bottom: 0; }
  .jds-lockup-primary { min-height: 19rem; flex-direction: column; text-align: center; }
  .jds-lockup-primary strong { font-size: 4rem; }
  .jds-logo-variants { grid-template-columns: 1fr; }
  .jds-logo-variants article { border-right: 0; border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-color-grid { grid-template-columns: 1fr; }
  .jds-color-grid article { min-height: 10rem; border-right: 0; border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-color-grid article:nth-child(3),
  .jds-color-grid article:nth-child(n+4) { border-bottom: 1px solid var(--jjaim-border-subtle); }
  .jds-color-grid article:last-child { border-bottom: 0; }
  .jds-ratio-list { grid-template-columns: repeat(2, 1fr); }
  .jds-contrast-list span { grid-template-columns: 2.5rem 1fr; }
  .jds-contrast-list small { grid-column: 2; text-align: left; }
  .jds-project-card dl { grid-template-columns: 1fr; }
}

/* ===== project_files.html ===== */
.project-file-upload { margin-bottom: var(--space-8); }
.project-file-category-field { margin: var(--space-5) 0 var(--space-4); }
.project-file-upload-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.project-file-list-section { margin-top: var(--space-8); }
.project-file-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-4); }
.project-file-list-head h2 { margin: 0; }
.project-file-filter { display: flex; width: min(100%, 46rem); align-items: center; gap: var(--space-2); padding: var(--space-3); }
.project-file-filter input { min-width: 12rem; flex: 1 1 auto; }
.project-file-filter select { width: auto; min-width: 7.5rem; }
.project-file-table td:first-child { max-width: 24rem; overflow-wrap: anywhere; }
.project-file-table td:first-child small { display: block; margin-top: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-xs); }

@media (max-width: 48rem) {
  .project-file-upload-actions,
  .project-file-list-head { align-items: stretch; flex-direction: column; }
  .project-file-upload-actions .btn { width: 100%; }
  .project-file-filter { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .project-file-filter input { grid-column: 1 / -1; min-width: 0; }
  .project-file-filter select { width: 100%; min-width: 0; }
  .project-file-filter .btn { grid-column: 1 / -1; }
}

/* ===== category settings: project_edit.html ===== */
.category-settings-summary {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
}
.category-settings-summary::after {
  margin-left: auto;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}
.category-settings-summary::after { content: "설정 열기"; }
.category-settings[open] .category-settings-summary::after { content: "설정 접기"; }
.category-settings-summary > span:first-child { display: grid; gap: var(--space-1); }
.category-settings-summary small {
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
}
.category-settings-body { padding: 0 var(--space-5) var(--space-5); border-top: 1px solid var(--color-border-subtle); }
.category-settings { padding: 0; }
.category-settings-list { max-height: 25rem; margin-top: var(--space-3); overflow: auto; }
.category-settings-list .cat-toggle-table { margin-top: 0; }
.category-workbench { margin: var(--space-5) 0; padding: var(--space-4); }
.category-workbench-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.category-chip-list { display: flex; gap: var(--space-2); margin-top: var(--space-3); overflow-x: auto; padding-bottom: var(--space-1); }
.category-chip {
  min-height: 2.25rem;
  flex: 0 0 auto;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-pill);
  background: var(--color-surface-default);
  color: var(--color-text-secondary);
  font: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}
.category-chip:hover { border-color: var(--color-border-strong); color: var(--color-text-primary); }
.category-chip.active { border-color: var(--color-action-focus); background: var(--color-surface-selected); color: var(--color-text-primary); }
.slide-block[hidden],
.cat-toggle-table tr[hidden] { display: none; }

@media (max-width: 40rem) {
  .category-settings-summary { align-items: flex-start; flex-wrap: wrap; padding: var(--space-4); }
  .category-settings-summary::after { width: 100%; margin-left: 0; }
  .category-settings-body { padding: 0 var(--space-4) var(--space-4); }
  .category-settings-list { max-height: 22rem; }
}

/* ===== estimates.html ===== */
.est-list { display: grid; gap: 24px; margin-top: 20px; }
  .est-card {
    background: var(--color-surface-default); border: 1px solid var(--color-border-subtle); border-radius: 8px;
    padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  .est-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    padding-bottom: 12px; border-bottom: 1px solid var(--color-border-subtle); margin-bottom: 16px;
  }
  .est-label {
    font-size: 15px; font-weight: 600; padding: 4px 10px;
    background: var(--color-info-subtle); color: var(--color-info); border-radius: 4px;
  }
  .est-label.empty { background: var(--color-surface-subtle); color: var(--color-text-disabled); font-weight: 400; }
  .est-meta { font-size: 13px; color: var(--color-text-secondary); }
  .est-actions { margin-left: auto; display: flex; gap: 8px; }
  .est-pages { display: grid; gap: 12px; }
  .est-page {
    text-align: center; background: var(--color-surface-canvas); border-radius: 4px; padding: 8px;
  }
  .est-page img {
    max-width: 100%; height: auto; display: block; margin: 0 auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  .est-page-num {
    font-size: 12px; color: var(--color-text-disabled); margin-top: 6px;
  }
  .est-empty {
    text-align: center; padding: 60px 20px; color: var(--color-text-disabled);
    background: var(--color-surface-canvas); border-radius: 8px; border: 2px dashed var(--color-border-default);
  }
  .upload-box {
    background: var(--color-surface-subtle); border: 1px solid var(--color-border-subtle); border-radius: 8px;
    padding: 20px; margin-bottom: 24px;
  }
  .upload-box .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .upload-box input[type=text] { flex: 1; min-width: 200px; padding: 8px; border: 1px solid var(--color-border-default); border-radius: 4px; }
  .upload-box input[type=file] { flex: 2; min-width: 240px; }
  .upload-progress { margin-top: 10px; font-size: 13px; color: var(--color-success); display: none; }
  .estimate-upload-dropzone { min-height: 10rem; margin-top: var(--space-3); }
  .est-label-edit {
    padding: 3px 8px; border: 1px solid var(--color-border-default); border-radius: 3px;
    font-size: 14px; width: 180px;
  }

/* ===== contract.html ===== */
.sign-pad{border:1px solid var(--color-text-disabled);border-radius:4px;background:var(--color-surface-default);touch-action:none;
    display:block;width:260px;height:80px;max-width:100%;vertical-align:top;}
  .sign-pad-wrap{display:block;margin-top:4px;}
  .sig-cap{font-size:13px;color:var(--color-text-secondary);}
  .sig-line .sign-clear{margin-top:5px;}
  @media print{ .no-print{display:none!important;} .sign-pad{border:none;} }

/* ===== spec_preview.html ===== */
.sp-page{margin:0 0 26px;}
  .sp-page h2{font-size:15px;border-bottom:2px solid var(--color-text-primary);padding-bottom:6px;margin:0 0 12px;}
  .sp-note.panel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-3);align-items:start;margin:0 0 var(--space-4);padding:var(--space-4);background:var(--color-surface-subtle);box-shadow:none;}
  .sp-note-label{color:var(--color-brand-emphasis);font-family:var(--font-family-data);font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);letter-spacing:.08em;}
  .sp-note-text{min-width:0;margin:0;color:var(--color-text-primary);font-size:var(--font-size-sm);line-height:var(--line-height-normal);white-space:pre-wrap;overflow-wrap:anywhere;}
  .sp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;}
  .sp-card{border:1px solid var(--color-border-subtle);border-radius:8px;overflow:hidden;background:var(--color-surface-default);}
  .sp-card .sp-img{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--color-surface-subtle);display:block;}
  .sp-card .sp-noimg{width:100%;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;
    color:var(--color-text-disabled);background:var(--color-surface-subtle);font-size:13px;}
  .sp-card .sp-info{padding:8px 10px;}
  .sp-pos{font-weight:700;font-size:13px;color:var(--color-info);}
  .sp-name{font-size:13px;margin-top:2px;}
  .sp-brand{font-size:12px;color:var(--color-text-secondary);}
  .sp-spec{font-size:12px;color:var(--color-text-secondary);white-space:pre-line;margin-top:2px;}
  .sp-empty{color:var(--color-text-secondary);padding:48px 20px;text-align:center;line-height:1.6;}
  @media (max-width:40rem){.sp-note.panel{grid-template-columns:1fr;gap:var(--space-1);}}
  @media print{ .no-print{display:none!important;} }

/* ===== schedule.html ===== */
.cal-cell.selected {
  z-index: 1;
  background: var(--color-surface-selected);
  box-shadow: inset 0 0 0 2px var(--color-action-focus);
}
.cal-cell.selected .cal-day { font-weight: var(--font-weight-bold); }
.tb-team,
.tb-confirm {
  flex: none;
  overflow: hidden;
  max-width: 5.5rem;
  padding: 1px var(--space-1);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  font-size: .5625rem;
  text-overflow: ellipsis;
}
.tb-team { background: var(--color-surface-subtle); }
.tb-confirm.confirmed { background: var(--color-success-subtle); color: var(--color-success); }
.tb-confirm.pending { background: var(--color-warning-subtle); color: var(--color-warning); }
body.modal-open { overflow: hidden; }
.schedule-modal-backdrop { padding: var(--space-4); }
.modal-content.schedule-modal {
  display: block;
  width: min(56rem, 100%);
  max-width: 56rem;
  padding: var(--space-6);
}
.schedule-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
}
.schedule-modal-head h2 { margin: 0; font-size: var(--font-size-xl); }
.schedule-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-3);
}
.schedule-range-fields .field { display: block; margin: 0; }
.schedule-range-fields .field-label { display: block; margin-bottom: var(--space-1); }
.schedule-mobile-help { display: none; }
.schedule-custom-add {
  grid-template-columns: 10rem 1fr;
  margin: var(--space-5) 0 var(--space-4);
}
.schedule-custom-add .cluster { flex-wrap: nowrap; }
.schedule-custom-add .input { min-width: 0; flex: 1; }
.schedule-task-fieldset,
.schedule-conflict-fieldset {
  min-width: 0;
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}
.schedule-task-fieldset legend,
.schedule-conflict-fieldset legend {
  padding: 0 var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}
.schedule-task-picker { display: grid; min-width: 0; gap: var(--space-2); }
.schedule-task-option > * { min-width: 0; }
.schedule-task-picker .empty-state { margin: 0; padding: var(--space-6); }
.schedule-task-option {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 8rem minmax(10rem, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
}
.schedule-task-option .input { min-height: 2.25rem; width: 100%; }
.schedule-task-check,
.schedule-confirm-check { display: flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-sm); }
.schedule-task-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-confirm-check { white-space: nowrap; }
.schedule-conflict-fieldset { display: grid; gap: var(--space-2); }
.schedule-conflict-fieldset > label { font-size: var(--font-size-sm); }
.schedule-review { margin-bottom: var(--space-4); }
.schedule-modal-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
.process-team-create { margin-bottom: var(--space-6); }
.process-management-nav { margin-bottom: var(--space-6); }
.task-name-label { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--color-text-primary); }
.cal-sidebar .task-color { flex-shrink: 0; border: 0; cursor: pointer; }
.cal-sidebar #catalog-add { margin-top: var(--space-2); }
.schedule-modal { overscroll-behavior: contain; }
.process-team-create h2,
.process-team-list h2 { font-size: var(--font-size-xl); }
.process-team-list { margin-top: var(--space-6); }
.process-team-list .table-scroll { margin-top: var(--space-4); overflow-x: auto; }
.process-team-list .input { min-width: 10rem; }
.process-team-actions { white-space: nowrap; }
.process-team-actions .inline-action-form { margin-left: var(--space-1); }
.sched-progress{margin:0 0 14px;padding:12px 16px;border:1px solid var(--color-border-subtle);border-radius:10px;background:var(--color-surface-canvas);}
  .sched-progress .sp-top{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:var(--color-text-secondary);}
  .sched-progress .sp-sub{color:var(--color-text-disabled);font-size:11px;}
  .sched-progress .sp-top b{font-size:20px;color:var(--color-info);}
  .sched-progress .sp-bar{position:relative;height:12px;border-radius:6px;background:var(--color-border-subtle);overflow:hidden;margin:8px 0 6px;}
  .sched-progress .sp-fill{height:100%;background:linear-gradient(90deg,var(--color-info),var(--color-info));border-radius:6px;transition:width .3s;}
  .sched-progress .sp-dates{display:flex;justify-content:space-between;font-size:12px;color:var(--color-text-secondary);gap:8px;}
  .sched-progress .sp-dates .today{color:var(--color-info);font-weight:700;}
  @media (max-width:560px){ .sched-progress .sp-dates{flex-direction:column;gap:2px;} }

@media (max-width: 48rem) {
  .tb-team,
  .tb-confirm { max-width: 100%; text-align: center; }
  .modal-content.schedule-modal { max-height: calc(100dvh - var(--space-4)); padding: var(--space-4); }
  .schedule-range-fields { grid-template-columns: 1fr 1fr; }
  .schedule-mobile-help { display: block; }
  .schedule-custom-add { display: block; }
  .schedule-custom-add .field-label { display: block; margin-bottom: var(--space-2); }
  .schedule-task-option { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-task-check span { white-space: normal; overflow-wrap: anywhere; }
  .schedule-task-check,
  .schedule-confirm-check { grid-column: 1 / -1; min-height: 2.5rem; }
  .schedule-modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: sticky; bottom: 0; padding-top: var(--space-3); background: var(--color-surface-default); }
  .schedule-modal-actions .btn { min-width: 0; white-space: normal; }
  .schedule-modal-actions #schedule-delete { grid-column: 1 / -1; grid-row: 2; }
  .process-team-actions { display: flex !important; flex-wrap: wrap; }
  .process-team-list .data-table-responsive td[data-label]::before { flex: 0 0 4rem; }
  .process-team-list .input { min-width: 0; }
}

@media (max-width: 24rem) {
  .process-team-list .data-table-responsive td { flex-wrap: wrap; justify-content: flex-start; }
  .process-team-list .data-table-responsive td[data-label]::before { flex-basis: 100%; }
  .process-team-list .data-table-responsive td > form:empty { display: none; }
  .process-team-list .input { flex-basis: 100%; }
  .schedule-task-option,
  .schedule-range-fields { grid-template-columns: 1fr; }
  .schedule-task-option > * { grid-column: 1; }
  .schedule-custom-add .cluster { align-items: stretch; flex-direction: column; }
}

/* ===== photos.html ===== */
  .photo-upload-dropzone { min-height: 10rem; margin-bottom: var(--space-4); }
  .queue-thumb.has-preview-error { display: grid; place-items: center; padding: var(--space-2); }
  .queue-preview-error { color: var(--color-danger); font-size: var(--font-size-xs); line-height: var(--line-height-tight); overflow-wrap: anywhere; }
/* 라이트박스 (사진 뷰어) */
  .lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,0.92);
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    -webkit-user-select:none;user-select:none;touch-action:pan-y;}
  .lightbox[hidden]{display:none;}
  .lb-stage{flex:1;display:flex;align-items:center;justify-content:center;
    width:100%;padding:20px;box-sizing:border-box;overflow:hidden;}
  .lb-stage img{max-width:100%;max-height:100%;object-fit:contain;
    border-radius:6px;box-shadow:0 8px 40px rgba(0,0,0,0.5);
    transition:opacity 0.15s;}
  .lb-close{position:absolute;top:14px;right:16px;
    background:rgba(255,255,255,0.1);border:none;color:var(--color-text-inverse);
    width:44px;height:44px;border-radius:50%;font-size:22px;
    cursor:pointer;display:flex;align-items:center;justify-content:center;
    transition:background 0.15s;z-index:10;}
  .lb-close:hover{background:rgba(255,255,255,0.25);}
  .lb-nav{position:absolute;top:50%;transform:translateY(-50%);
    background:rgba(255,255,255,0.1);border:none;color:var(--color-text-inverse);
    width:54px;height:54px;border-radius:50%;font-size:32px;line-height:1;
    cursor:pointer;display:flex;align-items:center;justify-content:center;
    transition:background 0.15s;z-index:10;font-weight:700;}
  .lb-nav:hover:not(:disabled){background:rgba(255,255,255,0.25);}
  .lb-nav:disabled{opacity:0.3;cursor:not-allowed;}
  .lb-prev{left:16px;}
  .lb-next{right:16px;}
  .lb-footer{position:absolute;bottom:0;left:0;right:0;
    padding:14px 20px;color:var(--color-text-inverse);font-size:13px;
    background:linear-gradient(180deg,transparent,rgba(0,0,0,0.7));
    display:flex;align-items:center;gap:16px;justify-content:center;
    flex-wrap:wrap;}
  #lb-counter{font-weight:700;font-size:14px;min-width:60px;}
  .lb-date{color:rgba(255,255,255,0.65);}
  .lb-action{background:rgba(255,255,255,0.15);color:var(--color-text-inverse);border:none;
    padding:6px 14px;border-radius:20px;font-size:12px;cursor:pointer;
    text-decoration:none;transition:background 0.15s;font-family:inherit;}
  .lb-action:hover{background:rgba(255,255,255,0.3);}
  #lb-delete{background:rgba(200,50,50,0.35);}
  #lb-delete:hover{background:rgba(200,50,50,0.6);}
  @media (max-width:640px){
    .lb-close{top:10px;right:10px;width:40px;height:40px;font-size:20px;}
    .lb-nav{width:44px;height:44px;font-size:26px;}
    .lb-prev{left:8px;}
    .lb-next{right:8px;}
    .lb-stage{padding:12px;}
    .lb-footer{font-size:12px;padding:12px;gap:10px;}
  }

  .cmt-wrap{max-width:760px;margin:28px auto 0;}
  .cmt-wrap h2{font-size:16px;border-bottom:2px solid var(--color-text-primary);padding-bottom:6px;margin:0 0 4px;}
  .cmt-list{display:flex;flex-direction:column;gap:10px;margin:14px 0;}
  .cmt{max-width:78%;padding:9px 12px;border-radius:12px;position:relative;}
  .cmt .cmt-meta{font-size:11px;color:var(--color-text-disabled);margin-bottom:3px;}
  .cmt .cmt-body{font-size:14px;white-space:pre-wrap;word-break:break-word;line-height:1.5;}
  .cmt.owner{align-self:flex-end;background:var(--color-info-subtle);border:1px solid var(--color-info-border);}
  .cmt.customer{align-self:flex-start;background:var(--color-surface-subtle);border:1px solid var(--color-border-subtle);}
  .cmt .cmt-del{position:absolute;top:3px;right:5px;border:none;background:none;color:var(--color-text-disabled);cursor:pointer;font-size:14px;line-height:1;}
  .cmt-empty{color:var(--color-text-disabled);text-align:center;padding:18px;}
  .cmt-form{display:flex;flex-direction:column;gap:8px;margin-top:12px;}
  .cmt-form textarea{width:100%;min-height:70px;padding:10px;border:1px solid var(--color-border-default);border-radius:8px;font-size:14px;box-sizing:border-box;}
  .cmt-form input[type=text]{max-width:200px;padding:8px 10px;border:1px solid var(--color-border-default);border-radius:8px;font-size:14px;}
  @media (max-width:640px){ .cmt{max-width:90%;} .cmt-form input[type=text]{max-width:none;} }

/* ===== lighting.html ===== */
.lt-svg-defs { position: absolute; }
.lt-tool-offset { margin-top: var(--space-1); }
.lt-zoom-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}
.lt-zoom-bar.is-hidden { display: none; }
.lt-zoom-pct { min-width: 2.75rem; color: var(--color-text-primary); font-weight: var(--font-weight-bold); text-align: center; }
.lt-zoom-fit { margin-left: var(--space-1); }
.lt-editor-heading { margin-top: var(--space-2); }
.lt-summary-empty, .lt-circuit-empty { padding: var(--space-3); color: var(--color-text-disabled); font-size: var(--font-size-xs); text-align: center; }
.lt-selection-summary { margin-bottom: var(--space-2); padding: var(--space-2); border-radius: var(--radius-sm); background: var(--color-success-subtle); color: var(--color-success); text-align: center; }
.lt-selection-tools { margin-top: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--color-border-subtle); }
.lt-control-label { margin-bottom: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); }
.lt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); }
.lt-actions-stack { display: flex; flex-direction: column; gap: var(--space-2); }
.lt-control-row { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
.lt-flex-1 { flex: 1; }
.lt-color-input { width: 2.5rem; height: 1.75rem; padding: 0; border: 1px solid var(--color-border-default); cursor: pointer; }
.lt-swatches { display: flex; gap: 3px; flex-wrap: wrap; }
.lt-color-sw { width: 1.375rem; height: 1.375rem; padding: 0; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--swatch-color); cursor: pointer; }
.lt-color-sw.active { border: 2px solid var(--color-text-primary); box-shadow: var(--focus-ring); }
.lt-step-btn { width: 2rem; padding: 0; }
.lt-count-input { width: 3.75rem !important; text-align: center; }
.lt-size-row { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
.lt-size-range { flex: 1; min-width: 0; }
.lt-size-number { width: 2.75rem !important; padding: 2px !important; border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); font-family: inherit; font-size: var(--font-size-xs); text-align: center; }
.lt-size-reset { flex: none; min-height: 1.75rem; padding: 0 var(--space-2); font-size: .625rem; }
.lt-gang-empty { color: var(--color-text-disabled); font-size: .6875rem; }
.lt-link-chip { display: inline-flex; align-items: center; margin: 2px 3px 2px 0; padding: 2px 6px; border-radius: var(--radius-pill); background: var(--color-info-subtle); color: var(--color-info); font-size: .6875rem; }
.lt-link-remove { padding: 0 0 0 var(--space-1); border: 0; background: none; color: var(--color-danger); cursor: pointer; }
.lt-switch-card { margin-bottom: var(--space-2); padding: var(--space-2); border-left: 4px solid var(--accent-color); border-radius: var(--radius-sm); background: var(--color-surface-subtle); }
.lt-switch-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); }
.lt-switch-badge { padding: 2px 6px; border-radius: var(--radius-pill); color: var(--color-text-inverse); font-size: .6875rem; font-weight: var(--font-weight-bold); }
.lt-sw-gang-label { flex: 1; padding: 3px 6px !important; font-size: var(--font-size-xs) !important; }
.lt-switch-links { margin-bottom: var(--space-1); }
.lt-sw-pick { font-size: .6875rem; }
.lt-sw-pick.active, .btn[data-gc].active { border-color: var(--color-info); background: var(--color-info); color: var(--color-text-inverse); }
.lt-gangs { max-height: 18.75rem; overflow-y: auto; }
.lt-fixture-preview { margin-bottom: var(--space-2); text-align: center; }
.lt-add-switch { margin: 6px 8px 8px; }
.lt-clipboard-help { color: var(--color-text-secondary); }
.lt-pick-banner { position: fixed; z-index: 1000; top: calc(var(--header-height) + var(--space-2)); left: 50%; max-width: calc(100vw - var(--space-8)); padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill); background: var(--color-warning); color: var(--color-text-inverse); box-shadow: var(--shadow-md); font-size: var(--font-size-md); font-weight: var(--font-weight-bold); text-align: center; cursor: pointer; transform: translateX(-50%); }
.lt-canvas-error { display: flex; }
.lt-paste-tool { border-color: var(--color-info-border); background: var(--color-info-subtle); }
.lt-selection-band { position: absolute; z-index: 20; border: 1.5px dashed var(--color-info); background: color-mix(in srgb, var(--color-info) 10%, transparent); pointer-events: none; }
/* 조명 배치 페이지 전용 */
  .lt-layout {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    gap: 14px;
    min-height: calc(100vh - 260px);
  }
  .lt-panel {
    background: var(--color-surface-default);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    display: flex; flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  .lt-panel h3 {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--fg-mute);
    font-weight: 700;
    letter-spacing: 0.3px;
  }
  .lt-panel h3 small { font-weight: 400; color: var(--color-text-disabled); }

  /* 팔레트 */
  .lt-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .lt-tool {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--color-surface-default); cursor: pointer; font-size: 11px;
    transition: all 0.15s; user-select: none;
  }
  .lt-tool:hover { border-color: var(--color-text-secondary); }
  .lt-tool.active {
    border-color: var(--color-info);
    background: var(--color-info-subtle);
    color: var(--color-info);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(25,118,210,0.15);
  }
  .lt-tool svg { width: 28px; height: 28px; }

  .lt-help {
    padding: 10px 12px; background: var(--color-surface-subtle); border-radius: 6px;
    font-size: 11px; color: var(--fg-mute); line-height: 1.5;
  }

  /* 도면 캔버스 */
  .lt-canvas-wrap {
    background: var(--color-surface-default);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 500px;
  }
  .lt-floors-tabs {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
    padding-bottom: 8px; border-bottom: 1px solid var(--line);
  }
  .lt-floor-tab {
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--color-surface-default); cursor: pointer; font-size: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit;
  }
  .lt-floor-tab.active { background: var(--fg); color: var(--color-text-inverse); border-color: var(--fg); }
  .lt-floor-tab .del { color: var(--color-danger); margin-left: 4px; font-weight: 700; }
  .lt-floor-tab.active .del { color: var(--color-danger-border); }
  .lt-floor-add { margin-left: auto; }

  /* 캔버스 뷰포트 (고정 크기 창, 내부 canvas 를 transform 으로 이동/확대) */
  .lt-canvas-scroll {
    flex: 1 1 auto;
    background: var(--color-surface-subtle);
    border-radius: 8px;
    min-height: 460px;
    max-height: calc(100vh - 260px);
    overflow: hidden;
    padding: 0;
    position: relative;
  }
  .lt-canvas-scroll.panning,
  .lt-canvas-scroll.panning * { cursor: grabbing !important; }

  .lt-canvas {
    position: absolute;
    top: 0; left: 0;
    background: var(--color-surface-subtle);
    border-radius: 8px;
    overflow: hidden;
    transform-origin: 0 0;
    /* JS 로 top/left 및 width/height 설정 (팬 = position, 줌 = size) */
  }
  .lt-canvas.placing { cursor: crosshair; }
  .lt-canvas.drop-hover { outline: 3px dashed var(--color-info); outline-offset: -3px; background: var(--color-info-subtle); }
  .lt-canvas img.lt-floor-img {
    display: block;
    width: 100%; height: 100%;
    object-fit: contain;
    user-select: none; -webkit-user-drag: none;
  }
  .lt-canvas-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 30px; color: var(--fg-mute);
    text-align: center; gap: 10px;
    height: 100%;
  }
  .lt-canvas-empty label.btn { cursor: pointer; }

  /* 조명 마커 - --lt-size 변수로 크기 조절 */
  .lt-canvas { --lt-size: 18px; }
  .lt-marker {
    position: absolute;
    width: var(--lt-size); height: var(--lt-size);
    transform: translate(-50%, -50%);
    cursor: move;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
    transition: transform 0.1s;
    user-select: none;
  }
  .lt-marker:hover { transform: translate(-50%, -50%) scale(1.2); z-index: 3; }
  .lt-marker.selected {
    transform: translate(-50%, -50%) scale(1.35);
    outline: 2px solid var(--color-plan-highlight);
    outline-offset: 2px;
    border-radius: 50%;
    z-index: 4;
  }
  .lt-marker svg { width: 100%; height: 100%; pointer-events: none; }
  .lt-marker-label {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(1px);
    background: rgba(0,0,0,0.75);
    color: var(--color-text-inverse);
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.3;
  }
  /* 연결선 (조명끼리 잇는 줄) */
  .lt-connections {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
  }
  .lt-conn-line {
    stroke-width: 2;
    fill: none;
    pointer-events: stroke;
    cursor: pointer;
    transition: stroke-width 0.1s, opacity 0.1s;
    opacity: 0.9;
  }
  .lt-conn-line:hover { stroke-width: 4; opacity: 1; }
  /* 연결 모드에서 첫 조명 선택 상태 */
  .lt-marker.connect-src {
    outline: 3px dashed var(--color-info);
    outline-offset: 3px;
    border-radius: 50%;
  }
  .lt-marker.connect-hover {
    outline: 3px solid var(--color-chart-revenue);
    outline-offset: 3px;
    border-radius: 50%;
  }
  .lt-canvas.connect-mode { cursor: crosshair; }
  .lt-canvas.multi-mode { cursor: cell; }

  /* 마그네틱 레일 */
  /* 라인 계열 본체 - CSS 회전 div (SVG stroke 방식은 어떤 이유로 안 그려져서 대체) */
  .lt-linear-body {
    position: absolute;
    z-index: 2;
    left: var(--line-left);
    top: var(--line-top);
    width: var(--line-width);
    height: var(--line-thickness);
    margin-top: var(--line-offset);
    background: var(--line-color);
    transform: rotate(var(--line-angle));
    transform-origin: 0 50%;
    pointer-events: auto;
  }
  .lt-linear-body:hover { filter: brightness(1.15); }
  .lt-linear-body.selected { outline: 2px dashed var(--color-warning); outline-offset: 2px; }
  /* 엔드포인트: 기본은 숨김. 선택된 라인에만 보임 (PowerPoint 스타일) */
  .lt-rail-endpoint { display: none; }
  .lt-rail-endpoint.visible { display: block; }
  .lt-rail-spot {
    position: absolute;
    width: 10px; height: 10px;
    transform: translate(-50%, -50%);
    background: var(--color-warning-subtle);
    border: 1.5px solid var(--color-warning);
    border-radius: 2px;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(255,193,7,0.6);
    z-index: 2;
  }
  .lt-rail-endpoint.visible {
    position: absolute;
    width: 12px; height: 12px;
    transform: translate(-50%, -50%);
    background: var(--color-surface-default);
    border: 2px solid var(--color-warning);
    border-radius: 50%;
    cursor: grab;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  }
  .lt-rail-endpoint.visible:hover { background: var(--color-warning); }
  .lt-rail-endpoint.visible:active { cursor: grabbing; }
  .lt-rail-label {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(55,71,79,0.9);
    color: var(--color-text-inverse);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
  }
  .lt-rail-startdot {
    position: absolute;
    width: 12px; height: 12px;
    transform: translate(-50%, -50%);
    background: var(--color-info);
    border: 2px solid var(--color-text-inverse);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-info);
    pointer-events: none;
    z-index: 6;
    animation: pulse 1s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  /* 마그네틱 아이콘 (팔레트용) */

  /* 다중 선택 상태 */
  .lt-marker.multi-selected {
    outline: 3px solid var(--color-chart-revenue);
    outline-offset: 3px;
    border-radius: 50%;
  }
  .lt-marker-check {
    position: absolute;
    top: -6px; left: -6px;
    background: var(--color-chart-revenue);
    color: var(--color-text-inverse); font-size: 10px;
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 1.5px solid var(--color-text-inverse);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  /* 소속 구(회로) 번호 배지 - 조명 중앙에 오버레이 */
  .lt-marker-circuit {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--sw-color, var(--color-info));
    color: var(--color-text-inverse);
    font-size: 8px;
    font-weight: 800;
    min-width: 10px; height: 10px;
    padding: 0 2px;
    border-radius: 6px;
    border: 1px solid var(--color-text-inverse);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.35);
  }

  /* 회로(스위치) 관리 패널 */
  .lt-circuits { display: flex; flex-direction: column; gap: 8px; }
  .lt-circuit {
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--color-surface-default);
  }
  .lt-circuit-head {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; background: var(--color-surface-subtle); border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--line);
  }
  .lt-circuit-name {
    flex: 1; border: none; background: transparent;
    font-weight: 700; font-size: 13px; font-family: inherit;
    padding: 2px 4px;
  }
  .lt-circuit-name:focus { outline: 1px solid var(--fg); background: var(--color-surface-default); }
  .lt-circuit-count {
    font-size: 11px; color: var(--fg-mute); font-weight: 700;
    padding: 2px 6px; background: var(--color-surface-default); border-radius: 10px;
  }
  .lt-circuit-del {
    background: none; border: none; color: var(--color-danger);
    cursor: pointer; padding: 2px 6px; font-size: 14px;
  }
  .lt-switches { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
  .lt-switch {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 8px; border-radius: 6px;
    font-size: 11px;
  }
  .lt-switch .sw-dot {
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-inverse); font-weight: 800; font-size: 10px; flex: none;
  }
  .lt-switch .sw-label {
    flex: 1; border: none; background: transparent;
    font-size: 12px; padding: 3px 4px; font-family: inherit;
  }
  .lt-switch .sw-label:focus { outline: 1px solid var(--line); background: var(--color-surface-subtle); }
  .lt-switch .sw-count { font-size: 10px; color: var(--fg-mute); }
  .lt-switch .sw-del {
    background: none; border: none; color: var(--color-text-disabled); cursor: pointer;
    padding: 0 4px; font-size: 12px;
  }
  .lt-switch .sw-del:hover { color: var(--color-danger); }
  .lt-add-btn {
    background: none; border: 1px dashed var(--line);
    padding: 6px 10px; border-radius: 6px;
    color: var(--fg-mute); cursor: pointer; font-size: 11px;
    font-family: inherit; width: 100%;
  }
  .lt-add-btn:hover { border-color: var(--fg); color: var(--fg); }

  /* 조명 편집기의 회로 배정 드롭다운 */
  .lt-editor select {
    width: 100%;
    padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
    font-family: inherit; font-size: 13px; background: var(--color-surface-default);
  }

  /* 크기 조절 슬라이더 */
  .lt-size-ctrl {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; background: var(--color-surface-subtle); border-radius: 6px;
    font-size: 11px; color: var(--fg-mute);
  }
  .lt-size-ctrl input[type=range] { flex: 1; }
  .lt-size-val { min-width: 30px; text-align: right; font-weight: 700; color: var(--fg); }

  /* 우측 패널 */
  .lt-summary {
    background: var(--color-surface-subtle);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .lt-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed var(--color-border-default);
  }
  .lt-summary-row:last-child { border-bottom: none; }
  .lt-summary-row .name { display: flex; align-items: center; gap: 6px; }
  .lt-summary-row .count { font-weight: 700; }
  .lt-total {
    margin-top: 6px; padding-top: 6px; border-top: 2px solid var(--fg);
    font-weight: 700; text-align: right;
  }

  .lt-editor .row {
    display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px;
  }
  .lt-editor label {
    font-size: 11px; color: var(--fg-mute); font-weight: 600;
  }
  .lt-editor input {
    padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
    font-family: inherit; font-size: 13px;
  }
  .lt-editor .actions { display: flex; gap: 6px; margin-top: 8px; }

  .lt-empty-editor {
    color: var(--color-text-disabled); font-size: 12px; text-align: center; padding: 20px;
  }

  @media (max-width: 900px) {
    .lt-layout { grid-template-columns: 1fr; }
    .lt-panel { max-height: none; }
  }

/* ===== materials.html ===== */
.material-grid { transition: opacity var(--motion-fast); }
.material-grid.is-updating { opacity: .55; }

/* ===== project_expenses.html ===== */
.exp-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.exp-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface-default);
}
.exp-lbl { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.exp-val { color: var(--color-text-primary); font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.exp-proc-panel { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-6); margin: 0 0 var(--space-5); }
.donut-wrap { position: relative; width: 11.25rem; height: 11.25rem; flex: none; }
#proc-donut { display: block; width: 11.25rem; height: 11.25rem; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.donut-center .dc-lbl { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.donut-center .dc-val { margin-top: var(--space-1); color: var(--color-text-primary); font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.exp-process-bar { display: flex; min-width: 13.75rem; flex: 1; flex-wrap: wrap; gap: var(--space-2); }
.proc-chip { display: inline-flex; min-height: 2.5rem; max-width: 100%; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-pill); background: var(--color-surface-default); color: var(--color-text-primary); cursor: pointer; font-size: var(--font-size-sm); line-height: 1; touch-action: manipulation; transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast); }
.proc-chip:hover { border-color: var(--color-border-strong); }
.proc-chip .pc-dot { width: .5625rem; height: .5625rem; flex: none; border-radius: 50%; }
.proc-chip .pc-name { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc-chip .pc-amt { font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.proc-chip .pc-pct { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); opacity: .8; font-variant-numeric: tabular-nums; }
.proc-chip .pc-cnt { font-size: .6875rem; opacity: .65; font-variant-numeric: tabular-nums; }
.proc-chip.active { border-color: transparent; background: var(--chip-color, var(--color-text-primary)); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.proc-chip.active .pc-cnt { opacity: .85; }
.proc-chip.active .pc-dot { background: var(--color-text-inverse) !important; }
#proc-donut circle.seg { cursor: pointer; transition: opacity var(--motion-fast); }
#proc-donut circle.seg:hover { opacity: .85; }
#proc-donut circle.seg:focus-visible { outline: none; stroke-width: 38; }

.exp-add,
.exp-list-wrap { padding: var(--space-5); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-surface-default); }
.exp-add { margin-bottom: var(--space-5); }
.exp-add h2,
.exp-list-wrap h2 { margin: 0 0 var(--space-3); font-size: var(--font-size-lg); }
.exp-add-form { display: grid; grid-template-columns: minmax(9rem, 1.1fr) minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(10rem, 1.35fr) minmax(8rem, 1fr) minmax(10rem, 1.35fr) auto; gap: var(--space-2); align-items: start; }
.exp-add-field { min-width: 0; }
.exp-add-field > label { display: block; margin-bottom: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.exp-add-form input { width: 100%; min-height: 2.5rem; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); background: var(--color-surface-default); color: var(--color-text-primary); font: inherit; }
.exp-add-form input:focus-visible { border-color: var(--color-action-focus); outline: none; box-shadow: var(--focus-ring); }
.exp-add-form input[aria-invalid="true"] { border-color: var(--color-danger); }
.exp-add-action { align-self: end; }
.exp-add-action .btn { width: 100%; }
.field-error { display: block; margin-top: var(--space-1); color: var(--color-danger); font-size: var(--font-size-xs); }

.exp-table { table-layout: fixed; font-size: var(--font-size-sm); }
.exp-table th:nth-child(1) { width: 9rem; }
.exp-table th:nth-child(2),
.exp-table th:nth-child(3) { width: 10rem; }
.exp-table th:nth-child(5) { width: 10rem; }
.exp-table th:nth-child(7) { width: 5rem; }
.exp-table th.right,
.exp-table td.right { text-align: right; }
.exp-table td { vertical-align: middle; }
.exp-table tfoot td { border-top: 1px solid var(--color-border-default); font-size: var(--font-size-md); font-variant-numeric: tabular-nums; }
.cell-input { width: 100%; min-height: 2.25rem; padding: var(--space-2); border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--color-text-primary); font: inherit; }
.cell-input:hover { border-color: var(--color-border-subtle); background: var(--color-surface-default); }
.cell-input:focus-visible { border-color: var(--color-action-focus); outline: none; background: var(--color-surface-default); box-shadow: var(--focus-ring); }
.cell-input.cat-input,
.cell-input.proc-input { min-width: 4.875rem; }
.amount-field { display: inline-flex; min-width: 0; align-items: center; gap: var(--space-1); }
.amount-input { min-width: 6.25rem; font-variant-numeric: tabular-nums; }
.numeric-cell { font-variant-numeric: tabular-nums; }
.exp-list-wrap .empty-state { margin-block: var(--space-6); }

/* 직접 입력을 유지하면서 목록 선택과 키보드 탐색을 제공하는 콤보박스 */
.combo { position: relative; display: block; min-width: 0; }
.combo > input { width: 100%; padding-right: var(--space-10); box-sizing: border-box; }
.combo:focus-within > input { border-color: var(--color-action-focus); box-shadow: var(--focus-ring); }
.combo-caret { position: absolute; right: 0; top: 0; bottom: 0; display: grid; width: 2.5rem; place-items: center; padding: 0; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: transparent; color: var(--color-text-secondary); cursor: pointer; font-size: var(--font-size-xs); touch-action: manipulation; }
.combo-caret:hover { background: var(--color-surface-hover); color: var(--color-text-primary); }
.combo-menu { position: fixed; z-index: 9999; top: var(--combo-top); left: var(--combo-left); min-width: var(--combo-min-width); max-height: 16.25rem; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-1); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); background: var(--color-surface-default); box-shadow: var(--shadow-md); }
.combo-menu button { display: flex; width: 100%; min-height: 2.5rem; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-text-primary); cursor: pointer; font-size: var(--font-size-sm); text-align: left; white-space: nowrap; touch-action: manipulation; }
.combo-menu button:hover,
.combo-menu button.is-active { background: var(--color-surface-hover); }
.combo-menu button.on { background: var(--color-info-subtle); font-weight: var(--font-weight-bold); }
.combo-menu .cm-dot { width: .625rem; height: .625rem; flex: none; border-radius: 50%; }

@media (max-width: 64rem) {
  .exp-add-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .exp-add-action { align-self: end; }
}

@media (max-width: 48rem) {
  .exp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp-proc-panel { justify-content: center; }
  .exp-process-bar { justify-content: center; }
  .proc-chip { font-size: var(--font-size-xs); }
  .exp-add,
  .exp-list-wrap { padding: var(--space-4); }
  .exp-add-form { grid-template-columns: 1fr; }
  .exp-table tfoot { display: none; }
  .exp-table.data-table-responsive td { align-items: center; }
  .exp-table.data-table-responsive td::before { flex: 0 0 4rem; }
  .exp-table.data-table-responsive td .cell-input,
  .exp-table.data-table-responsive td .combo,
  .exp-table.data-table-responsive td .amount-field { min-width: 0; flex: 1; }
  .exp-table.data-table-responsive .action-cell .row-del { min-height: 2.5rem; }
}
/* 사용자 관리 */
.account-invite-section { max-width: var(--content-narrow); }
.account-invite-form { margin-top: var(--space-4); }
.account-section-header { margin-bottom: var(--space-3); }
.account-section-header .hint,
.section-heading-group .hint { margin-bottom: 0; }
.account-user-primary { display: grid; min-width: 0; gap: var(--space-1); }
.account-user-primary span { color: var(--color-text-secondary); font-size: var(--font-size-xs); overflow-wrap: anywhere; }
.account-actions { justify-content: flex-end; }
.account-break-word { overflow-wrap: anywhere; }
.account-link-output { display: grid; gap: var(--space-3); }
.account-link-output p { margin-bottom: 0; }
.account-link-output input {
  width: 100%;
  min-height: 2.625rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  font: inherit;
}
.account-empty-state { margin: var(--space-4) 0 0; }

@media (max-width: 48rem) {
  .account-table .account-actions { width: 100%; justify-content: flex-start; }
  .account-table .account-actions .btn { width: 100%; }
  .account-table .account-actions form { width: 100%; }
}

/* Project editor: separate document actions from grouped workspace navigation. */
.project-management > summary { min-height: 2.75rem; }
.project-workspace-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--space-6); }
.project-workspace-group { min-width: 0; padding-inline: var(--space-4); }
.project-workspace-group:first-child { padding-left: 0; }
.project-workspace-group:last-child { padding-right: 0; }
.project-workspace-group + .project-workspace-group { border-left: 1px solid var(--color-border-subtle); }
.project-workspace-group h2 { margin: 0 0 var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); }
.project-workspace-group .button-group { gap: var(--space-1); }
.project-workspace-group .btn { min-height: 2.75rem; padding-inline: var(--space-2); }
.project-workspace-group .btn:hover { background: var(--color-surface-subtle); }

@media (max-width: 48rem) {
  .project-workspace-nav { grid-template-columns: 1fr; }
  .project-workspace-group { padding: var(--space-3) 0; }
  .project-workspace-group:first-child { padding-top: 0; }
  .project-workspace-group:last-child { padding-bottom: 0; }
  .project-workspace-group + .project-workspace-group { border-left: 0; border-top: 1px solid var(--color-border-subtle); }
  .project-workspace-group h2 { margin-bottom: var(--space-1); }
  .project-management { margin-left: auto; }
}
@media print {
  .project-workspace-nav, .project-workspace-head .page-head-actions { display: none; }
}

/* Project overview shares the workspace header and grouped navigation. */
.project-overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--space-6); }
.project-overview-metrics h3, .project-overview-info h2 { margin: 0; }
.project-overview-metrics p { margin-bottom: 0; }
.project-overview-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-block: var(--space-5); }
.project-overview-details div { min-width: 0; }
.project-overview-details dt { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.project-overview-details dd { margin: var(--space-1) 0 0; overflow-wrap: anywhere; }
.project-management .header-menu-panel { gap: var(--space-2); }
.project-management .header-menu-panel form, .project-management .header-menu-panel .btn { width: 100%; }
@media (max-width: 48rem) {
  .project-overview-metrics, .project-overview-details { grid-template-columns: 1fr; }
}

/* Calendar overview: details live in the selected-day panel. */
.calendar .cal-cell.today { background: var(--color-surface-default); }
.calendar .cal-cell.selected { background: var(--color-surface-selected); }
.calendar .cal-cell { height: 7.5rem; padding: var(--space-2); }
.calendar .cal-badges { display: grid; gap: var(--space-1); margin-top: var(--space-2); }
.calendar .task-badge { display: flex; flex-direction: row; border: 0; border-radius: 0; align-items: center; gap: var(--space-1); min-width: 0; padding: 0; background: transparent; }
.calendar .tb-name { text-align: left; display: block; flex: 1; min-width: 0; padding: 0; color: var(--color-text-primary); background: transparent; font-size: var(--font-size-xs); line-height: var(--line-height-normal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar .tb-name::before { display: none; }
.schedule-process-dot { flex: 0 0 var(--space-1); width: var(--space-1); height: var(--space-1); border-radius: var(--radius-pill); }
.calendar .tb-confirm { padding: 0; background: transparent; color: var(--color-success); font-size: var(--font-size-xs); }
.schedule-more { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
.panel.schedule-day-detail {
  position: fixed;
  z-index: 900;
  inset: 0 0 0 auto;
  width: min(26rem, 100vw);
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: var(--shadow-dialog);
  display: flex;
  flex-direction: column;
}
.panel.schedule-day-detail[hidden] { display: none; }
.schedule-day-detail .schedule-day-header { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); margin: 0; border-bottom: 1px solid var(--color-border-subtle); }
.schedule-day-heading { flex: 1; min-width: 0; }
.schedule-day-heading .field-hint { margin-bottom: 0; }
.schedule-day-header #edit-day-schedule { flex-basis: 100%; }
#schedule-day-items { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--space-5) var(--space-5); }
.schedule-day-item:first-child { border-top: 0; }
.schedule-day-detail h2 { margin: 0; font-size: var(--font-size-lg); }
.schedule-day-item { padding-block: var(--space-3); border-top: 1px solid var(--color-border-subtle); overflow-wrap: anywhere; }
.schedule-day-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
@media (max-width: 48rem) {
  .calendar .cal-cell { height: 5rem; padding: var(--space-1) calc(var(--space-1) / 2); }
  .calendar .task-badge { gap: 0; }
  .calendar .schedule-process-dot { display: none; }
  .calendar .tb-name { font-size: var(--font-size-xs); }
  .panel.schedule-day-detail { inset: auto 0 0; width: 100%; max-height: min(70dvh, 36rem); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .schedule-day-detail .schedule-day-header { padding: var(--space-4); }
  #schedule-day-items { padding-inline: var(--space-4); }
}
@media print { .panel.schedule-day-detail { display: none; } }

.calendar .calendar-extra { display: none; }
@media print {
  .calendar .calendar-extra { display: flex; }
  .calendar .schedule-more { display: none; }
}
