/* Phase two: shared roles for both themes, with the same mobile layout. */
.home-layout .home-section{background:transparent;margin:0;padding:0;border-radius:0;min-width:0}
.home-layout .home-section>.section-head{padding-inline:20px}
.home-layout :is(.home-contracts,.home-section)>.section-head{min-height:44px;margin-bottom:22px}
.home-layout :is(.home-confirmed,.home-proposals,.home-progress){background:var(--surface);padding:20px;border-radius:8px}
.home-layout :is(.home-confirmed,.home-proposals,.home-progress)>.section-head{padding-inline:0}
:is(.home-confirmed,.home-proposals,.home-progress) .record,
:is(.home-confirmed,.home-proposals,.home-progress) .home-contract-empty{background:var(--surface-2)}
:is(.home-confirmed,.home-proposals,.home-progress) .record:hover{background:var(--hover)}
.home-upcoming .schedule-bundle,.home-upcoming .record.record-schedules{border:3px solid var(--primary)}
.home-layout .home-upcoming{background:var(--surface);padding:20px;border-radius:8px}
.home-layout .home-upcoming>.section-head{padding-inline:0}
.home-upcoming .schedule-bundle,.home-upcoming .record.record-schedules{background:var(--surface-2)}
.home-layout .home-upcoming .record.record-schedules{min-height:88px;padding:14px 12px;column-gap:10px;row-gap:0}
.home-layout .home-upcoming .record-schedules .record-right{display:none}
.home-layout .home-upcoming .record-schedules>.record-chevron{grid-row:1}
.home-upcoming .schedule-bundle>summary{min-height:96px;padding:14px 12px}
.home-cycle-sales .cumulative-notice{margin-top:14px;font-size:12px;line-height:1.7;color:#514919;word-break:keep-all;overflow-wrap:anywhere}
.address-field{min-width:0;grid-column:1 / -1;margin-bottom:24px}.address-field>label{margin-bottom:10px}.address-search-button{min-height:44px;padding:10px 16px;font-size:14px}
.address-error{color:var(--error);font-size:13px;line-height:1.6;margin-top:8px}.address-error:empty{display:none}
.address-search-panel{margin-top:12px;background:#fff;color:#191919;border-radius:8px;overflow:hidden}.address-search-panel[hidden]{display:none}
.address-search-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 12px}.address-search-frame{height:460px;width:100%}.address-search-frame iframe{max-width:100%}
h1,h2,h3{letter-spacing:0}
.form-section h3{gap:8px;align-items:baseline}
.form-section h3::before{font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:0;flex:none}
.home-cycle-sales .section-head{flex-wrap:wrap;gap:8px 12px}.home-cycle-sales .section-head h2{min-width:0;overflow-wrap:anywhere}
/* Icon-only registration controls share centering across every page. */
.page-head>.primary,.ledger-total>.primary{display:inline-flex;align-items:center;justify-content:center;gap:0;padding:0;font-size:0;line-height:0;flex-shrink:0;aspect-ratio:1}
.page-head>.primary svg,.ledger-total>.primary svg{display:block;width:24px;height:24px;margin:0;flex:none}
.faq-head{justify-content:flex-start;gap:12px}.faq-head h1{font-size:26px}
.faq-section{margin:0 0 32px}.faq-section h2{font-size:21px;font-weight:700;margin:0 0 12px}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:18px 0;cursor:pointer;list-style:none;font-size:16px;font-weight:600;line-height:1.6;color:var(--ink)}
.faq-item summary::-webkit-details-marker{display:none}.faq-item summary span{min-width:0;overflow-wrap:anywhere}
.faq-item summary svg{width:20px;height:20px;flex:none;color:var(--muted)}.faq-item[open] summary svg{transform:rotate(180deg)}
.faq-item summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.faq-answer{padding:0 16px 16px;background:var(--surface);border-radius:8px;margin-bottom:16px}
.faq-answer p{margin:0;padding-top:16px;font-size:15px;line-height:1.85;color:var(--ink);overflow-wrap:anywhere}
.document-faq{word-break:keep-all}.workspace:has(.document-faq) .quick-contract{display:none}
:root{color-scheme:dark;--bg:#0d0d11;--surface:#17181d;--surface-2:#23272b;--hover:#292d32;--ink:#f8f9fb;--muted:#a0a4ab;--line:#2c3036;--primary:#fae919;--on-primary:#191919;--accent:#3899fa;--disabled:#737982;--error:#ff7274;--error-bg:#342022;--success:#80c7a3;--success-bg:#192c23;--gold-bg:#363216;--gold-text:#f5df56;--blue-bg:#182a40;--outer:#08080b;--mint:var(--primary);--mint-dark:var(--ink);--mint-pale:var(--gold-bg);--coral:var(--error);--gold:var(--gold-text);background:var(--outer);color:var(--ink)}
:root[data-theme=light]{color-scheme:light;--bg:#f5f6f8;--surface:#fff;--surface-2:#eef0f3;--hover:#e7eaee;--ink:#191f28;--muted:#66717f;--line:#e1e5ea;--accent:#1b74e4;--disabled:#9ca5b0;--error:#c63842;--error-bg:#fff0f1;--success:#347757;--success-bg:#f0faf4;--gold-bg:#fff8c9;--gold-text:#75620b;--blue-bg:#e9f1ff;--outer:#e5e8ed}
body,.bottom-nav{width:100%;max-width:640px}
body{background:var(--bg);color:var(--ink)}
.workspace>main{padding:24px 24px calc(230px + env(safe-area-inset-bottom))}
.login-header{background:var(--bg);color:var(--ink);padding-inline:24px}
.workspace>.topbar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:72px minmax(0,1fr) 72px;height:84px;gap:0;padding:8px 12px;background:#08080b;color:#fff;border-bottom:1px solid #414147}
.topbar>.brand{justify-self:center;max-width:100%;min-width:0}.topbar>.brand img{width:180px;max-width:100%;height:60px;object-fit:contain}.topbar .topbar-actions{justify-self:end}.topbar .icon-btn{width:36px;height:44px}.topbar-home{justify-self:start}
.login-header .brand img{filter:brightness(0) invert(1)}
.topbar .brand img{filter:brightness(0) invert(1)}
[data-theme=light] .login-header .brand img{filter:none}
.login-header>span{color:var(--ink)}
.topbar .icon-btn{color:#fff}
.icon-btn:hover{background:var(--surface-2)}
.topbar .icon-btn:hover{background:#ffffff20}
button:focus-visible,a:focus-visible{outline-color:var(--accent)}
.topbar .icon-btn:focus-visible,.topbar a:focus-visible{outline-color:var(--primary)}
.primary{background:var(--primary);color:var(--on-primary)}.primary:hover{background:#f0dd12}
.secondary{background:var(--surface-2);color:var(--ink)}.secondary:hover{background:var(--hover)}
.danger{background:var(--error-bg);color:var(--error)}
.daily-greeting p,.login-screen label,label,.input-unit,.check-row{color:var(--muted)}
.daily-greeting .greeting-play{color:var(--ink);background:var(--surface-2)}
.record,.schedule-bundle,.menu-list>button{background:var(--surface);border-radius:16px}
.record:hover,.schedule-step:hover,.schedule-bundle>summary:hover{background:var(--hover);box-shadow:none}
.record-title strong{font-size:17px}.record-right strong{font-variant-numeric:tabular-nums}
.tile,.avatar,.person-dot{background:var(--surface-2);color:var(--muted)}
.badge,.badge.gray{background:var(--surface-2);color:var(--muted)}
.badge.gold,.same-day-label{background:var(--gold-bg);color:var(--gold-text)}
:root{--schedule-same-bg:#49431b;--schedule-same-ink:#ffed6b;--schedule-setup-bg:#183a30;--schedule-setup-ink:#86dcba;--schedule-range-bg:#21344c;--schedule-range-ink:#a8ceff}
[data-theme=light]{--schedule-same-bg:#fff0ac;--schedule-same-ink:#574500;--schedule-setup-bg:#dff4ea;--schedule-setup-ink:#146344;--schedule-range-bg:#e1edff;--schedule-range-ink:#255691}
.same-day-label.schedule-kind-same{background:var(--schedule-same-bg);color:var(--schedule-same-ink)}
.time-tile .schedule-kind-setup,.step-kind.setup{background:var(--schedule-setup-bg);color:var(--schedule-setup-ink)}
.same-day-label.schedule-kind-range{background:var(--schedule-range-bg);color:var(--schedule-range-ink)}
.time-tile .schedule-kind-setup{display:inline-flex;align-items:center;justify-content:center;padding:4px 6px;border-radius:4px;font-size:11px;font-weight:600;line-height:16px;white-space:nowrap;margin-top:4px}
.badge.coral{background:var(--error-bg);color:var(--error)}
.badge.purple,.step-kind.teardown{background:var(--blue-bg);color:var(--accent)}
.schedule-bundle{border-left-color:var(--primary)}
.record-schedules{border-left-color:var(--line)}.record-schedules:first-child{border-left-color:var(--primary)}
.bottom-nav{background:var(--surface-2);box-shadow:inset 0 1px var(--line);border-top:0}
.bottom-nav>button{color:var(--muted)}.bottom-nav>button.active{color:var(--ink)}
.quick-contract{right:max(16px,calc((100vw - 640px)/2 + 16px));color:var(--on-primary)}
.quick-contract>span{color:var(--on-primary)}
.section-head h2,.home-contracts .section-head h2,.home-cycle-sales .section-head h2{font-size:14px;font-weight:500;color:var(--muted);line-height:1.5}
.home-layout .home-contracts .section-head h2,.home-layout .home-section .section-head h2{font-size:19px;font-weight:700;line-height:1.4;color:#fff;display:flex;align-items:center;gap:8px}
[data-theme=light] .home-layout .home-contracts .section-head,[data-theme=light] .home-layout .home-section .section-head{background:transparent}
[data-theme=light] .home-layout .home-contracts .section-head h2,[data-theme=light] .home-layout .home-section .section-head h2{color:var(--ink)}
.home-layout .home-contracts .section-head h2 svg,.home-layout .home-section .section-head h2 svg{width:20px;height:20px}
.welcome-name{color:var(--primary)}[data-theme=light] .welcome-name{color:var(--gold-text)}
.section-head button{color:var(--muted)}
.home-layout{display:flex;flex-direction:column;gap:28px}
.home-layout .home-contracts,.home-layout .home-cycle-sales{margin:0;padding:20px;background:var(--surface);border:0;border-radius:8px}
.home-layout .home-contracts{order:0}.home-layout .home-upcoming{order:2}.home-layout .home-cycle-sales{order:1;background:var(--primary);color:var(--on-primary);margin-inline:0;padding:20px;border-radius:8px}
.home-layout .home-confirmed{order:3}.home-layout .home-proposals{order:4}.home-layout .home-section.home-progress{order:5}
.home-contract-empty{display:flex;align-items:center;justify-content:center;min-height:104px;padding:20px 16px;border-radius:8px;background:var(--surface);font-size:14px;color:var(--muted);text-align:center}.contract-phase>span{word-break:keep-all;font-weight:700}
.home-cycle-sales .section-head h2,.home-cycle-sales .cumulative-sales>span,.home-cycle-sales .cumulative-sales small{color:#4c471a}
.cycle-basis{color:#514919;background:#fdfbb3;border-radius:12px}
.cycle-sales-amount{font-size:36px;font-weight:800;color:var(--on-primary)}
.cumulative-sales{border-color:#cabc3d}.cumulative-sales strong{color:var(--on-primary)}
.home-cycle-sales .cumulative-sales{align-items:baseline;gap:12px}
.home-cycle-sales .cumulative-sales>span{flex:1;min-width:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.home-cycle-sales .cumulative-sales small{display:inline;font-size:inherit;font-weight:inherit;margin:0}
.home-cycle-sales .cumulative-sales>strong{flex:none}
.contract-phase:hover{background:var(--surface-2)}.contract-phase>span,.contract-phase small{color:var(--muted)}
.today-work{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.today-work h2{font-size:20px;font-weight:700;margin:8px 0}.today-work p{font-size:14px;color:var(--muted)}
.today-work .eyebrow{font-size:13px;color:var(--muted)}
.today-work>img{width:84px;height:92px;object-fit:contain;flex:none}
.today-work button{display:inline-flex;align-items:center;gap:5px;color:var(--primary);font-size:14px;font-weight:600;min-height:44px;margin-top:4px;padding-inline:0}
.today-work button svg{width:16px;height:16px}
.search input,.toolbar .icon-btn{background:var(--surface);color:var(--ink)}
.chip{background:var(--surface-2);color:var(--muted);border-radius:20px}.chip.active{background:var(--ink);color:var(--bg)}
.chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.chip{flex:none}
.summary-strip,.ledger-total,.calendar,.settings-section{margin-inline:0;padding-inline:20px;background:var(--surface)}
dialog,.modal-head,.modal-actions{background:var(--surface);color:var(--ink)}
.modal-actions{box-shadow:none;border-top:1px solid var(--line)}dialog::backdrop{background:#0009}
input,select,textarea,.select-shell select{background:var(--surface-2);color:var(--ink)}
input::placeholder,textarea::placeholder{color:var(--disabled)}
input:focus,select:focus,textarea:focus{background:var(--surface-2);border-color:var(--accent);box-shadow:0 0 0 3px #2089f41c}
input:disabled,select:disabled,textarea:disabled{background:var(--surface-2);color:var(--disabled)}
input:user-invalid,select:user-invalid,textarea:user-invalid,[aria-invalid=true]{background:var(--error-bg);border-color:var(--error)}
input[data-validated=true]:valid{background:var(--success-bg);border-color:var(--success)}
.form-error{color:var(--error)}.form-error:not(:empty){background:var(--error-bg)}
.detail-note,.document-picker,.payout-list>section{background:var(--surface-2);color:var(--muted)}
.detail-grid a{color:var(--accent)}.detail-section{background:var(--bg)}
.day.other{color:var(--disabled)}.day.today{color:var(--accent)}.day.selected{background:var(--primary);color:var(--on-primary)}
.day .dot{background:var(--accent)}
.segment{background:transparent;padding:0;border-bottom:1px solid var(--line);border-radius:0;gap:0}
.segment button{color:var(--muted);border-radius:0;border-bottom:2px solid transparent}
.segment button[aria-selected=true]{color:var(--ink);background:transparent;box-shadow:none;border-bottom-color:var(--ink)}
.menu-list>button>svg:first-child,.menu-list>button>svg:last-child{color:var(--muted)}
.login-screen{background:var(--bg)}.login-bottom .secondary{background:var(--surface-2)}
.notice,.demo-banner{background:var(--gold-bg);color:var(--gold-text)}.offline{background:var(--error-bg);color:var(--error)}
.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.theme-options button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border-radius:12px;background:var(--surface-2);color:var(--muted);border:1px solid transparent}
.theme-options button[aria-pressed=true]{border-color:var(--primary);color:var(--ink)}
.all-menu-profile{display:flex;align-items:center;gap:14px;padding:8px 0 24px}
.all-menu-profile>div{flex:1;min-width:0}.all-menu-profile strong{font-size:20px;overflow-wrap:anywhere}.all-menu-profile p{font-size:13px;color:var(--muted)}
.menu-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:28px}
.menu-tiles button{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:16px;min-height:100px;padding:16px;text-align:left;font-size:16px;font-weight:600;min-width:0}
.menu-tiles img{width:52px;height:60px;object-fit:contain;flex:none}.menu-tiles span{overflow-wrap:anywhere}
.menu-group{margin-bottom:24px}.menu-group h2{font-size:13px;font-weight:400;color:var(--muted);margin-bottom:8px}
.menu-group>button{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 0;text-align:left;border-bottom:1px solid var(--line)}
.menu-group>button>span{flex:1}.menu-group>button>svg{color:var(--muted);width:20px;height:20px}
.sales-tabs{display:flex;margin-bottom:24px}.sales-tabs button{flex:1;min-height:48px;font-size:15px;font-weight:600}
.business-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.modal-actions.business-actions{margin:0}.business-actions>button{min-width:0;font-size:14px;padding-inline:12px}
.quote-item{border:0;border-bottom:1px solid var(--line);padding:0 0 20px;margin:0 0 24px;min-width:0}
.quote-item legend{font-size:16px;font-weight:600;margin-bottom:16px}.quote-item-tools{display:flex;align-items:center;justify-content:space-between}
.quote-item-tools label{display:flex;gap:10px;align-items:center;margin:0}.quote-item-tools input{width:20px;height:20px;min-height:20px;margin:0;accent-color:var(--primary)}
.business-preview h2{font-size:22px;overflow-wrap:anywhere}.business-preview h3{font-size:16px;margin:24px 0 8px}
.business-preview p{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);margin:12px 0}
.quote-preview-items>section{padding:16px 0;border-bottom:1px solid var(--line)}.business-preview .amount-list{margin-top:24px}
@media(max-width:799px){dialog{width:min(640px,100%)}}
@media(max-width:360px){.workspace>main{padding-inline:20px}.topbar{padding-inline:20px}.menu-tiles button{gap:8px;padding:12px;font-size:15px}.menu-tiles img{width:40px;height:52px}}
.modal-content .form-section,.modal-content .detail-section{margin-inline:0;padding-inline:0}
/* Shared controls keep role colors in both themes. */
.primary,.secondary,.danger,.icon-btn,.chip,.theme-options button,.page-head>.primary,.ledger-total>.primary,.contract-phase,.quick-contract>span{border-radius:10px}
.secondary{background:var(--primary);color:#191919}
.secondary:hover{background:#f0dd12;box-shadow:none}
.contract-phase{padding:10px 4px;gap:4px;justify-content:center;min-height:76px;border:1px solid #37383d;background:#111114;color:#fff}
.contract-phase>strong{line-height:1.1}
.contract-phase>span{line-height:1.2}
.contract-phase>span,.contract-phase small{color:inherit}
.home-layout :is(.home-proposals,.home-progress) .record-contracts .record-right{display:none}
.home-layout :is(.home-proposals,.home-progress) .record-contracts>.record-chevron{grid-row:1}
.contract-phase.phase-1>span:before{display:none}
.contract-phase:hover{background:#1b1c20;border-color:#52545b;box-shadow:none}
.workspace{--page-gutter:24px;--header-gap:calc(16px + env(safe-area-inset-top,0px));padding-top:var(--header-gap)}
.workspace>.topbar{top:var(--header-gap)}
.workspace>.topbar{margin-inline:var(--page-gutter);width:calc(100% - 2 * var(--page-gutter));padding-inline:8px;border-radius:10px;grid-template-columns:72px minmax(0,1fr) 72px}
.workspace>.topbar{background:var(--primary);color:#191919;border-bottom-color:#d9cc16}
.topbar .brand img{filter:brightness(0)}
.topbar .icon-btn{color:#191919}
.topbar .icon-btn:hover{background:#0000000a}
.topbar .icon-btn:focus-visible,.topbar a:focus-visible{outline-color:#191919}
@media(max-width:360px){.workspace{--page-gutter:20px}.contract-phase>span{font-size:13px}}
@font-face{font-family:Jua;src:url('Jua-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
.login-screen{background:#fae919;color:#191919;color-scheme:light}
.login-screen .login-header{background:transparent;color:#191919;padding:20px 24px}
.login-screen .login-header .brand img{filter:brightness(0)}
.login-screen .login-header>span{color:#191919}
.login-screen .login-content{max-width:440px;padding:24px;flex:0 0 auto;margin:auto}
.login-screen .login-header,.login-screen .login-footer{flex-shrink:0}
.login-screen .login-intro{flex-direction:column;gap:12px;text-align:center;margin:0 0 24px}
.login-screen .login-intro h1{font-family:Inter,Pretendard,sans-serif;font-size:36px;font-weight:400;line-height:1.2;letter-spacing:0;color:#191919;text-shadow:none}
.login-screen .login-mascot{width:220px;height:234px;max-width:100%;object-fit:contain}
.login-screen label{color:#38320b;margin-bottom:18px}
.login-screen input{background:#fff;color:#191919;border-radius:10px}
.login-screen input::placeholder{color:#717680}
.login-screen input:focus{background:#fff;border-color:#191919;box-shadow:0 0 0 3px #19191918}
.login-screen input:user-invalid,.login-screen input[aria-invalid=true]{border-color:#b52534}
.login-screen .primary,.login-screen .secondary{background:#17181d;color:#fff;border-radius:10px}
.login-screen .primary:hover,.login-screen .secondary:hover{background:#303238}
.login-screen .login-bottom small,.login-screen .login-footer{color:#514919}
.login-screen .login-bottom{margin-top:16px}
.login-screen .form-error{color:#a51e2c}
.login-screen .form-error:not(:empty){background:#fff0f1}
@media(max-width:360px){.login-screen .login-content{padding-inline:20px}.login-screen .login-intro h1{font-size:32px}.login-screen .login-mascot{width:200px;height:213px}}
.mobile-welcome h1{font-family:Inter,Pretendard,sans-serif;font-weight:400;line-height:1.3}
.mobile-welcome,.today-work{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:20px}
.mobile-welcome>div,.today-work>div{min-width:0}
.mobile-welcome h1{overflow-wrap:anywhere}
[data-theme=light] .mobile-welcome,[data-theme=light] .today-work{background:#fff;border:1px solid #d9dde3;border-radius:8px;padding:20px}
[data-theme=light] .mobile-welcome>div,[data-theme=light] .today-work>div{min-width:0}
[data-theme=light] .mobile-welcome h1{overflow-wrap:anywhere}
[data-theme=light] .welcome-name,[data-theme=light] .today-work button{color:#191919}
[data-theme=light] .contract-phase{background:var(--primary);color:#191919;border:0}
[data-theme=light] .contract-phase:hover{background:#f0dd12}
[data-theme=light] .home-layout .home-section{background:#fff;border:1px solid #d9dde3}
[data-theme=light] .home-section .record,[data-theme=light] .home-section .schedule-bundle,[data-theme=light] .home-section .home-contract-empty{background:#fff;border:1px solid #d9dde3}
[data-theme=light] .home-section .record:hover,[data-theme=light] .home-section .schedule-bundle>summary:hover{background:#f5f6f8}
[data-theme=light] .home-layout .home-upcoming .record.record-schedules{min-height:104px;padding-block:20px}
[data-theme=light] .home-upcoming .schedule-bundle>summary{min-height:102px;padding-block:20px}
[data-theme=light] .home-upcoming .record-sub{word-break:keep-all;overflow-wrap:anywhere}
/* Display titles share the greeting typeface; data and form values stay unchanged. */
.page-head h1,.section-head h2,.section-head h3,.modal-head h2,.form-section h3,.settings-section h2,.faq-section h2,.detail-section h3,.sub-heading,.menu-group h2,.menu-list strong,.faq-item summary{font-family:Inter,Pretendard,sans-serif;letter-spacing:0}
.welcome-name,.record-title strong,.bundle-title,.step-info>strong,.detail-title h2,.business-preview h2,.payout-list h3{font-family:Inter,Pretendard,sans-serif}
.summary-strip,.ledger-total,.calendar,.settings-section,.detail-note,.document-picker,.payout-list>section,.notice,.offline,.demo-banner,.faq-answer,.menu-tiles button,.record,.schedule-bundle,.menu-list>button{border-radius:8px}
.mobile-welcome,.today-work,[data-theme=light] .mobile-welcome,[data-theme=light] .today-work,.contract-phase,[data-theme=light] .contract-phase{border:0}
.contract-phase:hover{border:0}
[data-theme=dark] .home-section .record:not(.record-schedules){border:0}
/* Retain the explicitly requested schedule outline and neutral light-card borders. */
.mobile-welcome h1,.mobile-welcome .welcome-name,.today-work h2,.menu-tiles button{font-family:Inter,Pretendard,sans-serif}
.home-cycle-sales .section-head h2{font-size:21px;line-height:1.3}
.home-cycle-sales .cumulative-sales{margin-top:12px;padding-top:10px;line-height:1.2}
.home-cycle-sales .cumulative-notice{margin-top:6px;line-height:1.3}
.settings-section{padding-block:16px}
.settings-section>.section-head{margin-bottom:8px}
.settings-section>.section-head h2{margin-bottom:0}
.settings-row{padding-block:10px}
.settings-row strong{display:block;line-height:1.25}
.settings-row p{margin:5px 0 0;line-height:1.3}
.settings-row .secondary{min-height:44px}
.contract-detail .detail-section{background:transparent;padding-block:20px;margin-top:20px;border-top:1px solid var(--line)}
.contract-detail .detail-section .detail-section{border-top:0;margin-top:0;padding-block:0}
.contract-detail>.detail-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px 8px}
.contract-detail>.detail-grid>div{grid-column:span 3}
.contract-detail>.detail-grid>.detail-money{grid-column:span 2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:88px;padding:12px 6px;border-radius:8px;background:var(--surface-2)}
.contract-detail .detail-money dd{order:-1;font-size:16px;line-height:1.3;text-align:center;max-width:100%;overflow-wrap:anywhere}
.contract-detail .detail-money dt{font-size:12px;line-height:1.3;text-align:center;margin:0}
[data-theme=dark] .contract-detail .business-actions>button,[data-theme=dark] .business-actions.modal-actions>.secondary{background:var(--primary);color:var(--on-primary);box-shadow:none}
.summary-strip{background:transparent;padding:0;gap:12px}
.summary-strip>div{background:var(--surface);border-radius:8px;padding:16px;min-width:0}
.contract-detail>.detail-grid>.detail-money{padding:16px 10px;background:var(--blue-bg)}
.contract-detail .detail-money dd{width:100%;color:var(--ink)}
.contract-detail .detail-money dt{width:100%}
.modal-content.contract-detail .detail-section{background:var(--surface-2);border:0;border-radius:8px;padding:20px;margin-top:16px}
.modal-content.contract-detail .detail-section .detail-section{background:transparent;padding:0;margin-top:12px}
.modal-content.customer-detail>.detail-section{background:var(--surface-2);border:0;border-radius:8px;margin:16px 0 0;padding:20px;min-width:0}
.modal-content .detail-section.settlement-billing{background:var(--surface-2);border:0;border-radius:8px;margin:20px 0;padding:20px;min-width:0}
#personal-convert-label[hidden]{display:none}
.personal-detail{margin:20px 0;padding:16px 0;border-top:1px solid var(--line)}.personal-record-label{color:var(--accent)!important;font-size:12px}.ledger-class-totals{margin-bottom:20px}.personal-detail button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ledger-period-filter{margin:20px 0;padding:0;min-width:0}.ledger-period-filter .section-head{margin-bottom:8px}
.settlement-date-parts{border:0;padding:0;margin:0 0 20px;min-width:0}.settlement-date-parts legend{font-size:13px;color:var(--muted);margin-bottom:8px}.settlement-date-parts>div{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:6px}.settlement-date-parts label{margin:0;min-width:0}.settlement-date-parts select{padding:10px 6px;min-width:0;width:100%;font-size:14px}.settlement-list-toggle{font-size:12px;color:var(--accent);text-decoration:underline;padding:4px;white-space:nowrap}.settlement-selected-list,.settlement-reference{border-top:1px solid var(--line);padding-top:16px;margin:16px 0}.settlement-selected-list[hidden]{display:none}.settlement-ledger-modal .section-head{flex-wrap:wrap;gap:8px}.settlement-ledger-modal .section-head strong{white-space:nowrap}.settlement-ledger-modal .settlement-selected-list:first-of-type{border-top:0}.settlement-selected-list .settled-sources>div{gap:12px}.settlement-selected-list .settled-sources span{min-width:0;overflow-wrap:anywhere}
.settlement-period h3{margin:12px 0 16px}.settlement-deferred{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.settlement-deferred details{margin-top:12px}.settlement-deferred summary{cursor:pointer;padding:10px 0;font-weight:600}.settlement-deferred .settled-sources>div{gap:12px}.settlement-deferred .settled-sources span{min-width:0;overflow-wrap:anywhere}
.settlement-billing .section-head{flex-wrap:wrap;gap:8px 12px}
.settlement-billing .section-head h3{margin:0}
.settlement-billing .billing-summary>div{gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.settlement-billing .billing-summary>div:last-child{border-bottom:0;padding-bottom:0}
.settlement-billing .billing-summary>div>span:first-child{flex:1;min-width:120px}
.customer-detail .section-head{flex-wrap:wrap;gap:8px 12px}
.customer-detail .section-head h3{margin:0;min-width:0;overflow-wrap:anywhere}
.customer-detail .document-row{flex-wrap:wrap}
.customer-detail .document-row>.icon-btn{flex-shrink:0}
.customer-detail .detail-section>.muted,.customer-detail .document-list>.muted{margin:8px 0;line-height:1.5}
.contract-detail button[data-action="detail"][data-type="customers"]{background:var(--primary);color:#191919;box-shadow:none}
.contract-detail button[data-action="detail"][data-type="customers"]:hover{background:#f0dd12}
.modal-actions button[data-action="print"]{background:#fff;color:#191919;box-shadow:none}
.modal-actions button[data-action="print"]:hover{background:#eef0f3}
.quote-pdf-help{margin-top:16px;font-size:13px;line-height:1.5;color:var(--muted)}
.detail-title .badge+.badge{margin-left:6px}
.modal-content,.field-grid,.field-grid>*,.input-shell,.select-shell,.address-field,label{min-width:0;max-width:100%;box-sizing:border-box}
input,select,textarea{min-width:0;max-width:100%;box-sizing:border-box}
input[type=date],input[type=time]{width:100%;min-width:0;-webkit-appearance:none;appearance:none}
input::-webkit-date-and-time-value{text-align:left;min-width:0}
.input-shell{width:100%}
.contract-detail>.detail-grid>.detail-money{grid-column:1 / -1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:0;padding:16px}
.contract-detail>.detail-grid>div:not(.detail-money){padding-inline:16px}
.contract-detail .detail-money dd{order:0;width:100%;font-size:22px;line-height:1.3;text-align:left;white-space:nowrap;overflow-wrap:normal}
.contract-detail .detail-money dt{text-align:left;font-size:13px}
@media(max-width:380px){.field-grid{grid-template-columns:minmax(0,1fr)}.field-grid>.span-2{grid-column:1 / -1}.contract-detail .detail-money dd{font-size:20px}}
.login-screen .login-header{padding-block:12px}
.login-screen .login-content{padding-block:12px}
.login-screen .login-intro{gap:6px;margin-bottom:14px;min-height:0}
.login-screen .login-intro h1{font-size:30px;line-height:1.15}
.login-screen .login-mascot{width:144px;height:150px}
.login-screen label{margin-bottom:12px}
.login-screen input:not([type=checkbox]){min-height:48px;height:48px;font-size:16px}
.login-screen .login-remember{display:flex;align-items:center;gap:8px;min-height:36px;margin:0;font-size:13px;color:#191919}
.login-screen .login-remember input{width:18px;height:18px;min-height:0;flex:0 0 18px;accent-color:#191919}
.login-security-note{font-size:12px;color:#514919;line-height:1.4;margin:2px 0 8px}
.login-screen #login-form>.primary{min-height:48px;margin-top:4px}
.login-screen .login-footer{padding:10px 20px max(12px,env(safe-area-inset-bottom))}
@media(max-height:740px){
  .login-screen .login-mascot{width:96px;height:100px}
  .login-screen .login-intro h1{font-size:26px}
  .login-screen .login-intro{margin-bottom:10px}
  .login-screen .login-bottom{margin-top:8px}
  .login-screen .login-bottom small{margin-top:6px}
}
@media(max-height:580px){
  .login-screen .login-mascot{display:none}
  .login-screen .login-intro h1{font-size:24px}
}
.delete-linked-list{list-style:none;padding:12px 0;margin:16px 0;border-block:1px solid var(--line)}
.delete-linked-list li{display:flex;justify-content:space-between;padding:6px 0;gap:16px}
#contract-delete-form .form-hint{margin:12px 0;line-height:1.6}
.home-install-guide img{display:block;margin:0 auto 24px;border-radius:8px}
.home-install-guide p{line-height:1.6;margin:12px 0;word-break:keep-all}
.home-install-guide ol{padding-left:24px;line-height:1.7}
.home-install-guide li{margin:10px 0}
.customer-register-hint{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--muted);word-break:keep-all}
.customer-register-hint button{display:inline;padding:0;min-height:0;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;vertical-align:baseline}
.customer-register-hint button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.money-inline{display:inline-block;white-space:nowrap;font:inherit;color:inherit}
.record-contracts{align-items:start}
.record-contracts .record-title{align-items:baseline}
.record-contracts .record-body,.record-contracts .record-right{align-self:start}
.record-contracts .record-title strong,.record-contracts .record-right>strong{line-height:1.5}
.record-right small{word-break:keep-all;overflow-wrap:normal}
.record-right>strong{white-space:nowrap}
.record-contracts>.record-chevron{align-self:center}

/* Contract entry and current ledger overview. */
.workspace>.topbar{grid-template-columns:minmax(0,1fr) auto}
.topbar>.brand{justify-self:start}
.menu-tiles button,.menu-tiles button span{font-family:Inter,Pretendard,sans-serif}
.home-layout .home-section.home-progress{order:2}
.home-layout .home-upcoming{order:3}
.home-layout .home-confirmed{order:4}
.home-layout .home-section.home-proposals{order:5}
.badge.contract-signed{background:#ffed30;color:#171819;border:0;border-radius:4px;font-weight:600}
.badge.contract-working{background:#bfe4ff;color:#103c60;border:0;border-radius:4px;font-weight:600}
.badge,.same-day-label{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;padding:4px 6px;min-height:24px;font-size:11px;font-weight:600;line-height:16px;border-radius:4px}
.bundle-overview.multi-day{display:grid;gap:2px}
.record-title{display:flex;flex-wrap:nowrap;align-items:start;gap:6px}
.record-title>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.record-title>.badge{margin-top:0}
.home-layout .home-upcoming .record.record-schedules,.home-layout .home-upcoming .schedule-bundle{border-width:2px}
.home-confirmed .record-title{margin-bottom:3px}
.home-confirmed .record-sub,.home-confirmed .record-right small{line-height:1.35}
.home-confirmed .record-right small{margin-top:3px}
.menu-tiles button,.menu-tiles button span{font-size:18px;font-weight:600}
.menu-tiles button span{white-space:nowrap}
@media(max-width:480px){.menu-tiles button{flex-direction:column;justify-content:center;gap:4px;padding:12px;text-align:center}.menu-tiles img{width:44px;height:44px}}
.partner-picker{border-radius:8px;background:var(--surface-2);padding:12px;min-width:0;margin-bottom:24px}
.partner-picker>summary{display:flex;align-items:center;gap:10px;min-height:32px;cursor:pointer;list-style:none}
.partner-picker>summary span{margin-left:auto;color:var(--muted)}
.partner-picker>summary svg{width:18px;height:18px}
.partner-picker[open] .partner-choices{margin-top:16px}
.modal-content>.partner-payments{margin:20px 0 0;padding:20px;background:var(--surface-2);border:0;border-radius:8px}
.partner-payment-row{padding:16px 0;border-bottom:1px solid var(--line)}
.partner-payment-row:last-child{border:0}
.partner-payment-row>strong{display:block;overflow-wrap:anywhere}
.partner-payment-row dl{margin:12px 0}
.partner-payment-row dl>div{display:flex;justify-content:space-between;gap:12px;margin:5px 0}
.partner-payment-row dd{margin:0;white-space:nowrap}
.partner-payment-row dt{color:var(--muted);font-size:13px}
.partner-payment-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between}
.range-picker{margin:0 0 24px;border-radius:8px;background:var(--surface-2);padding:12px}
.range-picker summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;cursor:pointer;font-size:14px;font-weight:600;list-style:none}
.range-picker summary svg{width:18px;height:18px}
.range-summary{font-size:12px;color:var(--muted);font-weight:400}
.range-toolbar,.range-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.range-weekdays,.range-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:2px}
.range-weekdays{font-size:12px;color:var(--muted);padding:8px 0}
.range-day{height:36px;min-width:0;padding:0;border-radius:4px;font-size:14px}
.range-day.other{color:var(--muted)}
.range-day.in-range{background:var(--gold-bg);color:var(--gold-text)}
.range-day.endpoint{background:var(--primary);color:var(--on-primary);font-weight:700}
.range-footer{font-size:13px}.range-footer button{text-decoration:underline;min-height:36px}
.customer-caption{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap;margin-bottom:8px;font-size:14px;font-weight:600}
.customer-caption>span:last-child{font-size:12px;font-weight:400;color:var(--muted)}
.customer-caption button{padding:4px 0;font:inherit;font-weight:600;text-decoration:underline;color:var(--ink)}
.partner-choices{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.partner-choices legend{font-size:14px;font-weight:600;margin-bottom:10px}
.partner-choices .check-row{margin:0;padding:10px;background:var(--surface-2);border-radius:8px;overflow-wrap:anywhere}
.field-grid[hidden]{display:none}
.payment-remainder{background:var(--surface-2);padding:12px;border-radius:8px;font-weight:600}
.form-section .expense-payment-hint{margin:4px 0 0!important;line-height:1.3;font-size:12px}
.expense-confirmation{white-space:nowrap}
.expense-confirmation-note{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4;word-break:keep-all}
.form-section label:has(+.expense-payment-hint:not([hidden])){margin-bottom:0}
.finance-overview-totals{display:grid;gap:10px;margin:20px 0}
.finance-overview-totals>div{padding:16px;background:var(--surface);border-radius:8px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.finance-overview-totals dt{color:var(--muted)}
.finance-overview-totals dd{margin:0;font-size:20px;font-weight:700;white-space:nowrap}
.finance-overview-section{margin-top:24px}
.finance-overview-section.overview-receipts{--overview-color:#247951;--overview-bg:#edf8f1}
.finance-overview-section.overview-expenses{--overview-color:#a84d47;--overview-bg:#fff1ef}
.finance-overview-section.overview-unpaid{--overview-color:#386daa;--overview-bg:#edf4ff}
.finance-overview-section[class*="overview-"]{background:var(--surface);border-top:2px solid var(--line);padding:16px;border-radius:8px}
.finance-overview-section[class*="overview-"]>.section-head{gap:8px;flex-wrap:wrap}
.finance-overview-section[class*="overview-"]>.section-head h2{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;color:var(--overview-color);font-size:20px}
.overview-total{font-family:Inter,Pretendard,sans-serif;font-size:16px;white-space:nowrap;font-weight:700}
[data-theme="dark"] .overview-receipts{--overview-color:#79d6a1!important;--overview-bg:#192c23!important}
[data-theme="dark"] .overview-expenses{--overview-color:#f0a09a!important;--overview-bg:#322221!important}
[data-theme="dark"] .overview-unpaid{--overview-color:#95bfee!important;--overview-bg:#1c293a!important}
.finance-overview-section .record-right{min-width:0}
.finance-overview-section .record{grid-template-columns:minmax(0,1fr) auto 16px}
.finance-overview-section .record:has(.tile){grid-template-columns:36px minmax(0,1fr) 16px}
.finance-overview-section .record:has(.tile) .record-right{grid-column:2}
.finance-overview-section .record:has(.tile)>svg:last-child{grid-column:3;grid-row:1 / span 2}
.finance-overview-section .record:not(:has(.tile)){grid-template-columns:minmax(0,1fr) 16px}
.finance-overview-section .record:not(:has(.tile)) .record-body{grid-column:1;grid-row:1}
.finance-overview-section .record:not(:has(.tile)) .record-right{grid-column:1;grid-row:2;text-align:left}
.finance-overview-section .record:not(:has(.tile))>svg:last-child{grid-column:2}
.segment[aria-label="금전 내역"]{grid-template-columns:repeat(5,minmax(0,1fr))}
.segment[aria-label="금전 내역"] button{font-size:13px;padding-inline:2px;white-space:nowrap}
.home-cycle-sales .cycle-sales-amount.long-amount{font-size:22px;white-space:nowrap}
@media(max-width:360px){.partner-choices{grid-template-columns:minmax(0,1fr)}.finance-overview-section .record-right>strong{font-size:14px}}
.finance-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px}
.finance-range input{box-sizing:border-box;width:100%;min-width:0;padding-inline:6px;font-size:14px}
.overview-more summary{cursor:pointer;color:var(--ink);font-weight:600;padding:10px 0}
.page-head h1,.modal-head h2,.section-head h2,.form-section h3{font-weight:700}
.page-head h1{font-size:26px}
.form-section h3,.menu-group h2{border-bottom:2px solid var(--line);padding-bottom:10px}

