/* KAV request board: compact cards inside persistent, clearly outlined columns. */
#sidebar .wordmark .kav-logo{width:132px;height:51px;object-fit:contain;object-position:left center}
.login-story .kav-logo{width:190px;height:auto}.login-story .wordmark{display:block}
.request-board-scroll{padding:8px;max-height:calc(100dvh - 141px);overflow:auto;scrollbar-gutter:stable}
.request-board{display:grid;grid-template-columns:repeat(var(--cols),minmax(238px,1fr));gap:8px;min-width:var(--board-min);align-items:stretch;min-height:calc(100dvh - 165px)}
.request-column{background:#e9edef;border:1px solid #c5ccd1;border-top:3px solid var(--stage);border-radius:2px;min-width:0;display:flex;flex-direction:column}
.request-column-head{position:sticky;top:-8px;z-index:2;display:flex;gap:6px;align-items:center;background:#e1e6e9;border-bottom:1px solid #bfc8ce;padding:8px;min-height:49px;box-sizing:border-box}
.request-column-head h2{font-size:13px;line-height:1.2;margin:0;flex:1;color:#25292d;overflow-wrap:anywhere}.request-column-head b{font-size:12px;background:#fff;padding:3px 5px;border:1px solid #c5ccd1;border-radius:2px}
.stage-number{background:var(--stage);color:#fff;width:20px;height:20px;display:grid;place-items:center;font-size:11px;flex:none;font-weight:bold;text-shadow:0 1px 2px #25292d}
.request-column .drop-column{background:transparent;border:0;min-height:100px;padding:6px;flex:1;transition:background-color .08s}.request-column .drop-column.dropzone{background:#f9e3d5;outline:2px solid #f36b21;outline-offset:-2px}
.request-card{padding:8px!important;margin:0 0 6px!important;border:1px solid #bdc7cd!important;background:#fff!important;border-radius:2px;box-shadow:0 1px 1px #25292d0c!important;cursor:grab;min-width:0}
.request-card:hover{border-color:#f36b21!important}.request-card:focus-visible{outline:2px solid #f36b21;outline-offset:1px}.request-card .card-top{margin-bottom:4px;font-size:10px;gap:4px;color:#687078}
.request-card .request-amount{font-size:12px;color:#25292d;font-weight:bold}.request-card .card-title{font-size:14px;line-height:1.25;margin:3px 0!important;min-height:0;font-weight:600}
.request-title-alt{font-size:11px;line-height:1.3;color:#687078;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0 5px}.translation-missing{font-size:10px;color:#8e652f;margin-bottom:4px}
.request-card .card-client{font-size:11px;line-height:1.4;margin:4px 0!important}.request-card .responsibility{margin:5px 0!important;font-size:11px;line-height:1.5;gap:0}.request-card .responsibility b{font-weight:normal}
.request-dates{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 7px;font-size:10px!important;line-height:1.5;padding-top:5px!important;margin-top:4px!important;border-top:1px solid #e2e7ea}
.request-contact-actions{display:flex;gap:7px;min-height:0;line-height:1.5}.request-contact-actions:empty{display:none}.request-contact-actions a,.request-contact-actions button{font:inherit;font-size:11px;color:#b34e16;background:transparent;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.request-column .column-add{width:100%;font-size:11px;padding:6px;text-align:left;margin:0;color:#687078;border:1px dashed #bdc7cd;background:#f2f5f6}.request-column .column-add:hover{color:#25292d;border-color:#f36b21;background:#fff}
.bilingual-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}.bilingual-pair label{min-width:0}.translation-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px;color:#687078;margin-top:4px}.translation-tools .plain{font-size:11px;padding:3px 6px;border:1px solid #c5ccd1}.translation-tools [role=status]{color:#965018}
.request-origin,.request-editor-dates,.request-editor-contact{font-size:11px;line-height:1.5;padding:5px 0}.request-origin a{color:#a34b1d}.request-origin span{color:#687078;margin-left:8px}
#wechat-dialog{width:420px;max-width:calc(100vw - 30px);box-sizing:border-box}#wechat-dialog label{display:grid;gap:5px}#wechat-dialog input{padding:8px;border:1px solid #c5ccd1}
@media(max-width:760px){.request-board-scroll{max-height:calc(100dvh - 185px)}.request-board{min-height:calc(100dvh - 205px)}.bilingual-pair{grid-template-columns:1fr}.request-column{min-width:238px}}
@media(max-width:640px){#sidebar .wordmark .kav-logo{width:40px;height:32px;object-fit:cover;object-position:left}.request-board-scroll{padding:5px}.request-column-head{top:-5px}}

.request-card .card-title{overflow-wrap:anywhere}.request-dates{display:grid;grid-template-columns:1fr 1fr;gap:4px}.request-dates>span:last-child{text-align:right}
@media(max-width:640px){#sidebar .wordmark .kav-logo{width:40px;height:24px;object-fit:contain}}

/* design-switcher-v1: the existing compact rules stay the default. */
.language{display:grid;grid-template-columns:1fr 1fr;gap:3px;max-width:170px}
.language .design-switcher{grid-column:1/-1;display:grid;gap:3px;margin:3px 0 0!important;padding:0;font-size:10px;line-height:1.25;color:#c5cfda;letter-spacing:0}
.language .design-switcher>span{padding-left:3px}
.language .design-switcher select{width:100%;min-width:0;max-width:100%;margin:0;padding:5px 25px 5px 6px;font-size:11px;line-height:1.2;background-color:#f3f5f7;color:#293d59;border:1px solid #c5ccd1;border-radius:3px;cursor:pointer}
.workspace #sidebar>.language{width:calc(100% - 12px);align-self:stretch}
body>.language{width:152px;background:#263d5c;padding:5px}
body>.language button{color:#cfdae7}
.login-story small{padding-bottom:76px}

html[data-design=rounded]{--ink:#293d59;--muted:#8290a3;--blue:#3976ed;--accent:#3976ed;--line:#e0e7f0;--paper:#f4f6fb;background:#f4f6fb;color:#293d59}
html[data-design=rounded] #sidebar{background:#15253e;color:#b8c9df}
html[data-design=rounded] .space-name{color:#9eb2cc}
html[data-design=rounded] nav button{border-radius:9px;padding-top:10px;padding-bottom:10px;border-left-color:transparent}
html[data-design=rounded] nav button.active{background:#2a4265;color:#fff;border-left-color:transparent}
html[data-design=rounded] nav button:hover{background:#273e5e}
html[data-design=rounded] nav b{border-radius:6px;background:#415b7c}
html[data-design=rounded] .workspace #sidebar>.language{background:#263d5c;border-radius:8px;padding:5px}
html[data-design=rounded] .language button{border-radius:6px}
html[data-design=rounded] .language button.active,html[data-design=rounded] .workspace #sidebar>.language button.active{background:#e8f0ff;color:#356bd0}
html[data-design=rounded] .language .design-switcher select{border-radius:6px}
html[data-design=rounded] main .main-inner{padding:14px}
html[data-design=rounded] .panel{border-radius:14px;border-color:#e0e7f0}
html[data-design=rounded] .panel-top{min-height:51px;height:auto;padding:6px 14px}
html[data-design=rounded] .tabs button.active{color:#3976ed;border-color:#3976ed}
html[data-design=rounded] .primary{background:#3976ed;color:#fff;border-radius:9px;box-shadow:none}
html[data-design=rounded] .primary:hover{background:#2b65d5;color:#fff}
html[data-design=rounded] .secondary{border-radius:9px;background:#f3f6fb;color:#536b8b}
html[data-design=rounded] input,html[data-design=rounded] select,html[data-design=rounded] textarea{border-radius:8px;border-color:#dce5f0;color:#293d59}
html[data-design=rounded] .toolbar{padding:12px 13px;gap:8px}
html[data-design=rounded] .toolbar .search{border-radius:8px;border-color:#dce5f0}
html[data-design=rounded] .toolbar select{border-radius:8px}
html[data-design=rounded] .request-board-scroll{padding:10px;max-height:calc(100dvh - 170px)}
html[data-design=rounded] .request-board{grid-template-columns:repeat(var(--cols),minmax(260px,1fr));gap:12px;min-width:max(var(--board-min),calc(var(--cols)*274px))}
html[data-design=rounded] .request-column{background:#f2f5fb;border-color:#dce5f0;border-radius:12px}
html[data-design=rounded] .request-column-head{top:-10px;background:#edf2fa;border-color:#dce5f0;border-radius:9px 9px 0 0;min-height:57px;padding:11px 10px}
html[data-design=rounded] .request-column-head h2{color:#293d59;font-size:14px}
html[data-design=rounded] .request-column-head b{border-radius:6px;color:#8092ab;border-color:transparent}
html[data-design=rounded] .stage-number{border-radius:5px}
html[data-design=rounded] .request-column .drop-column{padding:9px}
html[data-design=rounded] .request-column .drop-column.dropzone{background:#e7efff;outline-color:#3976ed}
html[data-design=rounded] .request-card{padding:14px!important;margin-bottom:10px!important;border-color:#dde5f0!important;border-radius:11px;box-shadow:0 2px 5px #17304b09!important;transition:none}
html[data-design=rounded] .request-card:hover{border-color:#88a8e5!important}
html[data-design=rounded] .request-card .card-top{margin-bottom:8px;font-size:11px}
html[data-design=rounded] .request-card .card-title{font-size:15px;line-height:1.4;color:#293d59;margin:4px 0 7px!important}
html[data-design=rounded] .request-title-alt{margin:3px 0 7px;color:#8290a3;font-size:12px}
html[data-design=rounded] .request-card .card-client{font-size:12px;line-height:1.5;margin:7px 0!important;color:#8290a3}
html[data-design=rounded] .request-card .request-amount{font-size:13px;color:#354c6c}
html[data-design=rounded] .request-card .responsibility{font-size:12px;line-height:1.65;margin:8px 0!important;gap:2px;color:#8290a3}
html[data-design=rounded] .request-card .responsibility b{color:#536b8b}
html[data-design=rounded] .request-card .responsibility .missing{color:#b56f55}
html[data-design=rounded] .request-dates{padding-top:8px!important;margin-top:7px!important;color:#8290a3}
html[data-design=rounded] .request-column .column-add{border-radius:7px;background:#f7f9fd;color:#8a98ab;padding:8px}
html[data-design=rounded] .request-contact-actions a,html[data-design=rounded] .request-contact-actions button,html[data-design=rounded] .entity-link{color:#356bd0}
html[data-design=rounded] th{background:#f3f6fb;color:#5d7190}
html[data-design=rounded] td,html[data-design=rounded] th{padding:12px 10px;border-color:#e6ecf4}
html[data-design=rounded] .resource-card,html[data-design=rounded] .affiliation-row,html[data-design=rounded] .related-list,html[data-design=rounded] .relationship-section{border-radius:10px;border-color:#e0e7f0}
html[data-design=rounded] .resource-grid{padding:18px;gap:15px}
html[data-design=rounded] .resource-card{padding:19px}
html[data-design=rounded] .relationship-section{background:#f3f6fb;border-left-color:#88a8e5;padding:12px}
html[data-design=rounded] dialog{border-radius:15px;border-color:#dfe6f1;padding:23px;box-shadow:0 12px 45px #10244424}
html[data-design=rounded] dialog::backdrop{background:#14243c80;backdrop-filter:none}
html[data-design=rounded] .login-story{background:#15253e}
html[data-design=rounded] .user{border-color:#2d4565}
html[data-design=rounded] #toast{border-radius:9px;background:#293d59;border-left-color:#3976ed}
@media(max-width:760px){
 .workspace #sidebar>.language{width:44px;align-self:center;display:grid;grid-template-columns:1fr;margin-left:0;margin-right:0;padding:3px}
 .language .design-switcher select{padding:5px 13px 5px 2px;font-size:10px;background-position:right 1px center;background-size:9px}
 .language .design-switcher>span{padding-left:1px;font-size:9px}
 html[data-design=rounded] main .main-inner{padding:7px}
 html[data-design=rounded] nav button{padding-top:8px;padding-bottom:8px}
 html[data-design=rounded] .panel-top{padding:8px;gap:6px}
 html[data-design=rounded] .toolbar{padding:8px;gap:6px}
 html[data-design=rounded] .request-board-scroll{max-height:calc(100dvh - 220px);padding:7px}
 html[data-design=rounded] .request-column-head{top:-7px}
 html[data-design=rounded] .request-column{min-width:260px}
 html[data-design=rounded] dialog{padding:16px}
}
/* end design-switcher-v1 */

/* request-page-v1: readable request text and a full-page view without another app instance. */
#editor #card-form label{font-size:16px;line-height:1.4}
#editor #card-form input,#editor #card-form select{font-size:16px;line-height:1.4;min-height:38px}
#editor #card-form textarea{font-size:18px;line-height:1.6;min-height:205px;resize:vertical;padding:10px 12px}
#editor #card-form .bilingual-pair{gap:12px}
#editor .dialog-heading{align-items:center;flex-wrap:wrap;gap:8px 12px}
#editor .dialog-heading h2{margin:0 auto 0 0;font-size:23px;line-height:1.25}
#editor .dialog-heading .close{flex:none;align-self:flex-start}
#editor .request-page-toggle{font-size:13px;line-height:1.3;min-height:34px;flex:none}
#editor .request-origin{padding:12px 0 8px;font-size:14px}
#editor #card-form .translation-tools{font-size:12px;line-height:1.5}
#editor .request-editor-dates,#editor .request-origin span{font-size:13px}
#editor.request-page{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;padding:24px;border:0;border-radius:0;box-shadow:none;overflow:auto;background:#fff;color:var(--ink);overscroll-behavior:contain}
#editor.request-page::backdrop{background:transparent;backdrop-filter:none}
#editor.request-page #card-form{width:100%;max-width:1800px;margin:0 auto}
#editor.request-page .dialog-heading{position:sticky;top:-24px;z-index:4;background:#fff;border-bottom:1px solid var(--line);padding:14px 0;margin-bottom:12px}
#editor.request-page .dialog-heading h2{font-size:26px}
#editor.request-page #card-form .form-grid{gap:16px 20px}
#editor.request-page #card-form .bilingual-pair{gap:20px}
#editor.request-page #card-form textarea{font-size:20px;line-height:1.65;min-height:360px;padding:14px}
#editor.request-page #card-form .dialog-actions{position:sticky;bottom:-24px;z-index:3;background:#fff;margin-top:18px;padding:14px 0;border-top:1px solid var(--line)}
#editor.request-page #card-form .dialog-actions .primary,#editor.request-page #card-form .dialog-actions .secondary{font-size:16px;min-height:42px}
@media(max-width:760px){
 #editor .dialog-heading h2{font-size:21px}
 #editor .request-page-toggle{font-size:12px;padding:7px}
 #editor #card-form textarea{font-size:18px;min-height:190px}
 #editor.request-page{padding:12px}
 #editor.request-page .dialog-heading{top:-12px;padding:10px 0}
 #editor.request-page .dialog-heading h2{font-size:22px}
 #editor.request-page #card-form textarea{font-size:18px;min-height:280px}
 #editor.request-page #card-form .dialog-actions{bottom:-12px}
}
/* end request-page-v1 */

/* team-directory-v1: small portraits, flat request rows, totals by currency */
.person-avatar{width:24px;height:24px;min-width:24px;flex:none;display:inline-grid;place-items:center;position:relative;vertical-align:middle;background:#e6e8ea;color:#59636c;border-radius:50%;overflow:hidden;font-size:10px;font-weight:600;line-height:1}
.person-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.person-avatar img[hidden]{display:none}
.person-name{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle}.person-name>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-name .person-avatar{width:21px;height:21px;min-width:21px}
.request-card .responsibility>span{display:flex;align-items:center;gap:4px;min-width:0}.request-card .responsibility b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.request-card .card-client{display:flex;align-items:center;gap:4px;min-width:0}.request-customer-company{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.request-customer-contact{display:flex;align-items:center;gap:5px;font-size:11px;line-height:1.4;margin:3px 0}.request-customer-contact .person-avatar{width:20px;height:20px;min-width:20px}
.request-column-head{flex-wrap:wrap;column-gap:6px;row-gap:4px}.request-stage-totals{flex-basis:100%;font-size:11px;line-height:1.3;color:#5c6670;font-weight:500;padding-left:27px;display:flex;flex-wrap:wrap;gap:3px 8px}.request-stage-totals span{white-space:nowrap}
html[data-design=rounded] .request-stage-totals{color:#657b99}
.request-list{width:100%;table-layout:fixed;min-width:1340px}.request-list th,.request-list td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:7px 9px!important;vertical-align:middle;line-height:24px!important;height:38px;box-sizing:border-box}.request-list th:first-child{width:24%}.request-list th:nth-child(2){width:15%}.request-list th:nth-child(3){width:15%}.request-list th:nth-child(4){width:15%}.request-list th:nth-child(5){width:12%}.request-list th:nth-child(6){width:9%}.request-list th:nth-child(7){width:10%}.request-list .person-name{max-width:100%}.request-list .request-title-cell{font-weight:500}.request-list .request-title-cell .archive-tag{font-size:10px;margin-left:6px;font-weight:400}
.request-list .entity-link{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;padding:0;border:0;background:none;color:inherit;cursor:pointer;font:inherit;text-align:left}.request-list .entity-link:hover{text-decoration:underline}
.request-products{display:flex;gap:6px;align-items:center;margin:8px 0}.request-products img{width:42px;height:42px;object-fit:contain;border:1px solid #d8dfe4;border-radius:5px;background:white}.request-products a{font-size:12px;color:inherit}.request-contact-source{font-size:12px;display:flex;gap:6px;align-items:center;padding:7px 0}
.request-product-mini{display:inline-flex;gap:3px;vertical-align:middle}.request-product-mini:empty{display:none}.request-product-mini img{width:30px;height:30px;object-fit:contain;background:white;border-radius:4px;vertical-align:middle;margin-right:4px}.request-list .request-product-mini img{width:24px;height:24px}

.request-list{min-width:1480px}.request-list th:first-child{width:22%}.request-list th:nth-child(2),.request-list th:nth-child(3),.request-list th:nth-child(4){width:14%}.request-list th:nth-child(5){width:11%}.request-list th:nth-child(6){width:9%}.request-list th:nth-child(7),.request-list th:nth-child(8){width:8%}

/* mobile-navigation-v1: retain the compact rail and reveal readable section names. */
#mobile-menu-toggle,.mobile-account,#mobile-menu-shade{display:none}
@media(max-width:760px){
 #workspace #sidebar{height:100dvh;overflow:hidden;min-height:0;box-sizing:border-box;gap:0}
 #workspace #sidebar>.wordmark{flex-shrink:0;margin:0 7px 4px}
 #workspace #sidebar>.space-name{display:none}
 #mobile-menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;gap:2px;width:100%;min-height:48px;padding:5px 0;margin:0 0 6px;border:1px solid #ffffff38;border-radius:5px;color:inherit;font-size:23px;line-height:1;background:#ffffff0a}
 #mobile-menu-toggle>span{font-size:10px;line-height:1.3}
 #workspace #sidebar>nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;margin:0 0 8px;scrollbar-width:thin;scrollbar-color:#7a858c transparent;-webkit-overflow-scrolling:touch}
 #workspace #sidebar>nav button{flex-shrink:0;min-height:44px;padding:8px 10px;margin-bottom:2px}
 #workspace #sidebar>.language{margin-top:0;flex:0 0 auto}
 #workspace #sidebar>.user{flex:0 0 auto;min-height:46px}
 #mobile-menu-shade:not([hidden]){display:block;position:fixed;inset:0;z-index:1100;background:#15212b80;border:0;padding:0;margin:0;width:100%;height:100dvh;cursor:pointer}
 body.mobile-nav-open{overflow:hidden}
 body.mobile-nav-open #workspace #sidebar{z-index:1101;width:min(290px,calc(100vw - 44px));padding:14px 10px 10px;box-shadow:8px 0 25px #0004}
 body.mobile-nav-open #sidebar>.wordmark{margin:0 5px 8px}
 body.mobile-nav-open #sidebar .wordmark .kav-logo{width:122px;height:39px;object-fit:contain;object-position:left}
 body.mobile-nav-open #mobile-menu-toggle{flex-direction:row;justify-content:flex-start;gap:12px;min-height:42px;padding:7px 12px;font-size:24px}
 body.mobile-nav-open #mobile-menu-toggle>span{font-size:15px}
 body.mobile-nav-open #sidebar>.mobile-account{display:flex;flex:0 0 auto;flex-direction:column;gap:3px;padding:7px 12px 12px;overflow-wrap:anywhere;font-size:14px}
 .mobile-account small{color:#b5c0c8;font-size:12px}
 body.mobile-nav-open #workspace #sidebar>nav button{display:flex;align-items:center;justify-content:flex-start;width:100%;gap:11px;padding:9px 12px;font-size:15px;line-height:1.25;min-height:44px;white-space:normal;text-align:left}
 body.mobile-nav-open #sidebar>nav button>span{flex-shrink:0;width:22px;font-size:20px}
 body.mobile-nav-open #sidebar>nav button>b{display:block;margin-left:auto}
 body.mobile-nav-open #workspace #sidebar>.language{display:grid;grid-template-columns:1fr 1fr;align-self:stretch;width:calc(100% - 12px);margin:0 6px 8px;padding:4px}
 body.mobile-nav-open #workspace #sidebar>.language button{font-size:13px;padding:7px}
 body.mobile-nav-open #sidebar .design-switcher{grid-column:1/-1}
 body.mobile-nav-open #sidebar .design-switcher select{padding:6px 25px 6px 8px;font-size:12px;background-position:right 8px center}
 body.mobile-nav-open #sidebar>.user{justify-content:flex-start;gap:9px;padding:9px 5px 0}
 body.mobile-nav-open #sidebar>.user>span:not(.avatar){display:block;font-size:13px;text-align:left}
 body.mobile-nav-open #sidebar>.user>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
}
