/* Shared dark green theme for the planner and account pages. */
:root{color-scheme:dark;--bg:#101c19;--surface:#1b2c26;--surface-soft:#22372e;--line:#385045;--text:#e4eee6;--muted:#a9beb0;--accent:#c4dc94;background:var(--bg);color:var(--text)}
body{background:var(--bg);color:var(--text);line-height:1.5}
header{background:#142b23;border-bottom:1px solid var(--line)}
header small{color:#a8c5b2}h1,h2,h3,h4{line-height:1.25;overflow-wrap:anywhere}
main,.phase-content,.two>*{min-width:0}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.card,main>section,dialog{background:var(--surface);color:var(--text);border:1px solid var(--line)}
button,.linkbutton{background:#273d32;color:var(--text);border-color:#46624f;transition:background .15s,border-color .15s}
button:hover,.linkbutton:hover{background:#324d3c;border-color:#829c6d}
button.primary,main>section button:not(.secondary){background:var(--accent);color:#162519}
button.secondary{background:#273d32;color:var(--text)}
button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
nav button.active,.support-nav button.active,.phase-menu button.active{background:#3e5c43;color:#f2f8ed;border-color:#9bbd77}
label{color:#c1d3c6}input,select,textarea{background:#14241d;color:var(--text);border-color:#49614e}input::placeholder,textarea::placeholder{color:#8da695}
.muted,.reorder-tip,.phase-heading-num,.cost-empty,footer{color:var(--muted)}
.badge{background:#354d36;color:#dbeaca}.warn,.message{background:#4d4125;color:#f3ddb0}
.phase-sidebar,.planning-box,.guide-search,.support-section,.support-summary,.cost-summary .cost-box,.detail-savebar{background:var(--surface-soft);border-color:var(--line)}
.planning-summary,.dependency-list,.firm-checks{background:#182a22;border-color:var(--line)}
.guide-card{background:#192c24;border-color:var(--line)}.guide-card.favorite{border-color:#91b663}.guide-cover{aspect-ratio:16/9;height:auto;isolation:isolate;background:#101f19;overflow:hidden}.guide-cover>span{position:absolute;z-index:1;inset:0;display:grid;place-items:center;text-shadow:0 2px 12px #000;font-size:40px;pointer-events:none}.guide-cover img{display:block;aspect-ratio:16/9;object-fit:cover}.guide-cover b{z-index:2;background:#172a22e8}.guide-own{border-color:#668256}.guide-auto{margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#192b23}.guide-auto p{margin:8px 0 0}.guide-auto button{font-size:13px}.guide-card .guide-body h4{font-size:17px}
.legacy-cost,.cost-table-wrap,.support-section,.detail-heading,.guide-section,.cost-section{border-color:var(--line)}
.cost-table th{background:#263d30;color:#dce9df}.cost-grand,.phase-overview{background:#183d2d}.overview-bottom{border-color:#486a52}
td,th,.task{border-color:var(--line)}.notice{background:#403921;color:#f1e4b8}.notice.danger{background:#462c27;color:#f4d0c8}.notice.soon{background:#2e3e28;color:#dcebc9}.payment-due{color:#f6ae9b}.phase-menu-row .move-controls button{background:#273d32;color:var(--text)}
.app-actions{justify-content:flex-end}.app-actions>span{width:100%;text-align:right;color:#bad0be;font-size:13px}.phase-menu-row .grab{color:#9ab392}summary{cursor:pointer}dialog::backdrop{background:#081510cc}progress{accent-color:#9abd74}
@media(max-width:1000px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.phase-layout{gap:14px}.phase-sidebar{padding:14px}.phase-menu{scroll-snap-type:x proximity}.phase-menu-row{flex:0 0 230px;scroll-snap-align:start}.phase-menu-row .grab{display:none}.phase-menu-row .move-controls button{min-height:36px;min-width:32px}.phase-content{padding:20px}}
@media(max-width:650px){:root{font-size:16px}header{padding:22px 18px}h1{font-size:27px}header>.row{gap:20px}header>.row>div{width:100%}.app-actions{justify-content:flex-start;gap:8px}.app-actions>span{text-align:left}.app-actions button{font-size:13px;min-height:44px;padding:10px 12px}nav{flex-wrap:nowrap;overflow-x:auto;padding:14px 16px;gap:8px;scrollbar-width:thin}nav button{flex:0 0 auto;min-height:44px}main{padding:0 12px 36px}.grid,.two,.guide-grid{grid-template-columns:minmax(0,1fr)}.card{padding:18px}.phase-content{padding:16px}.detail-heading h2{font-size:25px}.row{gap:10px}.note-controls label{min-width:0;flex-basis:100%}input,select,textarea{font-size:16px;max-width:100%}button,.linkbutton{min-height:44px}.task input,.firm-checks input,.dependency-list input{min-width:22px;width:22px;height:22px}.task button{min-width:44px;flex-shrink:0}.task span{overflow-wrap:anywhere}.detail-savebar{bottom:8px;padding:12px;box-shadow:0 6px 24px #08151080}.detail-savebar .primary{width:100%}.cost-summary,.overview-grid{grid-template-columns:minmax(0,1fr)}.guide-cover{aspect-ratio:16/9}.guide-body{padding:16px}.guide-actions>*{flex:1 1 auto;text-align:center}.guide-auto .between{align-items:flex-start}dialog{width:calc(100% - 20px);padding:18px;max-height:90dvh}.phase-overview{padding:18px}.support-section{padding:12px}.support-actions{gap:8px}.support-actions button{flex:1}.comparison table{min-width:600px}.cost-table-wrap{overflow:visible;border:0}.cost-table{min-width:0;font-size:15px;display:block}.cost-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cost-table tbody{display:grid;gap:14px}.cost-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#182a22;border:1px solid var(--line);border-radius:12px;padding:14px}.cost-table td{display:block;padding:0;border:0;min-width:0}.cost-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.cost-table td:first-child{grid-column:1/-1}.cost-table td:last-child{align-self:end}.cost-table .item-name,.cost-table .item-note{min-width:0}.cost-table .number,.cost-table .unit,.cost-table .status,.cost-table .delivery,.cost-table .orderlead{width:100%;font-size:16px;min-height:44px}.cost-table .cost-total{padding-top:0;white-space:normal}.cost-table .delete-row{width:100%;min-height:44px}.notice-controls{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Softer palette: porcelain, sage, blue-gray and a warm brass accent. */
:root{color-scheme:light;--bg:#e0e3da;--surface:#faf8f2;--surface-soft:#edf0e7;--line:#cbd2c5;--text:#29382f;--muted:#657366;--accent:#e5c27e}
body{background:linear-gradient(180deg,#e4e7df,#dce1d6);color:var(--text)}
header{background:#183b30;border-color:#3c5c4b;color:#f5f5e8}header small,.app-actions>span{color:#c7d4bb}
header button{background:#284b3c;color:#f5f5e8;border-color:#5a7460}header button:hover{background:#365e46}
.card,main>section,dialog{box-shadow:0 5px 18px #233a2410}
button,.linkbutton{background:#edf1e6;color:#2a4233;border-color:#bdcbb5}button:hover,.linkbutton:hover{background:#e1e9d8;border-color:#809c6e}
button.primary,main>section button:not(.secondary){background:#e5c27e;color:#392f1c;border:1px solid #c9a45e}
button.secondary{background:#edf1e6;color:#2a4233}
nav button.active,.support-nav button.active,.phase-menu button.active{background:#315840;color:#fffbea;border-color:#6b885d}
label{color:#4f6154}input,select,textarea{background:#fffef9;color:#29382f;border-color:#c3cdbd}input::placeholder,textarea::placeholder{color:#81917d}
.phase-sidebar{background:#d5dfcb;border-color:#becbb4}.phase-menu-row .move-controls button{background:#eaf0e1;color:#40583d}.phase-menu-row .grab{color:#718465}
.phase-menu button.active .muted{color:#d1dfc5}.phase-menu .num{border-color:#a5b59a}.phase-menu button.active .num{border-color:#a3bd86}
.phase-overview,.cost-grand{background:#244b3c;color:#fffbed}.phase-overview .muted{color:#d1dfcc}.overview-bottom{border-color:#63806a}.phase-overview .badge{background:#48694b;color:#f2eed2}.phase-overview button{background:#d9e5ca;color:#263b2b}
.planning-box{background:#f2eee4;border-color:#d7cebd}.planning-summary{background:#fffaf0}.dependency-list,.firm-checks{background:#fffdf6;border-color:#cbcdbd}
.guide-search{background:#e3ecee;border-color:#c3d2d6}.guide-auto{background:#eaf0f1;border-color:#c5d5d7}.guide-card{background:#fffdf7;border-color:#cdd4c4}.guide-card.favorite{border-color:#9bae65;box-shadow:0 0 0 1px #b7c38755}.guide-cover{background:#d6ddd3}.guide-cover b{color:#fff;background:#234936ed}
.cost-summary .cost-box:nth-child(1){background:#eee4c9}.cost-summary .cost-box:nth-child(2){background:#dce7eb}.cost-summary .cost-box:nth-child(3){background:#edddd0}
.cost-table th{background:#e3e9dc;color:#44553d}.cost-table tr{background:transparent}.cost-table-wrap{border-color:#cbd3c0}.legacy-cost{background:#f4eee3;border-color:#d7cfbf}
.detail-savebar{background:#e7eddc;border-color:#bfcfb0;box-shadow:0 5px 20px #2b40231a}.support-section,.support-summary{background:#eef0e6;border-color:#ced6c1}
.badge{background:#e4e9d0;color:#516333}.warn,.message{background:#f5e8c7;color:#765820}.notice{background:#f8efda;color:#725c2e}.notice.danger{background:#f5e1d9;color:#854334}.notice.soon{background:#e9efdc;color:#526338}.payment-due{color:#a55a45}.guide-own{border-color:#bac7a3}footer{color:#62715f}
@media(max-width:650px){.cost-table tr{background:#fffdf7;border-color:#cbd3c0}.detail-savebar{box-shadow:0 5px 20px #2b40232b}}

.delete-action{color:#9b332b!important;border-color:#d9aaa4!important;background:#fff3f0!important}.delete-action:hover{background:#ffe2dc!important}.delete-action:disabled{opacity:.5;cursor:not-allowed}
.overview-title{margin-bottom:20px}.overview-title h3{margin:0;color:inherit}.overview-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin-top:22px}.overview-section{min-width:0;border-top:1px solid #63806a;padding:18px 0}.overview-section h4{color:#e4dfb7;margin:0 0 12px;font-size:16px}.overview-wide{grid-column:1/-1}.overview-fields{margin:0;display:grid;gap:10px}.overview-fields>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1.5fr);gap:12px}.overview-fields dt,.overview-empty{color:#d1dfcc;font-size:13px}.overview-fields dd{margin:0;overflow-wrap:anywhere}.overview-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:8px 0}.overview-list{list-style:none;padding:0;margin:0}.overview-list li{padding:10px 0;border-bottom:1px solid #ffffff26;overflow-wrap:anywhere;line-height:1.6}.overview-list li:last-child{border-bottom:0}.overview-list button{margin-top:8px}.overview-done{opacity:.75}.overview-warning{padding:12px;border-radius:8px;background:#f3ddb5;color:#493521}.phase-overview small{display:block;margin-top:8px;line-height:1.6}@media(max-width:650px){.overview-sections{grid-template-columns:minmax(0,1fr)}.overview-fields>div{grid-template-columns:minmax(0,1fr);gap:3px}.overview-title{align-items:flex-start}}
.task-filters{display:flex;flex-wrap:wrap;gap:16px}.task-filters label{flex:1;min-width:150px}.dashboard-task{display:flex;align-items:center;gap:14px;padding:16px 0;border-top:1px solid var(--line,#dce2d6)}.dashboard-task>input{width:22px;min-width:22px;height:22px}.dashboard-task-main{flex:1;min-width:0;overflow-wrap:anywhere}.task-meta{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:8px;font-size:13px}.task-signal{display:inline-flex;align-items:center;gap:6px;border-radius:16px;padding:4px 9px;font-size:12px;line-height:1.4;background:#ecf1ec;color:#405448}.task-signal-red{background:#fbe0db;color:#8d2d25}.task-signal-yellow{background:#faedbf;color:#735515}.task-signal-green{background:#dcebd4;color:#315a35}.task-signal-gray{background:#e7ebeb;color:#53616a}.task-inline-meta{display:block;margin-top:6px;font-size:12px}.phase-overview .task-meta{color:#f1f2e6}@media(max-width:650px){.dashboard-task{flex-wrap:wrap;align-items:flex-start}.dashboard-task>button{margin-left:36px}.task-filters label{min-width:0;flex-basis:100%}#tasks .task{flex-wrap:wrap}#tasks .task>span{min-width:calc(100% - 50px)}#tasks .task>button{margin-left:28px}}
.budget-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}.budget-breakdown{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.budget-breakdown>div{display:grid;gap:8px;padding:12px;border-radius:10px;background:#f2f4ec}.budget-breakdown small{color:var(--muted,#657366)}.budget-table-wrap{overflow-x:auto}.budget-table{min-width:1050px}.budget-table th{font-size:12px;background:#eef3e7;white-space:nowrap}.budget-table td{vertical-align:top;font-size:13px}.budget-note{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:250px;margin-top:6px}.phase-overview .budget-table th{background:#365e48;color:#eef1dd}.phase-overview .budget-table .muted{color:#d1dfcc}#budget-print{display:none}@media(max-width:650px){.budget-filters{grid-template-columns:1fr 1fr}.budget-breakdown{grid-template-columns:1fr}.budget-table{min-width:0;display:block}.budget-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.budget-table tbody{display:grid;gap:14px}.budget-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid var(--line,#dce2d6);border-radius:12px}.budget-table td{display:block;padding:0;border:0;min-width:0}.budget-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted,#657366);margin-bottom:4px}.budget-table td:first-child{grid-column:1/-1}.budget-note{max-width:none}}@media print{@page{size:A4 landscape;margin:12mm}body{background:white!important;color:#111!important;font:10pt system-ui!important}body>*{display:none!important}body>#budget-print{display:block!important}#budget-print h1{font-size:20pt;margin:0 0 12px}#budget-print table{display:table!important;min-width:0;width:100%;font-size:9pt}#budget-print thead{display:table-header-group!important;position:static!important;clip-path:none!important;width:auto;height:auto;overflow:visible}#budget-print tbody{display:table-row-group!important}#budget-print tr{display:table-row!important;break-inside:avoid}#budget-print td,#budget-print th{display:table-cell!important;padding:7px 5px;border-bottom:1px solid #ccc;font-size:9pt}#budget-print td::before{display:none}#budget-print .budget-table-wrap{overflow:visible}#budget-print .muted{color:#444!important}#budget-print .badge{background:#eee!important;color:#111!important}#budget-print .budget-note{max-width:200px}}
.quote-estimate{min-width:220px;margin:0}.quote-table-wrap{overflow-x:auto}.quote-table{min-width:1000px}.quote-table th{background:#eef3e7;font-size:12px}.quote-table td{vertical-align:top;font-size:13px}.quote-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.quote-selected{background:#edf5e4}.quote-rejected{opacity:.65}.quote-lowest{display:inline-block;margin-top:8px;background:#dcebd4;color:#315a35;border-radius:14px;padding:4px 8px;font-size:11px}.quote-difference{font-weight:600;white-space:nowrap}.quote-difference small{display:block;margin-top:4px}.quote-over{color:#a44333}.quote-under{color:#38684c}@media(max-width:650px){.quote-estimate{min-width:0;width:100%}.quote-table{display:block;min-width:0}.quote-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.quote-table tbody{display:grid;gap:16px}.quote-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;border:1px solid var(--line,#dce2d6);border-radius:12px;padding:16px}.quote-table td{display:block;padding:0;border:0;min-width:0}.quote-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted,#657366);margin-bottom:5px}.quote-table td:first-child,.quote-table td:nth-child(4),.quote-table td:nth-child(5),.quote-table td:nth-child(6){grid-column:1/-1}}
/* Souhrn: zelený rám, hlavní čísla a přehledné čtecí bloky. */
.phase-overview{padding:24px;border:1px solid #315643;box-shadow:0 12px 26px #244b3c12}.overview-title{margin-bottom:20px;align-items:flex-start}.overview-kicker{margin:0 0 7px;font-size:11px;letter-spacing:.12em;font-weight:650;color:#d3dfc7}.overview-title h3{font-size:23px;line-height:1.3}.phase-overview .overview-grid{gap:12px}.phase-overview .overview-grid>div{background:#ffffff0c;border:1px solid #ffffff20;border-radius:12px;padding:16px}.phase-overview .overview-grid strong{font-size:24px;color:#fffbe9;line-height:1.3}.phase-overview .overview-grid small{font-size:12px;color:#d8e3d0}.overview-sections{gap:12px;margin-top:20px;align-items:start}.overview-section{background:#f8faf3;color:#263f32;border:1px solid #e2e8d8;border-top:0;border-left:4px solid #a8b89b;border-radius:11px;padding:17px;box-shadow:0 2px 5px #15291a0b}.overview-section h4{color:#304d39;font-size:15px;line-height:1.4;margin:0 0 13px;padding-bottom:10px;border-bottom:1px solid #dce4d3}.overview-planning{border-left-color:#83a3b2;background:#f0f5f5}.overview-costs{border-left-color:#c7ad6e;background:#fbf8ef}.overview-notes{border-left-color:#a7b88b;background:#f5f8ee}.overview-tasks{border-left-color:#83a88c;background:#eff6ed}.overview-records{border-left-color:#a0b1b5;background:#f3f6f6}.overview-fields>div{gap:10px;line-height:1.5;padding-bottom:7px;border-bottom:1px solid #dce6e3}.overview-fields>div:last-child{border:0;padding-bottom:0}.overview-fields dt,.overview-section .overview-empty,.overview-section .muted{color:#697c6b!important}.overview-fields dd{font-weight:500}.overview-text{font-size:14px;line-height:1.65}.overview-list li{font-size:14px;border-bottom-color:#dee5d7;padding:10px 0}.overview-list li:first-child{padding-top:0}.overview-section .badge{background:#e2ead8;color:#3d5c40}.overview-section .task-meta{color:#536d59}.phase-overview .overview-section small{color:#697c6b;margin-top:5px}.overview-wide>button{margin:0}.overview-section a{color:#315c53}.phase-overview .overview-section button{background:#edf2e4;border-color:#cad7c0;color:#355539}.overview-section .overview-warning{font-size:13px}.overview-done{opacity:.8}@media(max-width:900px){.phase-overview .overview-grid strong{font-size:21px}}@media(max-width:650px){.phase-overview{padding:16px}.overview-title h3{font-size:21px}.phase-overview .overview-grid{grid-template-columns:1fr}.phase-overview .overview-grid>div{padding:13px 15px}.overview-section{padding:15px}.overview-sections{gap:10px}.overview-fields>div{gap:2px}.overview-fields dd{font-size:14px}}
