:root{--ink:#21342f;--muted:#73817a;--line:#e4e9e4;--paper:#f5f7f3;--green:#416e5a;--soft:#e8f0e9;--white:#fff;--amber:#997039;--red:#a14e49}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px 'Roboto',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.shell{min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1380px)/2),28px);position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:14px}.logo{font:700 22px Roboto;letter-spacing:.18em}.brand span{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:14px}.account{display:flex;align-items:center;gap:14px;font-size:13px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--green);font-weight:700}.layout{max-width:1380px;margin:auto;display:grid;grid-template-columns:240px 1fr;gap:38px;padding:36px 28px}.side{position:sticky;top:112px;height:max-content}.side .project-switch{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:22px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#849089;font-weight:700}.project-switch strong{display:block;margin:9px 0 5px}.nav button{display:flex;width:100%;gap:12px;align-items:center;background:none;color:#69766f;text-align:left;padding:12px 14px;border-radius:9px;margin:3px 0}.nav button.active,.nav button:hover{background:#e8eee8;color:var(--ink)}.nav .icon{font-size:17px;width:20px}.main{min-width:0}.welcome{margin:2px 0 26px;display:flex;justify-content:space-between;align-items:end}.welcome h1{font:600 30px Roboto;margin:8px 0}.welcome p{color:var(--muted);margin:0}.button{border-radius:8px;background:var(--green);color:#fff;padding:11px 16px;font-weight:600}.button:hover{background:#315744}.button.light{background:#edf2ed;color:var(--ink)}.button.ghost{background:#fff;color:var(--green);border:1px solid var(--line)}.button.danger{background:#a14e49}.button.small{padding:8px 11px;font-size:13px}.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px;margin-bottom:18px}.card h2{font:600 18px Roboto;margin:0 0 16px}.card h3{font:600 15px Roboto;margin:0 0 6px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px}.metric b{display:block;font:600 25px Roboto;margin:9px 0 3px}.metric span{font-size:12px;color:var(--muted)}.stage{padding:14px 0;border-top:1px solid #e8e8e6;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center}.stage:first-of-type{border-top:0}.stage-num{width:32px;height:32px;background:var(--soft);display:grid;place-items:center;border-radius:50%;font-weight:600;color:var(--green)}.stage p{margin:4px 0 0;color:var(--muted);font-size:12px}.pill{display:inline-flex;padding:5px 9px;border-radius:99px;background:#eeeeec;color:#565957;font-size:calc(13px - 1pt);font-weight:600}.pill.green{background:#606060;color:#fff}.pill.amber{background:#f6efdf;color:#967239}.pill.red{background:#eeeeec;color:#565957}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow:auto}.tabs button{background:none;padding:10px 13px;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent}.tabs button.active{color:var(--green);border-color:var(--green);font-weight:600}.row{display:flex;align-items:center;gap:10px}.space{justify-content:space-between}.stack{display:grid;gap:12px}.field{display:grid;gap:6px;margin:12px 0}.field label{font-size:12px;font-weight:600;color:#59675f}.field input,.field textarea,.field select{border:1px solid #d7d7d4;border-radius:8px;padding:11px;background:#fff;width:100%;color:var(--ink)}.field textarea{min-height:90px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #c9ddcf;border-color:var(--green)}.help{font-size:12px;color:var(--muted)}.notice{padding:13px 15px;border-radius:9px;background:#f5f0e5;color:#806331;font-size:13px;line-height:1.5;margin:12px 0}.empty{border:1px dashed #d7d7d4;border-radius:10px;padding:28px;text-align:center;color:var(--muted)}.material{display:grid;grid-template-columns:72px 1fr auto;gap:15px;align-items:center;padding:14px 0;border-top:1px solid #e8e8e6}.thumb{width:72px;height:68px;background:#ededeb;border-radius:8px;display:grid;place-items:center;color:var(--green);font-size:25px;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.material p{margin:5px 0;color:var(--muted);font-size:12px}.comment{border-left:2px solid #d7d7d4;padding:5px 0 5px 13px;margin:13px 0}.comment small{color:var(--muted)}.comment p{margin:7px 0}.modal{position:fixed;inset:0;background:#22222280;z-index:10;display:grid;place-items:center;padding:20px}.modal-box{background:#fff;border-radius:14px;padding:25px;max-width:720px;width:100%;max-height:90vh;overflow:auto}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-art{background:linear-gradient(155deg,#324e42,#829482);color:#fff;padding:9vw;display:flex;flex-direction:column;justify-content:space-between}.login-art h1{font:500 44px Roboto;line-height:1.16;max-width:490px}.login-box{width:min(400px,85%);margin:auto}.login-box h2{font:600 27px Roboto;margin-bottom:6px}.toast{position:fixed;right:24px;bottom:24px;z-index:30;background:#292929;color:#fff;border-radius:9px;padding:13px 18px;box-shadow:0 8px 30px #0002}.file-view{max-width:100%;max-height:65vh}.round-label{color:var(--muted);font-size:12px}.error{color:#a14e49;font-size:13px}.survey-section{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.survey-section h3{margin-bottom:10px}.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;border-bottom:1px solid var(--line);padding:11px 9px;font-size:13px}.table th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
@media(max-width:850px){.layout{grid-template-columns:1fr;padding:20px}.side{position:static}.nav{display:flex;overflow:auto}.nav button{width:auto;white-space:nowrap}.project-switch{display:none}.welcome{align-items:start;gap:12px;flex-direction:column}.grid{grid-template-columns:1fr 1fr}.login{grid-template-columns:1fr}.login-art{display:none}.topbar{padding:0 18px}.brand span{display:none}}@media(max-width:520px){.grid{grid-template-columns:1fr}.stage{grid-template-columns:34px 1fr}.stage>.pill{grid-column:2}.material{grid-template-columns:56px 1fr}.thumb{width:56px;height:56px}.material>.row{grid-column:2}.inline-fields{grid-template-columns:1fr}}

.reply-details{margin:14px 0}.reply-details summary{cursor:pointer;color:var(--accent);font-weight:600;margin-bottom:10px}.reply-details[open]{padding:12px;background:var(--soft);border-radius:10px}.reply-details textarea{min-height:80px}

/* File preview annotations */
.preview-stage{position:relative;margin:14px auto 10px;overflow:hidden;background:#ededeb;border:1px solid var(--line);border-radius:8px}
.image-stage{width:max-content;max-width:100%;line-height:0}
.image-stage img{display:block;max-width:100%;max-height:68vh;width:auto;height:auto}
.pdf-stage{width:100%;height:min(68vh,760px);min-height:360px}
.pdf-stage iframe{display:block;width:100%;height:100%;border:0}
:root{--pin-red:#871c2b}
.pin-overlay{position:absolute;inset:0;pointer-events:none}
.pin-overlay.placing{pointer-events:auto;cursor:crosshair;background:#2929290a}
.pin-marker{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;box-shadow:0 2px 8px #0004}
.comment-pin{width:28px;height:28px;border-radius:50%;background:var(--pin-red);color:#fff;border:2px solid #fff;padding:0;font-size:13px;line-height:24px}
.product-pin{max-width:180px;border-radius:14px;background:#292929;color:#fff;border:2px solid #fff;padding:4px 9px;font-size:11px;white-space:nowrap}
.preview-controls{flex-wrap:wrap;margin-top:10px}
.preview-controls .field{margin:0;min-width:120px}

/* Readable comment threads with their file context */
.thread-list{display:grid;gap:18px}
.comment-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff}
.thread-preview{position:relative;margin:14px auto 4px;overflow:hidden;background:#ededeb;border:1px solid var(--line);border-radius:8px}
.thread-preview.image-stage{width:max-content;max-width:100%;line-height:0}
.thread-preview.image-stage img{display:block;max-width:100%;max-height:58vh;width:auto;height:auto}
.pdf-thread-preview{width:100%;height:min(55vh,620px);min-height:300px}
.pdf-thread-preview iframe{display:block;width:100%;height:100%;border:0}
.thread-pin{position:absolute;z-index:1;transform:translate(-50%,-50%);width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--pin-red);color:#fff;border:2px solid #fff;box-shadow:0 2px 8px #0005;font-size:13px}
.pin-caption{font-size:12px;color:var(--muted);text-align:center;margin:4px 0 12px}
.thread-messages{border-top:1px solid var(--line);margin-top:14px}
.thread-message{padding:10px 2px;border-bottom:1px solid #e8e8e6}
.thread-message:last-child{border-bottom:0}
.thread-message p{white-space:pre-wrap;margin:0 0 6px;line-height:1.5}
.thread-message small{display:block;color:var(--muted);margin-bottom:5px}
.thread-preview-file{margin:14px 0;padding:16px;background:#f1f1ef;border-radius:8px}

.package-choice-group{margin:18px 0;padding-top:12px;border-top:1px solid var(--line)}
.package-choice-group h3,.package-manifest h3{font:600 15px Roboto;margin:0 0 10px}
.package-choice{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;margin:7px 0;cursor:pointer}
.package-choice:hover{background:#eeeeec}
.package-choice input{margin-top:3px;accent-color:var(--green)}
.package-choice span{display:grid;gap:3px}
.package-choice small{font-size:12px;color:var(--muted)}
.package-choice.unavailable{background:#f7f7f5;color:#7d8780;cursor:not-allowed}
.package-manifest{max-height:60vh;overflow:auto}
.package-manifest ul{margin:6px 0 18px;padding-left:22px}
.package-manifest li{margin:5px 0}
.package-manifest pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f1ef;border-radius:8px;padding:12px;font-size:11px}
.package-manifest summary{cursor:pointer;color:var(--green);font-weight:600;margin:8px 0 12px}
.project-picker-label{display:block;margin:10px 0 5px;font-size:12px;font-weight:600;color:var(--muted)}.project-switch select{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 30px 10px 10px;background:#fff;color:var(--ink)}
@media(max-width:850px){.project-switch{display:block}}
.release-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.release-row .release-details{flex:1 1 280px;min-width:180px}.release-row .release-download{flex:0 0 auto;white-space:nowrap;text-decoration:none}.release-row>[data-release-action]{flex:0 0 auto}
@media(max-width:520px){.release-row{gap:10px}.release-row .release-details{flex-basis:calc(100% - 54px)}.release-row .release-download{margin-left:42px}}
.project-home{max-width:1240px;margin:0 auto;padding:54px 32px}.project-home-heading{margin-bottom:30px}.project-home-heading h1{font:600 34px Roboto;margin:8px 0}.project-home-heading p{color:var(--muted);margin:0}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.project-tile{min-height:230px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:16px;color:var(--ink);box-shadow:0 3px 12px #00000008;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.project-tile:hover,.project-tile:focus-visible{transform:translateY(-2px);border-color:#a9aaa7;box-shadow:0 10px 28px #00000012;outline:none}.project-tile-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--green);font-size:22px}.project-tile-package{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}.project-tile strong{font:600 21px Roboto}.project-tile-meta{color:var(--muted);font-size:13px}.project-tile-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;margin-top:auto;padding-top:15px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.project-tile-footer b{color:var(--green);white-space:nowrap}.empty-projects{max-width:620px}.project-home>#create-project-from-home{margin-top:24px}.back-to-projects{display:block;margin-top:12px;width:100%}
@media(max-width:650px){.project-home{padding:32px 20px}.project-home-heading h1{font-size:28px}.project-grid{grid-template-columns:1fr}.project-tile{min-height:205px}}
.survey-menu-status{margin-left:auto;font-size:10px;color:var(--muted);background:#eeeeec;border-radius:999px;padding:3px 7px;white-space:nowrap}

.welcome-list{display:block}.welcome-list>div:last-child{margin-top:16px;max-width:100%}.welcome-list>div:last-child>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.welcome-list .button{white-space:normal}

.client-note{display:grid;gap:4px;margin-top:10px;padding:9px 11px;border-left:3px solid var(--green);border-radius:0 7px 7px 0;background:#eeeeec;max-width:360px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.client-note b{font-size:10px;color:var(--green);text-transform:uppercase;letter-spacing:.05em}.client-note span{font-size:13px;color:var(--ink)}

.approval-history{padding:18px 0;border-bottom:1px solid var(--line)}.approval-history>p{margin:8px 0;color:#565957;line-height:1.55}.decision-comment,.decision-reply{display:grid;gap:6px;margin:12px 0;padding:14px 16px;border-radius:9px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.decision-comment{border:1px solid #dfb56d;background:#fff6e4;color:#493719}.decision-comment b{color:#815b1d}.decision-reply{border-left:4px solid var(--green);background:#eeeeec;color:var(--ink)}.decision-reply b{color:var(--green)}.approval-history+.button{margin:12px 0}

.material-version-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-top:1px solid #e8e8e6}.material-version-name{font-size:13px;font-weight:700;color:var(--green);overflow-wrap:anywhere}.material-version-row .help{font-size:11px}

.material-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:16px 0 22px}.gallery-photo{display:grid;align-content:start;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px}.gallery-photo>a{display:block;height:150px;background:#ededeb;border-radius:7px;overflow:hidden}.gallery-photo img{width:100%;height:100%;object-fit:cover}.gallery-photo>b{font-size:13px;overflow-wrap:anywhere}.gallery-photo .row{flex-wrap:wrap}

.approval-package{padding:12px 0;border-top:1px solid var(--line)}.approval-package h3{margin:0 0 8px;color:var(--ink)}.approval-material-option{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,250px);gap:12px;align-items:center;padding:7px 0}.approval-material-option label{overflow-wrap:anywhere}.approval-material-option select{padding:8px;border:1px solid #d7d7d4;border-radius:8px;background:#fff;color:var(--ink)}@media(max-width:650px){.approval-material-option{grid-template-columns:1fr}}
.syme-logo-link{display:inline-flex;align-items:center;width:max-content;max-width:180px}.syme-logo-link img{display:block;width:100%;max-height:52px;object-fit:contain}.login-art>.syme-logo-link{max-width:158px}.login-art>.syme-logo-link img{max-height:54px;filter:brightness(0) invert(1)}.login-tagline{margin:0}

/* SYME visual identity: charcoal, white and quiet neutral surfaces. */
:root{--ink:#252525;--muted:#777a78;--line:#dedfdd;--paper:#f5f5f3;--green:#292929;--soft:#eeeeec;--white:#fff;--amber:#8b7655;--red:#a14e49}
html,body,button,input,select,textarea{font-family:'Roboto',Arial,sans-serif;font-synthesis:none}
body{color:var(--ink);background:var(--paper)}
.topbar{background:#292929;border-bottom-color:#3b3b3b;color:#fff}
.brand span{color:#c5c5c5;border-left-color:#555}
.account{color:#f5f5f5}.account [style*="var(--muted)"]{color:#c5c5c5!important}
.avatar{background:#454545;color:#fff}
.nav button{color:#60635f}.nav button.active,.nav button:hover{background:#e8e8e6;color:#202020}
.button{background:#292929;color:#fff}.button:hover{background:#111}
.button.light{background:#ededeb;color:#292929}.button.ghost{background:#fff;color:#292929;border-color:#d7d7d4}
.login-art{background:linear-gradient(155deg,#242424,#555654);color:#fff;display:grid;grid-template-rows:auto 1fr auto;align-items:center;justify-items:start}
.login-art>.syme-logo-link img{filter:none}
.login-tagline{color:#eeeeec!important}
.login-art .login-title{align-self:center;margin:0;font:500 44px/1.16 'Roboto',Arial,sans-serif;letter-spacing:-.02em;max-width:520px}
.login-art .login-tagline{margin:0}
.notice{background:#f2efe9;color:#756448}
.project-tile:hover,.project-tile:focus-visible{border-color:#a9aaa7;box-shadow:0 10px 28px #00000012}
.project-tile-mark,.stage-num{background:#ededeb;color:#343434}
.pill.green{background:#606060;color:#fff}
:focus-visible{outline-color:#777}

.topbar .brand .syme-logo-link{max-width:162px}.topbar .brand>span{font-size:15px;font-weight:400}.active-project-name{font-size:18px}

.survey-client-note{background:#eeeeec;color:#565957}

.stage-reopen-button{display:block;margin-top:7px;padding:5px 9px;font-size:11px;line-height:1.2}
.survey-section .field textarea{height:120px;min-height:120px;resize:vertical}

/* Neutral gray focus and informational callouts */
.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #a6a6a3;border-color:#a6a6a3;box-shadow:0 0 0 1px #a6a6a3}
.notice{background:#eeeeec;color:#565957}
.notice .help{color:#666}
.notice a{color:#333}
.decision-comment{border-color:#d4d4d1;background:#eeeeec;color:#444}
.decision-comment b{color:#333}
.pill.amber{background:#ededeb;color:#5d5f5d}
.inline-fields{align-items:start}
.inline-fields>.field{align-self:stretch}
.field input[type=file]{padding:7px 9px;font-size:14px;line-height:1.35;min-height:40px}
.field input[type=file]::file-selector-button{font:400 14px Roboto,sans-serif;padding:5px 9px;margin-right:8px;border:0;border-radius:6px;background:#ededeb;color:#333;cursor:pointer}
.survey-section{padding-top:12px;margin-top:22px}
.survey-section h3{margin-bottom:7px}
.survey-section .field{gap:6px;margin:5px 0}
.survey-section .field label{line-height:1.3}
.survey-section .inline-fields{column-gap:16px;row-gap:2.2em}
.survey-section > .inline-fields > .field{margin:0}

.survey-section .field label{display:block;box-sizing:border-box}
.survey-section .field input,.survey-section .field select,.survey-section .field textarea{align-self:start}

.survey-section .field > .survey-options{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:6px}
.survey-section .survey-option{display:flex;align-items:center;gap:8px;line-height:1.35;margin:0}
.survey-section .survey-option input[type=checkbox]{width:16px;height:16px;min-width:16px;padding:0;margin:0;flex:0 0 16px;accent-color:#69736d}

.comment-thread-layout{display:grid;grid-template-columns:minmax(220px,38%) minmax(0,1fr);gap:18px;align-items:start;margin-top:14px}
.comment-file-column{min-width:0;display:flex;flex-direction:column;align-items:stretch}
.comment-file-column .thread-preview{margin:0;width:100%}
.comment-file-column .thread-preview.image-stage{display:flex;align-items:center;justify-content:center;min-height:220px;max-height:440px}
.comment-file-column .thread-preview.image-stage img{max-height:438px;width:auto;object-fit:contain}
.comment-file-column .pdf-thread-preview{height:min(50vh,440px);min-height:220px}
.comment-conversation-column{min-width:0}
.comment-conversation-column .thread-messages{border-top:0;margin-top:0}
.comment-conversation-column .reply-details{margin:12px 0}
@media(max-width:760px){.comment-thread-layout{grid-template-columns:1fr}.comment-file-column .thread-preview.image-stage{max-height:55vh}.comment-file-column .thread-preview.image-stage img{max-height:54vh}.comment-file-column .pdf-thread-preview{height:45vh}}

.list-version-row{display:block;padding:12px 0}
.list-version-row>summary{display:list-item;cursor:pointer;line-height:1.5}
.list-version-row[open]>summary{margin-bottom:10px}
.list-version-row ul{margin:8px 0 0;padding-left:22px}

/* Stage-based comment workspace */
.comment-stage-list{display:grid;gap:16px}
.comment-stage-block{padding:20px}
.comment-stage-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.comment-stage-heading h2{margin:5px 0}
.comment-stage-heading .help{margin:0}
.comment-stage-block>.thread-list{margin:14px 0}
.stage-round-form{margin-top:18px;padding:16px;background:#f1f1ef;border:1px solid var(--line);border-radius:10px}
.stage-round-form h3{margin:0 0 5px}
.stage-round-form>.help{display:block;margin:0 0 12px}
.round-thread-choice{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:6px 0;background:#fff;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.round-thread-choice input{width:17px;height:17px;margin:0;accent-color:var(--green)}
.round-thread-choice span{display:grid;gap:3px}
.round-thread-choice small{font-size:12px;color:var(--muted)}
.stage-round-form>button{margin-top:10px}
.stage-new-thread{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.stage-new-thread>summary{cursor:pointer;font-weight:600;color:var(--green)}
.stage-new-thread form{max-width:720px;margin-top:10px}
.stage-comment-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.stage-comment-actions>button{margin-inline-start:auto}
@media(max-width:760px){.comment-stage-heading{flex-direction:column}}

.closed-conversations{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.closed-conversations>summary{display:flex;align-items:center;gap:9px;cursor:pointer;font-weight:600;color:var(--muted)}
.closed-conversations>.help{margin:9px 0}
.closed-conversations[open]>.thread-list{margin-top:12px}
.comment-stage-block>summary{list-style:none;cursor:pointer}
.comment-stage-block>summary::-webkit-details-marker{display:none}
.comment-stage-heading{align-items:center;margin:0;padding:0 0 14px}
.comment-stage-heading h2{margin:5px 0 0}
.comment-stage-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.comment-stage-content{padding-top:14px}
.comment-stage-block:not([open]){padding-bottom:20px}
@media(max-width:760px){.comment-stage-meta{justify-content:flex-start}.comment-stage-heading{align-items:flex-start}}
.comment-stage-heading{position:relative;padding-right:28px}
.comment-stage-heading::after{content:'⌄';position:absolute;right:2px;top:50%;transform:translateY(-55%);font-size:20px;line-height:1;color:var(--muted);transition:transform .15s ease}
.comment-stage-block[open]>.comment-stage-heading::after{content:'⌃'}
.comment-stage-block>summary:hover h2{color:var(--green)}
.comment-stage-block>summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:5px}
.client-stage-approval-list{margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#eeeeec}
.client-stage-approval-list>h3{margin:0 0 10px;font-size:15px}
.client-stage-approval{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line)}
.client-stage-approval:first-of-type{border-top:0}
.client-stage-approval p{margin:4px 0 0;color:var(--muted);font-size:13px}
@media(max-width:600px){.client-stage-approval{align-items:flex-start;flex-direction:column}}
.project-tile{position:relative}
.project-edit-button{margin-top:5px}
.project-tile-open{background:none;color:var(--green);font:600 12px Roboto;white-space:nowrap;padding:5px 0}
.project-tile-open:hover{text-decoration:underline}
.project-tile-open:focus-visible,.project-edit-button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.brand span{border-left:0;padding-left:0}
.account-row{grid-template-columns:42px minmax(0,1fr) auto;gap:14px}
.account-details{min-width:0;overflow-wrap:anywhere}
.account-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.account-actions .button{width:auto;min-width:0;flex:0 0 auto;white-space:nowrap}
@media(max-width:850px){.account-row{grid-template-columns:42px minmax(0,1fr)}.account-actions{grid-column:2;justify-content:flex-start}}
@media(max-width:520px){.account-row{grid-template-columns:34px minmax(0,1fr)}.account-actions{grid-column:2}}
.member-row{grid-template-columns:42px minmax(0,1fr) auto;gap:14px}
.member-details{min-width:0;overflow-wrap:anywhere}
.member-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.member-actions .button{width:auto;min-width:0;flex:0 0 auto;white-space:nowrap}
@media(max-width:850px){.member-row{grid-template-columns:42px minmax(0,1fr)}.member-actions{grid-column:2;justify-content:flex-start}}
@media(max-width:520px){.member-row{grid-template-columns:34px minmax(0,1fr)}.member-actions{grid-column:2}}
.project-edit-button{position:absolute;top:16px;right:16px;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--ink);font-size:19px;line-height:1;cursor:pointer}
.project-edit-button:hover{background:#ededeb;border-color:#c9c9c5}
.project-edit-button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(min-width:851px){.side{max-height:calc(100vh - 128px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin}}

/* Notification operations */
.notification-panel table{width:100%;border-collapse:collapse;margin-top:18px;font-size:14px}
.notification-panel th,.notification-panel td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.notification-panel td:first-child{overflow-wrap:anywhere}
.notification-panel td:last-child{min-width:200px}
.notification-panel td .button{margin:0 5px 5px 0}
.notification-panel button:disabled{opacity:.45;cursor:not-allowed}
.notification-panel .error{padding:8px 12px;border-left:3px solid var(--red);background:#faf7f7}

/* Inspiracje: pola pojawiają się dopiero po dodaniu przykładu. */
.inspiration-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;margin:16px 0}
.inspiration-file{border:1px solid var(--line,#ddd);padding:16px;border-radius:8px;min-width:0}
.inspiration-file>a{display:block;overflow-wrap:anywhere;margin-bottom:12px}
.inspiration-file textarea{min-height:110px}
.inspiration-add{margin:12px 0 22px}
.inspiration-add summary{cursor:pointer;font-weight:600;padding:10px 0}
.inspiration-section>.field{margin-top:18px}
/* Prevent long questions and file controls from widening narrow screens. */
#survey-form .inline-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
#survey-form .field,#survey-form input,#survey-form textarea,#survey-form select{min-width:0;max-width:100%}
@media(max-width:520px){#survey-form .inline-fields{grid-template-columns:1fr}}
.layout>.side{min-width:0}
@media(max-width:850px){.layout{grid-template-columns:minmax(0,1fr)}}

/* Powrót do listy jest oddzielony od informacji o aktywnym projekcie. */
.project-back-button{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 20px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:13px;font-weight:500;text-align:left;transition:background .15s ease,border-color .15s ease}
.project-back-button>span:first-child{font-size:18px;line-height:1;color:var(--muted)}
.project-back-button:hover{background:#eeeeec;border-color:#bfc0bd}
.project-back-button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.settings-button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:7px;border-radius:50%;background:transparent;color:#ddd}
.settings-button:hover,.settings-button.active{background:#444;color:#fff}
.settings-button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.settings-home{max-width:1180px;margin:0 auto;padding:36px 28px}
.settings-back{margin-bottom:24px}
.project-home-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 24px}
@media(max-width:520px){.settings-home{padding:24px 20px}.topbar .account{gap:8px}}

/* Czytelniejsze pytania i mniejsze teksty pomocnicze w całym panelu. */
.field label,.help,.stage p,.metric span,.project-tile-meta,.material p,.round-label{font-size:14px;line-height:1.5}
.survey-section .field label{font-size:15px;line-height:1.5}
#survey-form .survey-options{grid-template-columns:1fr;row-gap:9px}
#survey-form .survey-options .survey-option{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:400}
.inspiration-add summary{font-size:13px;font-weight:500}
.project-tile-actions{display:flex;gap:8px;align-items:center}
.project-delete-button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:6px;border-radius:7px;background:transparent;color:#777}
.project-delete-button:hover{color:#963e39;background:#f8eeed}
.project-delete-button:focus-visible{outline:2px solid #963e39;outline-offset:2px}
.project-danger-zone{margin-top:24px;border-color:#dac8c6}

/* Pytania bez pogrubienia; wyposażenie czytane pionowo w dwóch równych częściach. */
#survey-form .field>label{font-weight:400}
#survey-form .survey-section>h3{text-transform:uppercase;letter-spacing:.035em}
#survey-form .survey-field-wide{grid-column:1/-1}
#survey-form .survey-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.survey-option-column{display:flex;flex-direction:column;gap:9px;min-width:0}
@media(max-width:520px){#survey-form .survey-options{grid-template-columns:1fr;gap:9px}}

.product-thumbnail{display:block;width:88px;height:88px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px;margin:0 0 10px}.product-image-preview{display:block;max-width:240px;max-height:180px;object-fit:contain;margin:10px 0}.product-image-preview[hidden]{display:none}

.product-identity{display:flex;align-items:center;gap:14px;min-width:220px;max-width:540px}.product-identity .product-thumbnail{flex:0 0 76px;width:76px;height:76px;margin:0}.product-copy{min-width:0;overflow-wrap:anywhere;line-height:1.45}.product-copy .help{display:block;margin-top:4px}.product-actions{display:flex;gap:6px;white-space:nowrap}.button.icon-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;flex-shrink:0}.icon-action svg{pointer-events:none}.catalog-search-row{display:flex;gap:8px;align-items:center}.catalog-search-row input{min-width:0;flex:1}.catalog-search-row [hidden]{display:none}.catalog-picker [role=listbox]{border:1px solid var(--line);border-radius:8px;max-height:290px;overflow:auto;background:#fff}.catalog-picker [role=listbox][hidden]{display:none}.catalog-picker [role=option]{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;text-align:left;background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}.catalog-picker [role=option]:last-child{border-bottom:0}.catalog-picker [role=option]:hover,.catalog-picker [role=option][aria-selected=true]{background:#eeeeec}.catalog-picker [role=option] img{width:44px;height:44px;object-fit:contain;flex-shrink:0}.catalog-picker [role=option] small{display:block;color:var(--muted);margin-top:3px}.catalog-picker [role=option] span{min-width:0;overflow-wrap:anywhere}#withdraw-product{margin-left:10px;margin-top:12px}@media(max-width:640px){.product-identity{min-width:180px;gap:10px}.product-identity .product-thumbnail{width:56px;height:56px;flex-basis:56px}.catalog-search-row{flex-wrap:wrap}}

/* Ustawienia konta i polityka prywatności */
.topbar .brand .syme-logo-link{max-width:145.8px}.topbar .brand .syme-logo-link img{max-height:46.8px}
.settings-button,.privacy-link{display:inline-flex;align-items:center;gap:8px}.privacy-acceptance{display:grid;gap:16px;margin:20px 0}.privacy-acceptance label{display:flex;align-items:flex-start;gap:8px}.privacy-acceptance input{width:auto;flex:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.topbar .settings-button{width:auto;flex:0 0 auto;border-radius:6px;padding:7px 10px}.settings-button svg{flex:none}
@media(max-width:600px){.topbar .settings-button span{display:none}.topbar .settings-button{width:38px;padding:7px}}

.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;padding:10px;cursor:pointer;border-radius:8px}.notification-bell:focus-visible,.inbox-entry:focus-visible{outline:2px solid #222;outline-offset:2px}.notification-bell-count{position:absolute;top:0;right:-4px;border-radius:12px;background:#262626;color:white;font-size:11px;padding:2px 5px;min-width:18px}.notification-bell-count[hidden]{display:none}.notification-popover{position:fixed;top:82px;right:24px;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow:auto;z-index:1000;background:#fff;border:1px solid #ddd;border-radius:14px;box-shadow:0 12px 40px #0002;padding:20px}.notification-popover h2{font-size:20px;margin:0}.inbox-filters{display:flex;gap:8px;margin:16px 0}.inbox-project-filter{display:block;font-size:13px;margin-bottom:12px}.inbox-entry{display:flex;flex-direction:column;gap:6px;text-align:left;width:100%;padding:15px 12px;border:0;border-bottom:1px solid #e6e6e6;background:white;font:inherit;cursor:pointer;overflow-wrap:anywhere}.inbox-entry.is-unread{background:#f2f2f2;border-left:3px solid #666}.inbox-entry span,.inbox-entry small{font-size:13px;color:#666}.inbox-snippet{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.inbox-read-all{margin-top:14px}@media(max-width:600px){.notification-popover{right:12px;top:76px;padding:16px}}

/* Equal icon controls in every account header; names stay available to assistive tools. */
.topbar .settings-button,.topbar .notification-bell{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:10px;border:0;border-radius:8px;background:transparent;color:#ddd;cursor:pointer;transition:background-color .15s,color .15s}
.topbar .settings-button svg,.topbar .notification-bell svg{width:22px;height:22px;flex:none}
.topbar .settings-button:hover,.topbar .notification-bell:hover,.topbar .settings-button.active,.topbar .notification-bell[aria-expanded="true"]{background:#444;color:#fff}
.topbar .settings-button:focus-visible,.topbar .notification-bell:focus-visible{outline:2px solid #fff;outline-offset:3px}


/* Responsive project navigation keeps the desktop sidebar and a native mobile menu. */
.mobile-navigation>summary{display:none}
@media(min-width:851px){.mobile-navigation:not([open])>.nav{display:block}}
@media(max-width:850px){
 .layout{gap:20px;padding:16px}
 .side .project-switch{padding:12px;margin-bottom:10px}
 .project-switch .eyebrow,.project-switch>.help{display:none}
 .project-switch strong{margin:0;font-size:16px;overflow-wrap:anywhere}
 .project-back-button{margin-bottom:10px;padding:10px 12px;min-height:44px}
 .mobile-navigation>summary{display:flex;align-items:center;gap:6px;min-height:46px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:9px;cursor:pointer;list-style:none}
 .mobile-navigation>summary::-webkit-details-marker{display:none}
 .mobile-navigation>summary:after{content:'⌄';margin-left:auto}
 .mobile-navigation[open]>summary:after{content:'⌃'}
 .mobile-navigation .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin-top:8px;gap:4px}
 .mobile-navigation:not([open])>.nav{display:none}
 .mobile-navigation .nav button{width:100%;min-width:0;white-space:normal;min-height:48px;margin:0;padding:10px;gap:8px}
 .nav .survey-menu-status:empty{display:none}
 .welcome{margin-bottom:18px}
 .welcome h1{font-size:26px;overflow-wrap:anywhere}
 .welcome>div{min-width:0;max-width:100%}
 .welcome-list>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
 .welcome-list .button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
 .card{padding:16px}
 .product-table,.product-table tbody{display:block;width:100%}
 .product-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .product-table tbody tr{display:block;border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}
 .product-table td{display:grid;grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:10px;padding:9px 0;overflow-wrap:anywhere}
 .product-table td:before{content:attr(data-label);font-weight:600;color:var(--muted)}
 .product-table td:first-child{display:block;padding-top:0}
 .product-table td:first-child:before{display:none}
 .product-table td:last-child{border-bottom:0}
 .product-table .product-identity{min-width:0;max-width:100%;align-items:flex-start}
 .product-table .product-actions{white-space:normal;flex-wrap:wrap}
 .product-table td>.row{grid-column:1/-1;flex-wrap:wrap}
 .button.icon-action{width:44px;height:44px}
 .field input,.field select,.field textarea{font-size:16px;min-height:44px}
 .button.small,.account-actions .button,.member-actions .button{min-height:44px}
 .modal{padding:10px}
 .modal-box{padding:16px;max-height:calc(100dvh - 20px);overscroll-behavior:contain}
 .modal-box>.row.space:first-child{position:sticky;top:-16px;z-index:3;background:#fff;padding:12px 0;gap:12px;align-items:flex-start}
 .modal-box>.row.space:first-child h2{margin:0;min-width:0;overflow-wrap:anywhere;font-size:20px}
 .modal-box [data-close]{min-height:44px;flex-shrink:0}
 .modal-box .row{flex-wrap:wrap}
 .preview-controls .button{min-height:44px}
 .stage>div,.material>div{min-width:0;overflow-wrap:anywhere}
 .activity-event{grid-template-columns:34px minmax(0,1fr);gap:6px 10px;align-items:start;padding:16px 0}
 .activity-event .stage-num{grid-column:1;grid-row:1 / span 2}
 .activity-event .activity-event-copy{grid-column:2;line-height:1.5}
 .activity-event .activity-event-copy p{margin:4px 0 0}
 .activity-event>.round-label{grid-column:2;white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-size:13px}
 .toast{left:12px;right:12px;bottom:12px;overflow-wrap:anywhere}
 .login{display:flex;flex-direction:column;min-height:100dvh}
 .login-art{display:block;padding:22px 24px;background:#292929}
 .login-art .login-title,.login-art .login-tagline{display:none}
 .login-art>.syme-logo-link{max-width:130px}
 .login-box{width:min(400px,calc(100% - 40px));margin:32px auto}
}
@media(max-width:600px){
 .topbar{height:64px;padding:0 12px;gap:10px}
 .topbar .brand{min-width:0;flex:1}
 .topbar .brand .syme-logo-link{width:100px;max-width:100%}
 .topbar .account{gap:6px;flex:none}
 .topbar .account>.avatar,.topbar .account>div:not(.avatar){display:none}
 .topbar .account .button{padding:8px;min-height:44px}
 .topbar .settings-button{width:44px;min-height:44px;padding:10px}
 .topbar .brand>span{display:none}
 .topbar .account [aria-haspopup]{min-width:44px;min-height:44px}
}


/* Keep filtered rows hidden when the mobile card display overrides table rows. */
.product-table tbody tr[hidden]{display:none}

/* Mobile shortcuts: prominent navigation and a quick return on long pages. */
.back-to-top{display:none}
@media(max-width:850px){
 .mobile-navigation>summary{justify-content:center;flex-wrap:wrap;gap:4px 10px;background:#e3e3e3;border:1px solid #bcbcbc;color:#292929;box-shadow:0 2px 5px #0000000a;text-align:center;min-height:54px}
 .mobile-navigation>summary .mobile-menu-label{font-size:16px;font-weight:700;letter-spacing:.04em}
 .mobile-navigation>summary [data-current-section]{font-size:16px;font-weight:700;overflow-wrap:anywhere}
 .mobile-navigation>summary:after{margin-left:4px;font-weight:700}
 .mobile-navigation>summary:hover{background:#d6d6d6}
 .team-project-header{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:center;gap:8px;margin-bottom:10px}
 .side .team-project-header .project-switch{margin:0}
 .team-project-header .project-back-button{justify-content:center;margin:0;padding:6px 2px;font-size:clamp(10px,3.2vw,11px);text-align:center}
 .team-project-header .project-back-button>span:first-child{display:none}
 .team-project-header+.mobile-navigation>summary{width:50%;margin-inline-start:auto;min-height:44px;padding:8px;flex-wrap:nowrap}
 .team-project-header+.mobile-navigation>summary:after{content:none}
 .back-to-top:not([hidden]){display:flex;align-items:center;justify-content:center;gap:8px;position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:9;min-height:48px;padding:12px 16px;border:1px solid #fff6;border-radius:24px;background:#292929;color:#fff;font:600 14px 'Roboto',Arial,sans-serif;box-shadow:0 3px 14px #0003}
 .back-to-top span{font-size:20px;line-height:1}
 .back-to-top:focus-visible{outline:2px solid #292929;outline-offset:3px}
}

/* Clickable project progress and shared completion styling. */
.progress-stage{display:block;padding:0;position:relative}
.progress-stage-link{display:grid;grid-template-columns:40px minmax(0,1fr) auto 18px;gap:16px;align-items:center;width:100%;padding:16px 0;text-align:left;background:transparent;color:inherit;border-radius:8px}
.progress-stage-link:hover{background:#f4f4f4}
.progress-stage-link:focus-visible{outline:2px solid #606060;outline-offset:2px}
.progress-stage-copy{display:grid;gap:5px;min-width:0}
.progress-stage-copy strong{font-weight:500}
.progress-stage-copy>span{font-size:12px;color:#666;line-height:1.5}
.progress-stage-arrow{color:#666}
.stage-num.completed-stage-marker{background:#606060;color:#fff}
.progress-stage>.stage-reopen-button{margin:0 0 12px 56px}
.measurement-stage-title{display:flex;gap:14px;align-items:center}
[data-stage-files],[data-measurement-section]{scroll-margin-top:100px}
@media(max-width:520px){.progress-stage-link{grid-template-columns:34px minmax(0,1fr) 18px;gap:10px;padding:14px 0}.progress-stage-link>.pill{grid-column:2;grid-row:2;justify-self:start;white-space:normal}.progress-stage-arrow{grid-column:3;grid-row:1 / span 2}.progress-stage>.stage-reopen-button{margin-left:44px}}

/* Material actions get their own row on narrow screens. */
@media(max-width:850px){
 .material{grid-template-columns:56px minmax(0,1fr);align-items:start}
 .material>.thumb{width:56px;height:56px}
 .material>.material-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;overflow-wrap:normal}
 .material-actions>.button{min-width:124px;min-height:44px;white-space:normal;overflow-wrap:normal;word-break:normal;flex:0 1 auto}
 .material-version-row>.button,.material-version-row>a.button{min-height:44px}
}

/* PDF.js draws the actual page, keeping annotation coordinates stable on mobile. */
.pdf-stage,.pdf-thread-preview,.comment-file-column .pdf-thread-preview{height:auto;min-height:0;width:100%;aspect-ratio:210/297;border-radius:0}
.pdf-stage canvas,.pdf-thread-preview canvas{display:block;width:100%;height:auto}
.pdf-loading{padding:24px;line-height:1.5}
.pdf-stage[data-pdf-ready="false"] .pin-overlay,.pdf-thread-preview[data-pdf-ready="false"] .thread-pin{display:none}
.gallery-document{display:flex;align-items:center;justify-content:center;min-height:140px;background:#ededeb;border-radius:8px;font-weight:600}

.gallery-preview{display:block;width:100%;padding:0;background:transparent;text-align:left;color:inherit}

/* Focused file viewing and compact survey sections. */
.file-preview-modal{
 grid-template:minmax(0,1fr)/minmax(0,1fr);
 place-items:center;
}
.file-preview-modal>.modal-box{
 box-sizing:border-box;
 width:80vw;
 max-width:1280px;
 max-height:80dvh;
 padding:16px;
}
@media(max-width:600px){
 .file-preview-modal>.modal-box{
  width:92vw;
  max-height:88dvh;
 }
}
.file-preview-modal h2{margin:0;font-size:20px}.file-preview-modal .preview-stage{max-width:none;max-height:none;transform-origin:0 0;margin:0}.file-preview-modal .image-stage img{width:100%;max-height:none;display:block}.file-zoom-viewport{overflow:hidden;touch-action:none;min-height:180px;max-height:calc(100dvh - 210px);background:#eee}.file-zoom-controls{margin:8px 0}.file-preview-modal .preview-controls{margin:8px 0}.survey-section>summary{font-size:18px;font-weight:700;cursor:pointer;padding:16px 0}.survey-section>summary~*{margin-top:16px}.survey-save-actions{position:sticky;bottom:0;background:#fff;padding:12px 0;z-index:5;border-top:1px solid #ddd}.material-version-name{text-decoration:none!important}

.file-preview-modal .modal-box>.row.space{position:sticky;top:-16px;background:#fff;z-index:8;padding:8px 0}.file-zoom-viewport{max-height:none}.file-preview-modal .preview-stage canvas{width:100%;height:auto}
.file-preview-modal .preview-stage{width:100%;min-height:0;display:block;box-sizing:border-box}.file-preview-modal .image-stage img{width:100%;max-width:100%;height:auto}.file-zoom-viewport{width:100%;min-width:0}.file-preview-modal .pdf-stage{height:auto}

.stage-decision-actions{flex-wrap:wrap}
.stage-decision-files{overflow-wrap:anywhere;padding-inline-start:24px}
.file-zoom-controls,.pdf-page-controls{display:flex;align-items:center;gap:6px}
.file-zoom-controls{flex-wrap:wrap}
.file-zoom-controls .button{min-height:40px;margin:0}
.pdf-page-controls .button{display:inline-grid;place-items:center;min-width:40px;padding:0}
.pdf-page-controls .button:disabled{opacity:.4;cursor:default}
.pdf-page-counter{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:600px){
 .file-zoom-controls .button{min-height:44px}
 .pdf-page-controls .button{min-width:44px}
}

.survey-completion{float:right;margin-left:12px}
.survey-completion[hidden],.survey-section[open]>summary .survey-completion{display:none}
.file-preview-modal h2{min-width:0;overflow-wrap:anywhere}
.file-preview-modal .modal-box>.row.space>[data-close]{flex-shrink:0}
.draft-note{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.draft-note p{overflow-wrap:anywhere;white-space:pre-wrap}
.draft-thumbnail{position:relative;width:clamp(90px,26vw,220px);background:#f4f4f4;outline:1px solid #ddd;aspect-ratio:4/3}
.draft-thumbnail canvas{display:block;width:100%;height:auto}
.draft-thumbnail:not([data-pin-ready="true"]) .pin-overlay{display:none}
@media(max-width:400px){.draft-note{gap:8px;padding:12px}.draft-note .row{gap:4px}}

.material-version-row{display:grid;grid-template-columns:minmax(0,1fr) auto}
.material-version-copy{display:grid;gap:4px;overflow-wrap:anywhere}
.material-feedback-count{font-weight:600}
.material-version-meta{display:grid;grid-auto-flow:column;align-items:center;justify-items:end;gap:8px}
.material-version-meta>.help,.material-version-meta>.button{white-space:nowrap}
.material-variant{width:92px;text-align:right}
.material-variant .pill{max-width:100%;white-space:normal}
.material-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery-heading{margin:24px 0 0}
.gallery-preview{height:clamp(110px,15vw,200px);overflow:hidden;background:#ededeb;border-radius:8px}
.gallery-preview img{object-fit:contain}
.gallery-pdf{display:grid;place-items:center;width:100%;height:100%}
.gallery-pdf canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto}
.pdf-scroll-viewport{height:min(74dvh,950px);overflow:auto;overscroll-behavior:contain;overflow-anchor:none;touch-action:pan-x pan-y;background:#ededeb}
.pdf-book{position:relative;display:grid;gap:12px;width:100%}
.pdf-book .pdf-stage{position:relative;overflow:hidden;background:white}
.pdf-book .pdf-stage canvas{position:absolute}
.pdf-book .pin-overlay{z-index:1}
@media(max-width:850px){
 .material-version-row{grid-template-columns:minmax(0,1fr)}
 .material-version-meta{grid-auto-flow:row;grid-template-columns:auto minmax(0,92px) auto;justify-content:end}
 .material-variant{width:auto}
 .material-version-meta .button{white-space:normal;min-height:44px}
}
@media(max-width:620px){.material-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.material-gallery{grid-template-columns:minmax(0,1fr)}}


.material.material-file-package{grid-template-columns:minmax(0,1fr);align-items:start}
.material-file-package .material-actions,.material-version-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.material-version-actions{grid-column:2 / -1}
.material-version-actions .button,.material-file-package .material-actions .button{white-space:nowrap;min-width:0}
.material-file-package .material-version-row{grid-template-columns:82px minmax(0,1fr) auto;gap:12px}
.material-file-package.material-older-divider,.material-file-package .material-version-row.material-older-divider{border-top:1px solid #767874;margin-top:30px}
.material-package-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.material-package-heading h3{min-width:0;overflow-wrap:anywhere}
.material-package-heading time{margin-left:auto;white-space:nowrap;font-size:11px}
.material-package-category{font-weight:400}
[data-stage-files]>.comment-stage-content{--file-section-inset:15px}
.material-latest-files{
 padding-inline:var(--file-section-inset);
 box-shadow:inset 4px 0 #5b8a63;
}
[data-stage-files]>.comment-stage-content:has(>.material-previous-files)>.material-file-package{
 padding-inline:var(--file-section-inset);
}
.material-previous-files{
 margin-top:20px;
 padding:12px calc(var(--file-section-inset) - 1px);
 border:1px solid var(--line);
 border-radius:10px;
}
.material-previous-files:not([open])>.comment-stage-heading{padding-bottom:0;border-bottom:0}
.material-file-thumbnail{width:82px;height:62px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:#efefed}
.material-file-thumbnail canvas,.material-file-thumbnail img{display:block;max-width:100%;max-height:100%;width:auto;height:auto}
.material-file-thumbnail .pdf-loading{padding:0;font-size:11px;text-align:center}
.plan-pin{width:30px;height:30px;display:grid;place-items:center;transform:translate(-50%,-83%);color:var(--pin-red);background:transparent;border:0;box-shadow:none;line-height:1;overflow:visible}
.plan-pin svg{display:block;filter:drop-shadow(0 1px 2px #0005)}
.pin-number{position:absolute;top:-3px;left:70%;min-width:17px;height:17px;padding:0 3px;display:grid;place-items:center;border:1px solid white;border-radius:20px;background:var(--pin-red);color:white;font-size:10px;font-weight:700}
.draft-thumbnail .plan-pin{width:24px;height:24px}
.draft-thumbnail .plan-pin svg{width:20px;height:20px}
@media(max-width:850px){
 .material-file-package .material-version-row{grid-template-columns:64px minmax(0,1fr);gap:6px 10px}
 .material-file-thumbnail{width:64px;height:50px}
 .material-file-package .material-version-meta{grid-column:2;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px 8px}
 .material-file-package .material-version-actions{grid-column:1 / -1}
 .material-file-package .material-version-actions .button,.material-file-package .material-actions .button,.client-stage-approval .button{font-size:12px;padding:8px 10px;min-height:44px}
 .material-file-package .material-version-meta .pill{white-space:normal}
}

.investor-comment-group>summary{display:list-item;color:var(--ink)}
.investor-comment-group>summary .pill{margin-left:6px}

.investor-tour{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden}
.investor-tour::backdrop{background:transparent}
.tour-highlight{position:fixed;border:2px solid #fff;border-radius:10px;box-shadow:0 0 0 100vmax #0008;pointer-events:none}
.tour-bubble{position:fixed;width:min(340px,calc(100vw - 24px));padding:18px;border-radius:12px;background:#fff;color:#292929;box-shadow:0 8px 28px #0003}
.tour-bubble h2{margin:3px 0 8px;font-size:20px}
.tour-bubble p{margin:0 0 9px}
.tour-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:16px}
.tour-actions [hidden]{display:none}
@media(max-width:850px){.tour-actions .button{min-height:44px}}

.draft-pin-editor{display:grid;grid-template-columns:minmax(0,3fr) minmax(250px,2fr);gap:20px;align-items:start}
.draft-pin-preview>.help{margin:8px 0 0}
.draft-pin-editor textarea{min-height:180px}
.draft-pin-modal .pdf-scroll-viewport,.draft-pin-modal .file-zoom-viewport{height:min(66dvh,760px)}
.draft-pin-modal .pin-overlay.placing{background:none}
@media(max-width:700px){
 .draft-pin-modal .modal-box>.row.space{flex-direction:row;align-items:flex-start;gap:8px}
 .draft-pin-modal h2{font-size:17px}
 .draft-pin-editor{grid-template-columns:minmax(0,1fr);gap:12px}
 .draft-pin-editor textarea{min-height:100px}
 .draft-pin-modal .pdf-scroll-viewport,.draft-pin-modal .file-zoom-viewport{height:38dvh}
}

.guidance-check{display:flex;align-items:center;gap:8px;width:fit-content;min-height:44px;font-weight:600;cursor:pointer}
.guidance-check input{width:18px;height:18px;margin:0;accent-color:var(--ink)}

.thread-status-pills{flex-wrap:wrap;justify-content:flex-end}
.thread-status-pills [hidden]{display:none}
.pill.new-thread-message,.survey-menu-status[data-action-count="materials"]{background:#164b35;color:#fff}
.thread-reply-request{display:flex;align-items:center;gap:8px;margin:0 0 10px}

.decision-stage-history+.decision-stage-history{margin-top:24px}
.decision-stage-history>h3{font-size:17px;padding:12px 0;border-bottom:1px solid var(--line)}
.decision-variant h4{margin:12px 0 5px}
.decision-variant ul{margin:5px 0 12px;padding-left:22px;overflow-wrap:anywhere}
.decision-variant-archive{margin:10px 0;color:var(--muted)}

.catalog-heading,.catalog-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.catalog-heading{justify-content:space-between;margin-bottom:16px}
.catalog-heading h2{margin:0}
.catalog-controls{margin-inline-start:auto}
.catalog-controls input,.catalog-controls select{max-width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit}
#catalog-products[hidden],#catalog-products tr[hidden],#catalog-no-matches[hidden]{display:none}

.file-preview-modal:not(.draft-pin-modal) .file-zoom-viewport{min-height:0}
.file-preview-modal:not(.draft-pin-modal) .pdf-scroll-viewport{scrollbar-gutter:stable both-edges}
.file-preview-modal:not(.draft-pin-modal) .file-zoom-viewport{max-width:100%}

.file-preview-modal:not(.draft-pin-modal){
 padding:12px;
 align-items:start;
}
.file-preview-modal:not(.draft-pin-modal)>.modal-box{
 width:min(94vw,100%);
 max-width:1600px;
 max-height:calc(100dvh - 24px);
}

.pill.investor-activity,.survey-menu-status[data-action-count="comments"]{background:#164b35;color:#fff}
.inbox-entry.is-unread.is-comment-activity{background:#e8f3ed;border-left-color:#164b35}
/* Partner stores and active investor discounts */
.discount-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:22px;align-items:start}
.discount-card{margin:0;overflow:hidden;padding:28px}
.discount-shop{display:flex;min-height:155px;align-items:center;justify-content:center;flex-direction:column;gap:24px;text-align:center;text-decoration:none;color:var(--ink);border-radius:8px}
.discount-shop:focus-visible{outline:2px solid var(--green);outline-offset:6px}
.discount-shop img{display:block;width:100%;max-width:210px;height:80px;object-fit:contain}
.discount-wordmark{font-size:27px;font-weight:600;letter-spacing:.06em;overflow-wrap:anywhere}
.discount-visit{font-size:12px;color:var(--green)}
.discount-shop:hover .discount-visit{text-decoration:underline}
.discount-details{border-top:1px solid var(--line);margin:24px 0 0;padding:22px 0 0;display:grid;gap:20px}
.discount-details dt{font-size:11px;letter-spacing:.08em;color:var(--muted);margin-bottom:8px}
.discount-details dd{margin:0;font-size:23px;font-weight:500;overflow-wrap:anywhere}
.discount-details .discount-code{font-size:19px;letter-spacing:.06em;background:var(--soft);padding:12px 15px;border-radius:7px;color:var(--green)}

/* Mobile shortcuts: prominent navigation and a quick return on long pages. */
.back-to-top{display:none}
@media(max-width:850px){
 .mobile-navigation>summary{justify-content:center;flex-wrap:wrap;gap:4px 10px;background:#e3e3e3;border:1px solid #bcbcbc;color:#292929;box-shadow:0 2px 5px #0000000a;text-align:center;min-height:54px}
 .mobile-navigation>summary .mobile-menu-label{font-size:16px;font-weight:700;letter-spacing:.04em}
 .mobile-navigation>summary [data-current-section]{font-size:16px;font-weight:700;overflow-wrap:anywhere}
 .mobile-navigation>summary:after{margin-left:4px;font-weight:700}
 .mobile-navigation>summary:hover{background:#d6d6d6}
 .back-to-top:not([hidden]){display:flex;align-items:center;justify-content:center;gap:8px;position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:9;min-height:48px;padding:12px 16px;border:1px solid #fff6;border-radius:24px;background:#292929;color:#fff;font:600 14px 'Roboto',Arial,sans-serif;box-shadow:0 3px 14px #0003}
 .back-to-top span{font-size:20px;line-height:1}
 .back-to-top:focus-visible{outline:2px solid #292929;outline-offset:3px}
}


/* Neutral notification tones */
.inbox-entry.is-unread{background:#f2f2f2;border-left:3px solid #666}
.inbox-entry span,.inbox-entry small{color:#666}

/* Project file popup */
.project-file-preview.file-preview-modal:not(.draft-pin-modal)>.modal-box{width:100%;max-width:none;padding-block:8px 5px}
.project-file-preview>.modal-box>.row.space:first-child{
 display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;
 gap:12px;padding:0;margin-bottom:6px;
}
.project-file-preview>.modal-box>.row.space:first-child h2{
 flex:0 1 auto;min-width:min(28%,12rem);font-size:16px;font-weight:500;line-height:1.25;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
@media(max-width:600px){
 .project-file-preview>.modal-box>.row.space:first-child{gap:6px}
}
.project-file-preview>.modal-box>p.help{margin:5px 0 0;font-size:13px;line-height:1.3}
.project-file-preview .file-zoom-controls{
 display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;
 flex:0 1 auto;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;margin:0 0 0 auto;gap:4px;
}
.project-file-preview .file-zoom-controls>*{flex:none;white-space:nowrap}
.project-file-preview .file-zoom-controls .button{min-height:34px;padding:4px 8px;font-size:13px;line-height:1.25}
.project-file-preview .file-zoom-controls .pdf-page-controls .button{min-width:34px;padding:0}
@media(max-width:850px),(pointer:coarse){
 .project-file-preview .file-zoom-controls .button{min-height:44px;min-width:44px}
 .project-file-preview .file-zoom-controls .pdf-page-controls .button{min-width:44px}
}
.project-file-preview .project-file-comments{display:flex;align-items:center;gap:4px;margin-inline-start:24px}
.project-file-preview .modal-box .project-file-close{
 flex:0 0 auto;margin-inline-start:12px;min-width:34px;min-height:34px;
 padding:0;background:#111;color:#fff;font-size:20px;line-height:1;
}
.project-file-preview .modal-box .project-file-close:hover{background:#333}
@media(max-width:850px),(pointer:coarse){
 .project-file-preview .modal-box .project-file-close{min-width:44px;min-height:44px}
}
@media(max-width:600px){
 .project-file-preview .project-file-comments{margin-inline-start:12px}
 .project-file-preview .modal-box .project-file-close{margin-inline-start:6px}
}
.project-file-preview .modal-box>.row.space{flex-direction:row}
.project-file-preview .pdf-scroll-viewport,.project-file-preview .file-zoom-viewport{touch-action:none;cursor:grab}
.project-file-preview .is-dragging,.project-file-preview .is-dragging .pin-overlay{cursor:grabbing;user-select:none}

/* Navigation within a visualization variant */
.visualization-file-navigation{position:relative}
.visualization-file-arrow{
 position:absolute;top:50%;z-index:5;transform:translateY(-50%);
 display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;
 background:#111d;color:#fff;font-size:32px;line-height:1;cursor:pointer;
 opacity:0;pointer-events:none;transition:opacity .15s ease;
}
.visualization-file-previous{left:8px}
.visualization-file-next{right:8px}
.visualization-file-arrow.is-revealed,.visualization-file-arrow:focus-visible{opacity:1;pointer-events:auto}
.visualization-file-arrow:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(hover:none),(pointer:coarse){.visualization-file-arrow{opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.visualization-file-arrow{transition:none}}

.material-visualization-package .material-package-heading{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 align-items:start;
 gap:6px 12px;
 padding-bottom:12px;
 border-bottom:1px solid #e8e8e6;
}
.material-visualization-package .material-package-heading h3{grid-column:1;grid-row:1;align-self:center}
.material-visualization-package .material-package-heading time{grid-column:2;grid-row:1}
.material-visualization-package .material-package-heading:has(.material-visualization-header-actions) h3{grid-row:2}
.material-visualization-header-actions{
 grid-column:2;
 grid-row:2;
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-end;
 align-items:center;
 gap:8px;
}
.material-visualization-header-actions .button{min-height:44px}
.material-visualization-package{container-type:inline-size}
.material-visualization-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:14px;
 margin-top:14px;
}
.material-visualization-grid .material-version-row{
 grid-template-columns:minmax(0,1fr) auto;
 grid-template-rows:auto 1fr;
 gap:8px 10px;
 align-items:start;
 padding:10px;
 border:1px solid #e0e0dd;
 border-radius:8px;
}
.material-visualization-grid .material-file-thumbnail{
 grid-column:1 / -1;
 width:100%;
 height:auto;
 aspect-ratio:16 / 9;
}
.material-visualization-grid .material-version-copy{align-self:center;min-width:0}
.material-visualization-grid .material-version-meta{
 grid-column:1 / -1;
 grid-row:3;
 display:flex;
 flex-wrap:wrap;
 gap:6px;
}
.material-visualization-grid .material-version-actions{grid-column:2;align-self:center}
.material-visualization-team-grid .material-version-row{grid-template-columns:minmax(0,1fr)}
.material-visualization-team-grid .material-version-copy{align-self:start}
.material-visualization-team-grid .material-version-actions{grid-column:1;grid-row:3;justify-content:flex-start}
.material-visualization-team-grid .material-version-meta{grid-row:4}
.material-visualization-grid .material-version-row.material-older-divider{margin-top:0}
@container (width < 840px){
 .material-visualization-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (width < 560px){
 .material-visualization-grid{grid-template-columns:minmax(0,1fr)}
 .material-visualization-package .material-package-heading{grid-template-columns:minmax(0,1fr)}
 .material-visualization-package .material-package-heading h3,
 .material-visualization-package .material-package-heading:has(.material-visualization-header-actions) h3,
 .material-visualization-package .material-package-heading time,
 .material-visualization-header-actions{grid-column:1;grid-row:auto}
}

.button.extra-change-accept{background:#416e5a;color:#fff}

.stage-entry-variant{border:1px solid var(--line);border-radius:12px;padding:14px;margin:14px 0}
.stage-entry-variant>summary{cursor:pointer}
.stage-entry-variant>summary .pill{margin-left:4px}
.stage-entry{margin-top:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft,#f6f8f5);padding:14px}
.stage-entry-section{margin-top:14px}
.stage-entry-section h4{margin:0}
.stage-entry-body{white-space:pre-wrap;overflow-wrap:anywhere}

.stage-entry .pill[data-stage-entry-new]{background:#164b35;color:#fff}
