:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:#233143;background:#f6f7f8;font-synthesis:none;-webkit-font-smoothing:antialiased;--ink:#203143;--sub:#6f7a86;--muted:#98a3af;--line:#e7eaed;--white:#fff;--accent:#1c655c;--accent-dark:#155046;--focus:#b7dbd3}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-size:15px;line-height:1.55}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(23px,2.6vw,34px);line-height:1.22;letter-spacing:-.035em;color:#1b2a3a;font-weight:740;margin-bottom:9px}
h2{font-size:18px;letter-spacing:-.017em;font-weight:730;margin-bottom:0}
h3{font-size:16px;line-height:1.3;letter-spacing:-.01em;margin-bottom:16px}
p{margin-bottom:12px}
.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}
.sidebar{background:#fff;border-right:1px solid #e8eced;padding:29px 17px 22px;display:flex;flex-direction:column;gap:10px;position:sticky;top:0;height:100vh;min-width:0}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);width:max-content;margin-left:9px;text-decoration:none!important}
.brand-mark{display:grid;place-items:center;background:#203143;color:#b8f1dc;border-radius:10px;width:43px;height:43px;flex-shrink:0}
.brand-mark svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.brand-text{display:flex;flex-direction:column;line-height:1.05;letter-spacing:.045em;font-size:15px}
.brand-text strong{font-weight:850}.brand-text small{font-size:10px;color:#56756d;letter-spacing:.29em;padding-top:5px;font-weight:750}
.sidebar-caption{font-size:12px;color:#8e9ba6;letter-spacing:.02em;margin:24px 10px 6px}
.side-nav{display:flex;flex-direction:column;gap:5px}
.side-nav a{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:9px;color:#63707f;font-weight:600;transition:background .15s;white-space:nowrap}
.side-nav a:hover{background:#f3f6f6;text-decoration:none;color:var(--ink)}
.side-nav a.active{background:#eaf3f1;color:#1a6158}
.nav-symbol{font-family:system-ui,sans-serif;font-size:20px;width:22px;line-height:1;text-align:center;font-weight:500}
.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 10px 0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.identity{display:flex;gap:10px;align-items:center;max-width:100%;margin-bottom:4px}.identity>div{display:flex;flex-direction:column;overflow:hidden}.identity strong{font-size:14px}.identity small{font-size:11px;line-height:1.4;color:var(--sub)}
.avatar{width:33px;height:33px;background:#e9ecf1;color:var(--ink);display:grid;place-items:center;border-radius:50%;font-weight:800;flex-shrink:0}
.account-link,.text-button{font-size:13px;color:#657281;background:none;border:0;padding:2px 0;text-align:left}
.main-column{min-width:0;display:flex;flex-direction:column}
.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4.4vw,64px);gap:16px}
.topbar-title{font-size:14px;font-weight:700;letter-spacing:-.01em;color:#677483}
.top-actions{display:flex;align-items:center;gap:22px}.header-name{color:#485665;font-weight:600;font-size:13px}
.locale-picker{display:flex;gap:2px;background:#f2f5f5;border-radius:8px;padding:4px}
.locale-picker a{padding:4px 8px;color:#819099;font-size:11px;font-weight:850;letter-spacing:.02em;border-radius:6px;text-decoration:none}
.locale-picker a.selected{background:#fff;color:var(--ink);box-shadow:0 1px 3px #1018200f}
.content{width:100%;max-width:1570px;padding:37px clamp(20px,4.4vw,64px) 60px;margin:0 auto;flex:1}
.app-footer{font-size:12px;color:#a3acb4;text-align:center;padding:12px 20px 24px}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading>div>p{color:var(--sub);font-size:14px;margin:0;max-width:740px}.page-heading>.btn{flex-shrink:0;margin-top:2px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:11px 18px;font-weight:700;font-size:13px;border:1px solid transparent;line-height:1.35;gap:6px;min-height:42px;transition:background .15s,transform .15s;text-align:center}
.btn:hover{text-decoration:none}.btn:active{transform:translateY(1px)}.btn:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-dark);color:#fff}
.btn-secondary{color:#344657;border-color:#dce3e7;background:#fff}.btn-secondary:hover{background:#f8fafb}
.btn-quiet-danger{color:#ab5556;background:transparent;border-color:#ecd7d5}.btn-quiet-danger:hover{background:#fff5f4}
.btn-full{width:100%}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:35px}
.stat-card{background:#fff;border:1px solid #e9edef;border-radius:12px;padding:22px 25px 20px;min-height:143px;display:flex;flex-direction:column;align-items:flex-start}
.stat-card.featured{background:#e8f2ef;border-color:#e1eeea}
.stat-label{color:#657785;font-size:13px;font-weight:600;margin-bottom:13px}
.stat-card.featured .stat-label{color:#44776d}
.stat-card strong{font-size:clamp(21px,2.1vw,29px);font-weight:780;letter-spacing:-.03em;white-space:nowrap;color:#263746;line-height:1.2}
.stat-card.featured strong{color:#154e45}.stat-sub{font-size:12px;color:#8d98a4;margin-top:8px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 15px}.section-heading a{font-size:13px;font-weight:700}
.table-wrap{overflow-x:auto;max-width:100%;background:#fff;border:1px solid #e7ebee;border-radius:11px}
.data-table{border-collapse:collapse;width:100%;font-size:13px}.data-table thead{background:#fbfcfc}
.data-table th{text-align:left;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#81909d;padding:16px 19px;border-bottom:1px solid var(--line);white-space:nowrap}
.data-table td{padding:17px 19px;border-bottom:1px solid #f0f2f3;vertical-align:middle;color:#4a5969}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfdfc}
.project-name{font-weight:710;color:#293e51;white-space:nowrap}.nowrap{white-space:nowrap}.num{font-variant-numeric:tabular-nums}.soft,.muted{color:#81909a!important}.small{font-size:12px}.align-right{text-align:right!important}.arrow-link{font-size:20px;color:#79908b}
.status{display:inline-flex;align-items:center;border-radius:6px;padding:5px 9px;font-size:11px;font-weight:750;white-space:nowrap}
.status-gray{background:#f0f2f4;color:#6d7b88}.status-amber{background:#fff5df;color:#a77524}.status-teal{background:#e6f4f0;color:#237162}.status-blue{background:#e9f0fc;color:#4676af}.status-done{background:#e4f1e9;color:#32805f}.status-alert{background:#fbebeb;color:#ad5757}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:190px;background:#fff;border:1px dashed #d5dce2;border-radius:12px;color:#8a9aa8;padding:30px}.empty-state p{margin-bottom:0}.empty-icon{font-size:37px;color:#b4c1c8;margin-bottom:11px}
.filter-row{display:flex;gap:12px;margin-bottom:20px;align-items:center;flex-wrap:wrap}.filter-row .search-input{flex:1;min-width:210px}.filter-row select{width:220px;max-width:100%}
.input{display:block;width:100%;color:#273847;background:#fff;border:1px solid #dbe1e5;border-radius:8px;padding:11px 12px;min-height:43px;transition:border-color .15s,box-shadow .15s}
.input::placeholder{color:#a5b0b8}.input:focus{border-color:#8cbaae;box-shadow:0 0 0 3px #8cbaae20;outline:none}
textarea.input{resize:vertical;line-height:1.65;min-height:96px}
.panel{background:#fff;border:1px solid #e8eced;border-radius:12px;padding:24px 27px;margin-bottom:20px;min-width:0}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.panel>h2{margin-bottom:20px}
.form-panel{max-width:1000px;padding:32px 35px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:19px;color:#3e4d5b;font-size:13px;font-weight:650}.field span em{font-style:normal;color:#c16e69}
.field:has(textarea){margin-top:2px}.form-actions{display:flex;justify-content:flex-start;align-items:center;margin-top:12px;gap:12px}.form-actions.two-actions{margin-top:18px}
.project-meta{display:flex;align-items:center;gap:14px;font-size:12px;color:#9aa5b0;margin:-8px 0 24px}.project-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(235px,.75fr);align-items:start;gap:20px}
.project-primary,.project-aside{min-width:0}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 19px}.detail-grid>div{min-width:0}.detail-grid small,.notes small{display:block;font-size:11px;color:#8794a0;margin-bottom:4px;font-weight:650}.detail-grid strong{font-size:13px;font-weight:710;overflow-wrap:anywhere}.notes{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.notes p{font-size:13px;color:#566473;margin:8px 0 0}.multiline{white-space:pre-wrap;overflow-wrap:anywhere}
.count{font-size:11px;background:#eff2f5;border-radius:100px;padding:2px 9px;color:#6e7b86;font-weight:750}
.file-list{display:flex;flex-direction:column;margin-bottom:8px}.file-row{display:flex;align-items:center;gap:12px;min-width:0;padding:11px 0;border-bottom:1px solid #f0f2f3;text-decoration:none!important}.file-row:last-child{border-bottom:0}.file-icon{display:grid;place-items:center;border-radius:7px;background:#edf4f2;width:36px;height:36px;flex-shrink:0;font-size:16px}.file-label{display:flex;flex-direction:column;flex:1;min-width:0;font-weight:700;font-size:12px;overflow-wrap:anywhere;color:#374a5b}.file-label small{font-weight:500;font-size:11px;margin-top:2px;color:#9aa4ad}.file-download{font-size:11px;white-space:nowrap;color:#67807d;font-weight:700}
.upload-form{margin-top:21px;padding-top:19px;border-top:1px solid var(--line)}.file-drop{display:flex;align-items:center;flex-direction:column;gap:4px;text-align:center;border:1px dashed #b9c8c9;border-radius:10px;background:#f9fbfa;padding:18px 16px;position:relative;cursor:pointer}.file-drop>span{font-size:13px;font-weight:750;color:var(--accent)}.file-drop>small{font-size:11px;color:#99a6ad}.file-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.helper{font-size:12px;color:#8c98a2;margin-top:10px;line-height:1.55}.pill-muted{padding:4px 9px;border-radius:7px;background:#f3f5f6;color:#87929e;font-size:12px;font-weight:750}
.price-list,.order-lines{display:flex;flex-direction:column}.price-list>div,.order-lines>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eef1f2;font-size:13px}.price-list>div:last-child,.order-lines>div:last-child{border:0}.price-list strong,.order-lines strong{font-variant-numeric:tabular-nums;color:#2f4050;white-space:nowrap}.price-list>div>span,.order-lines>div>span{color:#617080}.order-lines small{display:block;color:#a0aab4;margin-top:2px}.quote-message{background:#f8faf9;border-left:3px solid #a2cbbf;padding:12px 15px;color:#5f7380;font-size:13px}
.quote-form{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.price-field{display:grid;grid-template-columns:1fr 120px;align-items:center;gap:14px;padding:10px 0;font-size:13px;color:#536674;border-bottom:1px solid #f0f2f4}.price-field:last-of-type{margin-bottom:17px}.money-input{position:relative}.money-input>span{position:absolute;left:11px;top:10px;color:#8b9b9c}.money-input input{width:100%;border:1px solid #dce4e6;padding:9px 9px 9px 25px;border-radius:7px;min-height:40px;text-align:right;color:#263c4b}.money-input input:focus{outline:2px solid var(--focus)}
.form-divider{height:1px;background:#e9eded;margin:25px 0}.order-selector{display:flex;flex-direction:column}.selector-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #f0f2f3;cursor:pointer}.selector-check{width:54px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.selector-check input[type=checkbox]{accent-color:var(--accent);height:18px;width:18px}.selector-check .qty-input{width:65px;min-height:36px;padding:5px 7px;text-align:center}.selector-name{font-size:13px;font-weight:700;color:#485c69}.selector-name small{display:block;font-size:12px;color:#93a0a9;font-weight:500}.total-row{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f2f7f5;border-radius:9px;padding:17px 18px;margin-top:17px;font-weight:700;color:#53746c}.total-row strong{color:#18584d;font-size:21px;font-variant-numeric:tabular-nums;white-space:nowrap}.decline-form{margin-top:13px}
.timeline-panel{padding:26px 23px}.timeline-panel h2{margin-bottom:24px}.timeline{border-left:1px solid #e3e9e8;margin-left:5px;padding-left:18px}.timeline-item{position:relative;padding:0 0 25px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.timeline-item:last-child{padding-bottom:0}.timeline-dot{position:absolute;width:9px;height:9px;border:2px solid #fff;background:#72b4a4;border-radius:50%;left:-23px;top:6px;box-shadow:0 0 0 1px #a8d5c8}.timeline-item strong{font-size:12px;color:#4a5e6d}.timeline-item small{font-size:10px;color:#a1acb5}.timeline-item p{font-size:11px;color:#6b7a84;margin:5px 0 0}
.file-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.file-tile{display:flex;flex-direction:column;min-width:0;text-decoration:none!important;background:#fbfcfd;border:1px solid #edf0f2;border-radius:8px;overflow:hidden;padding-bottom:9px}.file-image{background:#e9eef0;aspect-ratio:4/3;overflow:hidden}.file-image img{width:100%;height:100%;object-fit:cover}.file-tile-name{padding:9px 9px 0;font-size:11px;color:#3d5363;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-tile small{padding:1px 9px 0;color:#9cabb5;font-size:10px}
.delivery-round{border-top:1px solid var(--line);margin-top:22px;padding-top:17px}.delivery-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.delivery-title strong{font-size:13px}.acceptance{background:#f8faf9;border:1px solid #e5eeea;padding:19px;border-radius:9px;margin-top:24px}.acceptance h3{margin:0 0 7px}.acceptance .remaining{display:flex;justify-content:space-between;margin:15px 0 17px;color:#73837c;font-size:12px}.acceptance .remaining strong{color:#226457;font-size:16px}.revision-form{margin-top:21px;border-top:1px solid #dfeae6;padding-top:19px}.notice-inline{color:#975b39;background:#fff8e9;border-radius:8px;padding:11px 13px;font-size:12px}.success-text{color:#23745c;font-size:13px;font-weight:750;margin:22px 0 0}
.history{margin-top:23px;border-top:1px solid var(--line);padding-top:15px;font-size:12px;color:#7b8b94}.history summary{cursor:pointer;font-weight:700}.history-row{padding:8px 0;border-bottom:1px solid #f1f3f5}
.wallet-form{max-width:980px}.wallet-form .three-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.money-positive{color:#247760!important;font-weight:750}.money-negative{color:#b36960!important;font-weight:750}
.account-layout{max-width:850px;display:grid;grid-template-columns:1fr 1.25fr;gap:20px}.account-layout .panel{margin-bottom:0}
.notice{background:#fff7e8;color:#80643d;border:1px solid #f2e0bb;border-radius:9px;padding:13px 17px;margin:0 0 21px;font-size:13px}.notice-error{background:#fff2f2;border-color:#f3d4d4;color:#9d4b4b}.notice-success{background:#edf8f3;border-color:#d5ecdf;color:#256c50}
.login-wrapper{min-height:100vh;background:#f7f8f8;display:flex;flex-direction:column}.login-top{height:90px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 clamp(22px,5vw,74px)}.login-wrapper>main{flex:1;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:20px}.login-wrapper .notice{max-width:450px;width:100%}.login-card{width:min(100%,450px);border:1px solid #e5eaed;background:#fff;border-radius:14px;padding:36px 42px 42px;box-shadow:0 12px 40px #263c4d0a}.login-card .login-symbol{display:grid;place-items:center;background:#e7f3ef;border-radius:11px;color:#22695c;font-size:24px;width:48px;height:48px;margin-bottom:22px}.login-card h1{font-size:26px;margin-bottom:7px}.login-card p{color:#91a0a9;font-size:13px;margin-bottom:29px}.login-card .field{margin-bottom:18px}.login-card .btn{margin-top:6px}
.install-body{padding:30px 15px;background:#f6f8f8}.install-card{max-width:800px;margin:0 auto;background:#fff;padding:34px;border:1px solid var(--line);border-radius:14px}.install-card>.brand{margin:0 0 26px}.install-card>p{color:var(--sub)}.install-card .form-grid{margin-top:15px}
@media(max-width:1150px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.content{padding-left:27px;padding-right:27px}.topbar{padding:0 27px}.project-grid{grid-template-columns:minmax(0,1.5fr) minmax(210px,.9fr)}.file-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;display:block;padding:15px 20px 12px}.sidebar>.brand{display:inline-flex;margin-left:0}.sidebar-caption,.sidebar-bottom{display:none}.side-nav{display:flex;flex-direction:row;gap:5px;overflow-x:auto;margin-top:15px;padding-bottom:2px}.side-nav a{font-size:12px;flex-shrink:0;padding:9px 12px}.side-nav a .nav-symbol{font-size:15px;width:16px}.topbar{height:55px}.content{padding-top:24px}.project-grid{grid-template-columns:1fr}.timeline-panel{padding:22px 25px}.stat-card{padding:20px 17px;min-height:123px}.stat-card strong{font-size:22px}.account-layout{grid-template-columns:1fr}}
@media(max-width:610px){.content{padding:23px 15px 40px}.topbar{padding:0 15px}.topbar-title{display:none}.top-actions{margin-left:auto}.header-name{font-size:12px}.page-heading{flex-direction:column;gap:14px;margin-bottom:21px}.page-heading .btn{width:100%}.stat-grid{grid-template-columns:1fr;gap:10px;margin-bottom:24px}.stat-card{min-height:0;padding:16px 19px}.stat-card strong{font-size:24px}.stat-label{margin-bottom:7px}.stat-sub{margin-top:4px}.panel{padding:19px 17px}.form-panel{padding:24px 18px}.form-grid,.wallet-form .three-fields{grid-template-columns:1fr;gap:0}.detail-grid{gap:15px}.file-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.price-field{grid-template-columns:minmax(0,1fr) 100px}.filter-row select{flex:1;width:auto}.filter-row button{flex:1}.login-top{height:75px}.login-card{padding:28px 23px}.data-table th,.data-table td{padding:13px}.file-download{font-size:0}.file-download:after{content:'↓';font-size:17px}.topbar .locale-picker a{padding:4px 7px}}

.transfer-check{display:flex;gap:12px;align-items:flex-start;cursor:pointer;margin:5px 0 19px;font-size:13px;font-weight:600;color:#465968}.transfer-check input{width:18px;height:18px;accent-color:var(--accent);margin-top:2px;flex-shrink:0}

/* Ledger: a complete, readable transaction history with immutable booking order. */
.ledger-table{min-width:850px}.ledger-table .ledger-prefix{font-size:13px;white-space:nowrap;color:#283e4c}.ledger-table .ledger-details{min-width:200px}.ledger-details strong,.ledger-details small,.ledger-posted{display:block}.ledger-details small,.ledger-posted{font-size:11px;font-weight:400;color:#8b99a5;margin-top:4px}.ledger-balance{font-weight:750;white-space:nowrap;color:#344e59}.ledger-order-help{margin-top:-3px;margin-bottom:14px}.ledger-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0;font-size:12px;color:#6f8190}.ledger-page-actions{display:flex;gap:9px;flex-wrap:wrap}.ledger-page-actions .btn{font-size:12px;padding:10px 14px}
@media(max-width:610px){.ledger-pagination{align-items:flex-start;flex-direction:column}}

/* Previous quotation versions are kept readable with full itemized pricing. */
.quote-versions{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.history-version{border:1px solid #e9eeee;background:#fcfdfd;border-radius:9px;padding:14px 17px}
.history-version-heading{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-bottom:7px;color:#71818b;font-size:12px}
.history-version-heading strong{font-size:13px;color:#354e5a}
.history-version-heading span:last-child{margin-left:auto;color:#496d62;font-weight:700}
.history-version .price-list>div{padding:8px 0;font-size:12px}
.history-note{color:#566b75;font-size:12px;margin:8px 0 11px}

/* Mobile login: avoid Safari's focus zoom for fields below 16px and respect keyboard space. */
@media (max-width: 850px) {
  input, textarea, select { font-size: 16px; }
  .money-input input, .input, .selector-check .qty-input { font-size: 16px; }
  .login-wrapper { min-height: 100vh; min-height: 100dvh; }
  .login-wrapper > main { padding: 18px 16px 30px; }
  .login-card { max-width: 450px; }
}
@media (max-width: 610px) {
  .login-top { min-height: 70px; height: auto; padding: 12px 16px; }
  .login-wrapper > main { justify-content: flex-start; padding: 24px 16px 36px; }
  .login-card { padding: 24px 21px 28px; }
  .login-card .login-symbol { margin-bottom: 15px; }
  .login-card p { margin-bottom: 20px; }
  .login-card .field { margin-bottom: 15px; }
  .login-card .input { min-height: 46px; }
  .login-wrapper .notice { max-width: 450px; }
}

/* v2.1: Keep account and logout accessible on mobile. */
@media (max-width: 850px) {
  .sidebar-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 16px;
    margin-top: 12px;
    padding: 12px 0 0;
  }
  .sidebar-bottom .identity { margin: 0 auto 0 0; }
  .sidebar-bottom .account-link,
  .sidebar-bottom .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
    padding: 9px 13px;
    border: 1px solid #dce3e7;
    border-radius: 8px;
    background: #fff;
    color: #344657;
    text-decoration: none;
    font-weight: 650;
  }
  .sidebar-bottom .text-button { color: #9b3c40; border-color: #ead7d7; }
  .sidebar-bottom form { margin: 0; }
  .sidebar-bottom .account-link:focus-visible,
  .sidebar-bottom .text-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
}
@media (max-width: 610px) {
  .sidebar-bottom { gap: 8px; }
  .sidebar-bottom .identity { flex-basis: 100%; }
  .sidebar-bottom .account-link,
  .sidebar-bottom form { flex: 1 1 0; }
  .sidebar-bottom .text-button { width: 100%; }
}

/* Project attachments and white-render batch download */
.file-download-group { margin: .7rem 0 1rem; }
.file-selection-actions { display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; justify-content:space-between; margin:0 0 .65rem; }
.file-selection-actions label {display:flex;align-items:center;gap:.4rem;cursor:pointer;font-size: .92rem;}
.selectable-file { position:relative; min-width:0; }
.file-list .selectable-file {display:flex;align-items:center;gap:.5rem;}
.file-list .selectable-file .file-row {flex:1;min-width:0;}
.file-gallery .selectable-file .file-checkbox {position:absolute;top:.5rem;left:.5rem;z-index:2;background:white;border-radius:6px;padding:6px;box-shadow:0 1px 8px #0003;}
.file-checkbox input, .file-selection-actions input {width:20px;height:20px;cursor:pointer;accent-color:#246e81;}
.drawing-container {margin:1rem 0;}
.drawing-container[hidden] {display:none!important;}
.drawing-stage,.annotation-view {position:relative;display:inline-block;max-width:100%;line-height:0;}
.drawing-stage img,.annotation-view img {display:block;max-width:100%;max-height:540px;width:auto;height:auto;}
.drawing-stage canvas,.annotation-view canvas {position:absolute;inset:0;width:100%;height:100%;}
.drawing-stage canvas {touch-action:none;cursor:crosshair;}
.annotation-view canvas {pointer-events:none;}
.message-entry {border-top:1px solid #ddd;padding:1rem 0;}
.message-head {display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;}
.message-head time {font-size:.84rem;opacity:.65;}
@media(max-width:610px){.file-selection-actions{align-items:stretch}.file-selection-actions .btn{width:100%}.drawing-stage img{max-height:65vh}}
