:root{font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:#352d3f;background:#faf8fc;font-size:16px}*{box-sizing:border-box}body{margin:0;display:flex}aside{width:236px;background:white;border-right:1px solid #e9e1ef;min-height:100vh;padding:36px 24px;position:fixed;inset:0 auto 0 0}aside p{font-size:14px;color:#8b799a;margin-bottom:48px}nav{display:grid;gap:12px}nav button{text-align:left;background:transparent;color:#65576f}nav button.selected{background:#eee5f6;color:#71518e;font-weight:700}aside small{position:absolute;bottom:28px;color:#8b799a}main{margin-left:236px;width:calc(100% - 236px);padding:28px 40px;max-width:1600px}.banner{padding:12px 18px;background:#efe6f6;border:1px solid #dfcdeb;border-radius:10px;font-size:14px;line-height:1.8}.banner strong{margin-right:12px;color:#755091}header{display:flex;justify-content:space-between;align-items:center;margin:28px 0}h1{font-size:30px;margin:4px 0}h2{font-size:18px;margin:0}.eyebrow{font-size:12px;letter-spacing:2px;color:#9074a6}button{border:0;border-radius:9px;padding:12px 18px;background:#8d6aa8;color:white;font:inherit;cursor:pointer}button:hover{filter:brightness(.95)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b89dd0;outline-offset:3px}label{display:grid;gap:8px;font-size:14px;color:#706277}input,select,textarea{border:1px solid #dcd3e4;padding:11px 12px;border-radius:8px;background:white;color:#352d3f;font:inherit;min-width:0;width:100%}.filters{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:24px;background:white;border:1px solid #eee7f3;border-radius:14px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:22px 0}.cards article{background:white;border:1px solid #e9e0f0;border-radius:14px;padding:24px}.cards span{font-size:14px;color:#86738f}.cards strong{display:block;font-size:30px;margin-top:18px;font-weight:600;letter-spacing:-1px}.cards article:first-child{background:#8e6faa;color:white}.cards article:first-child span{color:#f4ebfc}.tablebox{background:white;border:1px solid #ece5f2;border-radius:14px;overflow:hidden}.tablehead{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px}.tablehead span,.hint{font-size:14px;color:#8a7c94}.hint{padding:0 22px 16px;margin:0}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}th{text-align:left;background:#f7f2fa;color:#81718d;font-weight:500}th,td{padding:17px 20px;border-bottom:1px solid #f0eaf4}td.num{text-align:right;font-variant-numeric:tabular-nums}footer{font-size:13px;line-height:1.9;color:#8a7b93;padding:26px 0}#error,#saveError{color:#ad324f}dialog{border:1px solid #e8ddef;border-radius:16px;padding:22px;max-width:560px;width:calc(100% - 28px);max-height:90vh}dialog::backdrop{background:#30233b66}dialog label{margin-bottom:15px}dialog .tablehead{padding:0 0 20px}dialog form>button{width:100%}.quiet{background:#eee7f4;color:#755c88;margin-bottom:16px}.diary{padding:22px;background:white;border:1px solid #e9e0f0;border-radius:12px;margin:14px 0}.diary p{white-space:pre-wrap;line-height:1.8}.diary small{color:#8a7995}.tablehead p{font-size:14px;line-height:1.8;color:#81718c}@media(max-width:850px){body{display:block}aside{position:static;min-height:0;width:100%;padding:20px}aside img{width:150px;height:auto}aside p,aside small{display:none}nav{grid-template-columns:repeat(4,1fr);gap:5px;margin-top:20px}nav button{font-size:13px;padding:10px 5px;text-align:center}main{margin:0;width:100%;padding:18px}.filters{grid-template-columns:repeat(2,1fr);padding:16px;gap:14px}.cards{gap:8px}.cards article{padding:14px 10px}.cards strong{font-size:21px}.cards span{font-size:12px}h1{font-size:25px}header{margin:22px 0}header button{font-size:14px}.tablehead{padding:16px}.tablehead p{max-width:230px}}@media(max-width:410px){.cards{grid-template-columns:1fr}.cards article{display:flex;align-items:center;justify-content:space-between}.cards strong{margin:0}}

.pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:20px;flex-wrap:wrap}.pagination button:disabled{opacity:.4;cursor:default}

.mobilebar,#menuClose{display:none}#menuShade{position:fixed;inset:0;background:#30233b66;border-radius:0;z-index:39}#menuShade[hidden]{display:none}.overview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 12px}.overview-heading>span,.overview-note{font-size:13px;color:#7d6b88;line-height:1.7}.overview-cards{margin:12px 0}.staff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.staff-card{text-align:left;background:white;color:#554060;border:1px solid #e3d8ed;padding:18px}.staff-card strong{display:block;font-size:23px;margin:10px 0;font-variant-numeric:tabular-nums}.staff-card small{font-size:13px;color:#7d6b88}.product-panel{margin:24px 0;padding:6px 22px 14px;background:#fff;border:1px solid #e3d8ed;border-radius:14px}.product-rank{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0eaf4;font-size:14px}.product-rank:last-child{border:0}.product-rank .rank{color:#a288b7;font-size:18px}.product-rank>div{text-align:right}.product-rank small{display:block;margin-top:5px;color:#8a7c94;font-size:12px}.filter-heading{margin:30px 0 16px}#tableTitle{scroll-margin-top:84px}[hidden]{display:none!important}
@media(max-width:850px){.mobilebar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:18px;height:64px;background:white;border-bottom:1px solid #ece5f2;padding:10px 16px}.mobilebar img{height:auto}#menuToggle{display:grid;gap:5px;background:transparent;padding:12px;color:#71518e;width:44px;height:44px}#menuToggle span{display:block;width:22px;height:2px;background:currentColor}aside{position:fixed;inset:0 auto 0 0;width:280px;max-width:85vw;height:100dvh;z-index:40;padding:30px 22px;transform:translateX(-100%);visibility:hidden;overflow:auto}.menu-open aside{transform:translateX(0);visibility:visible}.menu-open{overflow:hidden}aside nav{grid-template-columns:1fr;gap:14px;margin-top:40px}aside nav button{text-align:left;font-size:16px;padding:16px}#menuClose{display:block;position:absolute;right:10px;top:10px;padding:8px 14px;background:transparent;color:#71518e;font-size:26px}main{padding:16px}.banner{font-size:12px;padding:8px 12px}header{margin:18px 0}.overview-heading{align-items:flex-start;flex-wrap:wrap}.overview-heading h2{font-size:17px}.overview-cards{grid-template-columns:1fr 1fr}.overview-cards article:first-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.overview-cards strong{margin:8px 0 0;font-size:25px}.overview-cards article:first-child strong{margin:0;font-size:29px}.overview-cards article{display:block;padding:16px}.overview-cards span{font-size:13px}.staff-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.staff-card{padding:14px}.staff-card strong{font-size:21px}.product-panel{padding:4px 14px 10px}.product-rank{grid-template-columns:25px minmax(0,1fr);gap:10px}.product-rank>div{grid-column:2;text-align:left;display:flex;align-items:center;gap:12px}.product-rank small{margin:0}.cards:not(.overview-cards){grid-template-columns:1fr}.cards:not(.overview-cards) article{display:flex;align-items:center;justify-content:space-between}.cards:not(.overview-cards) strong{margin:0}.filters{gap:12px}}

.sale-row{cursor:pointer}.sale-row:hover{background:#f7f1fb}.detail-button{background:#eee5f6;color:#71518e;font-size:13px;padding:9px 12px;white-space:nowrap}#saleDialog{padding:24px;width:calc(100% - 28px);max-width:640px}#saleDialog .tablehead{align-items:flex-start}#saleClose{background:#f2edf7;color:#71518e;font-size:22px;padding:5px 13px}.detail-total{background:#f3edf8;border-radius:12px;padding:20px}.detail-total span{display:block;font-size:14px;color:#7c668e}.detail-total strong{display:block;font-size:30px;margin-top:10px}#saleFields{margin:18px 0}#saleFields>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:15px;padding:14px 0;border-bottom:1px solid #eee7f3}#saleFields dt{color:#84738e;font-size:14px}#saleFields dd{margin:0;line-height:1.6;overflow-wrap:anywhere}.detail-note{font-size:13px;color:#887593;line-height:1.8}#saleDone{width:100%;margin-top:12px}@media(max-width:600px){#saleDialog{padding:20px;max-height:90dvh}#saleFields>div{grid-template-columns:1fr;gap:5px}#saleFields dd{font-size:16px}}

/* Product names wrap; all financial columns remain visible. */
.product-table{table-layout:fixed;white-space:normal}.product-table th,.product-table td{padding:15px 10px;vertical-align:top;overflow-wrap:anywhere;line-height:1.6}.product-table th:first-child{width:8%}.product-table th:nth-child(2){width:34%}.product-table th:nth-child(n+3){width:14.5%;text-align:right}.product-table td:nth-child(2){font-weight:500}.product-table td.num{font-size:14px;letter-spacing:-.3px}
@media(max-width:1100px){.product-table th:first-child{width:9%}.product-table th:nth-child(2){width:27%}.product-table th:nth-child(n+3){width:16%}.product-table th,.product-table td{padding:14px 8px}}
@media(max-width:700px){.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:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;padding:18px 16px;border-bottom:1px solid #e9e0f0}.product-table tbody td{display:block;padding:0;border:0;width:auto!important;min-width:0;text-align:left!important;letter-spacing:0}.product-table tbody td:first-child{grid-column:1/-1;color:#8a7795;font-size:13px}.product-table tbody td:first-child::before{content:'商品コード：'}.product-table tbody td:nth-child(2){grid-column:1/-1;font-size:16px;line-height:1.7;margin-bottom:4px}.product-table tbody td:nth-child(n+3)::before{content:attr(data-label);display:block;color:#887695;font-size:12px;font-weight:400;margin-bottom:4px}.product-table tbody td:nth-child(n+3){font-size:16px;font-weight:500}.product-table tbody td:nth-child(3){color:#71518e}.product-table tbody td[colspan]{grid-column:1/-1}.product-table tbody td[colspan]::before{content:none}}

.fiscal-summary{background:#f1eaf7;border:1px solid #dfd1ea;border-radius:14px;padding:6px 22px 22px;margin:24px 0}.fiscal-values{display:grid;grid-template-columns:1.2fr 1.2fr .8fr;gap:18px}.fiscal-values span{display:block;font-size:13px;color:#7d6b88}.fiscal-values strong{display:block;font-size:25px;margin-top:10px;font-variant-numeric:tabular-nums}.product-table th:first-child{width:7%}.product-table th:nth-child(2){width:28%}.product-table th:nth-child(3){width:9%}.product-table th:nth-child(n+4){width:14%}@media(max-width:700px){.fiscal-summary{padding:6px 16px 18px}.fiscal-values{grid-template-columns:1fr 1fr;gap:18px 12px}.fiscal-values>div:first-child{grid-column:1/-1}.fiscal-values strong{font-size:22px}.fiscal-values>div:first-child strong{font-size:28px}.product-table tbody td:nth-child(3){grid-column:1/-1;color:#84738e;font-size:14px}.product-table tbody td:nth-child(3)::before{display:inline;margin-right:12px}.product-table tbody td:nth-child(4){color:#71518e}}

.voice-box{background:#f5eff9;border-radius:12px;padding:16px;margin:16px 0}.voice-box p{font-size:14px;line-height:1.7}.voice-box button{margin:4px 4px 4px 0}.voice-box button:disabled{opacity:.45;cursor:default}.voice-box audio{width:100%;margin:12px 0}.voice-box a{display:block;color:#71518e;padding:10px 0}#diaryDialog h3{font-size:17px;margin:24px 0 16px}

#diaryContent{border:0;margin:20px 0;padding:0;min-width:0}#diaryContent legend{font-size:17px;font-weight:600;margin-bottom:12px}#diaryContent:disabled{opacity:.5}#diaryForm button:disabled{opacity:.45;cursor:not-allowed}
.plan-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.theme-text{white-space:pre-wrap;line-height:1.8;padding:18px;border-left:4px solid #ab8bc3;background:#f7f2fa}.month-budget-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:16px}#planningPanel .fiscal-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:22px 0}#budgetFigures strong{font-size:23px}.registry-row{display:flex;justify-content:space-between;gap:14px;align-items:center;width:100%;text-align:left;background:#fff;color:#493957;border:1px solid #e6dcec;border-radius:10px;padding:18px;margin:8px 0}.registry-row span{font-size:13px;color:#887294}.registry-row strong{overflow-wrap:anywhere}.history-record{white-space:pre-wrap;padding:12px;background:#f7f2fa;border-radius:8px;line-height:1.7}#customerPurchases p{font-size:14px;padding-bottom:10px;border-bottom:1px solid #eee7f3;line-height:1.6}#customerPanel{padding-bottom:20px}#customerForm>.quiet{margin-top:12px}#planDialog,#customerDialog{max-width:720px}#planError,#customerError{color:#ad324f}@media(max-width:700px){#planningPanel .fiscal-values{grid-template-columns:1fr 1fr}#budgetFigures strong{font-size:21px}.plan-controls{grid-template-columns:1fr}.registry-row{flex-direction:column;align-items:flex-start}.month-budget-grid{grid-template-columns:1fr 1fr}}

.home-logo{display:inline-block;border-radius:4px}.home-logo:focus-visible{outline:3px solid #aa8bc3}.budget-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:22px 0}.budget-toolbar label{max-width:200px}.budget-scroll{overflow:auto;border:1px solid #e3d7eb;border-radius:12px;max-height:70vh}#budgetGrid{min-width:1900px;background:white}#budgetGrid th,#budgetGrid td{padding:12px 8px}#budgetGrid thead th{position:sticky;top:0;z-index:2;background:#72518e;color:white}#budgetGrid th:first-child{position:sticky;left:0;z-index:1;min-width:150px;background:#f2eaf8;color:#604578}#budgetGrid thead th:first-child{z-index:3;background:#72518e;color:white}#budgetGrid input{width:120px;font-size:14px;color:#72518e;padding:10px 7px}#budgetGrid input[data-annual]{font-weight:700;width:145px}.allocation-total{font-size:13px;white-space:nowrap}#budgetGridStatus{color:#71518e;min-height:24px}@media(max-width:600px){.budget-toolbar{align-items:stretch;flex-direction:column}.budget-scroll{max-height:65vh}#budgetGrid th:first-child{min-width:105px;max-width:105px;white-space:normal;font-size:13px}}

.permission-badge{display:inline-block;background:#eee7f5;color:#74548e;border-radius:8px;padding:10px 12px;font-size:13px}#budgetGrid input[readonly]{background:#faf8fc;color:#615768;border-color:transparent;cursor:default}
#budgetBreakdown{overflow:auto;margin-top:18px}.breakdown-table{background:white;font-size:14px}.breakdown-table td{padding:12px}.schedule-scroll{overflow:auto;border:1px solid #e5dcec;border-radius:12px;max-height:75vh}#scheduleTable{min-width:2000px;table-layout:fixed;white-space:normal;background:white}#scheduleTable td,#scheduleTable th{padding:16px 12px;vertical-align:top;line-height:1.7;overflow-wrap:anywhere}#scheduleTable thead th{position:sticky;top:0;z-index:3;background:#74528f;color:white}#scheduleTable th:first-child{position:sticky;left:0;width:120px;background:#eee6f5;z-index:2}#scheduleTable thead th:first-child{z-index:4;background:#74528f}#scheduleTable tbody tr:nth-child(even){background:#faf7fc}

#channelBudget{margin:24px 0;border-top:1px solid #e5d8ee;padding-top:12px}.channel-table{white-space:normal;font-size:14px}.channel-table td,.channel-table th{padding:14px 12px}.channel-table tbody tr:last-child{background:#f1e8f7;font-weight:700}.channel-table td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}@media(max-width:700px){.channel-table,.channel-table tbody{display:block}.channel-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.channel-table tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:14px;border-bottom:1px solid #e5d8ee}.channel-table td{display:block;text-align:left!important;padding:0;border:0}.channel-table td:first-child{grid-column:1/-1;font-weight:700;color:#71518e}.channel-table td:not(:first-child)::before{content:attr(data-label);display:block;color:#887593;font-size:12px;margin-bottom:5px}}

.schedule-event summary{cursor:pointer;color:#654581;font-weight:600;min-height:44px;padding:8px 4px;border-radius:6px}.schedule-event summary:hover{background:#eee6f5}.schedule-event summary:focus-visible{outline:2px solid #74528f;outline-offset:2px}.schedule-kpi{margin:8px 0 0 12px;padding:10px 12px;border-left:3px solid #b29bc7;background:#f5eff9;border-radius:0 6px 6px 0;font-size:14px}.schedule-kpi strong{color:#74528f}.schedule-kpi p{margin:4px 0 0;white-space:pre-wrap}

.customer-purchase-link{background:transparent;color:#71518e;padding:4px 0;text-align:left;text-decoration:underline;text-underline-offset:4px;white-space:normal}#purchasesDialog{max-width:850px}#purchasesTitle{overflow-wrap:anywhere;line-height:1.6}#purchasesClose{flex-shrink:0}.purchases-table{white-space:normal;margin:18px 0}.purchases-table td:first-child{width:60%;overflow-wrap:anywhere}.purchases-table strong,.purchases-table small{display:block}.purchases-table small{color:#887593;margin-top:6px}.purchases-table .num{white-space:nowrap}#purchasesDone{width:100%}@media(max-width:600px){.purchases-table th,.purchases-table td{padding:12px 6px}.purchases-table td:first-child{width:52%}#purchasesDialog{padding:16px}}

.home-sales-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0 28px}.home-sales-summary article{background:white;border:1px solid #e9e0f0;border-radius:14px;padding:24px}.home-sales-summary article:first-child{border-top:4px solid #8e6faa}.home-sales-summary article>strong{display:block;font-size:32px;margin:14px 0;font-variant-numeric:tabular-nums}.home-sales-summary article>span{font-size:15px;color:#786485}.home-sales-summary p{font-size:14px;line-height:1.7}.comparison-base{display:block;color:#887593;font-size:13px}.home-sales-summary small{color:#887593;line-height:1.7;display:block}.home-sales-summary summary,#homeBudgetDetails>summary{cursor:pointer;color:#71518e;padding:12px 0;font-size:14px}#homeBudgetDetails{border-top:1px solid #eee7f3;margin-top:18px}#salesArea>.cards[hidden]{display:none}@media(max-width:600px){.home-sales-summary{grid-template-columns:1fr;gap:12px}.home-sales-summary article{padding:18px}.home-sales-summary article>strong{font-size:29px}}

.budget-comparison{color:#71518e;font-size:14px;line-height:1.8}.staff-card .budget-comparison{white-space:normal;display:block;margin-top:7px}#periodBudgetNote{padding:12px 16px;background:#eee5f6;border-radius:10px}

.suggestions{display:grid;gap:5px;max-height:260px;overflow:auto;margin:-6px 0 16px}.suggestions:empty{display:none}.suggestions button{background:#f4eef8;color:#654581;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.6}.suggestions button:hover{background:#e8dcf1}.suggestions p{margin:5px 0}.selected-products{display:flex;flex-wrap:wrap;gap:6px}.selected-products button{white-space:normal;text-align:left;line-height:1.6}#customerSelection{font-size:14px;color:#71518e}

.customer-contacts{border:1px solid #e8ddef;border-radius:10px;padding:16px;margin:18px 0}.customer-contacts legend{color:#71518e;padding:0 6px}

#purchasesDialog{max-width:1150px}.purchases-table td:first-child{width:30%;min-width:200px}.purchase-decline{background:#fff6f5}.purchases-table th{white-space:nowrap}#purchasesTotal{font-size:23px;line-height:1.6}@media(max-width:600px){.purchases-table thead{display:none}.purchases-table tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e8ddef;padding:10px 0}.purchases-table td{display:block;border:0;text-align:left!important;min-width:0!important;width:auto!important}.purchases-table td:first-child{grid-column:1/-1}.purchases-table td:not(:first-child):before{content:attr(data-label);display:block;font-size:12px;color:#887593;margin-bottom:4px}.purchases-table td[colspan]{grid-column:1/-1}}

.sales-actions{margin-top:24px;border-top:1px solid #e9e2ef;padding-top:16px}.action-card{padding:16px;border:1px solid #e5deed;border-radius:14px;margin:12px 0;background:#fff;overflow-wrap:anywhere}.action-card p{margin:8px 0}.action-card button{margin:8px 8px 0 0}.action-card progress{display:block;width:100%;height:12px;accent-color:#a58aba}.action-card.overdue{border-left:4px solid #b66065}#activityTargets,#activityDialog{width:min(700px,94vw);max-height:90dvh;overflow:auto;box-sizing:border-box}#activityTargets input,#activityTargets select,#activityDialog input,#activityDialog select{max-width:100%;box-sizing:border-box}.action-card small{display:block;color:#766d80}@media(max-width:600px){.sales-actions .tablehead{align-items:stretch;flex-direction:column}.action-card button{width:100%;margin-right:0}}

/* Customer action plans */
.ap-toolbar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:16px 0}.ap-toolbar label{flex:1;min-width:160px}.ap-theme{background:#fff;border:1px solid #e3d9eb;border-radius:18px;padding:24px;margin-bottom:24px}.ap-theme p,.ap-card-theme{white-space:pre-wrap;overflow-wrap:anywhere}.ap-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ap-person-card,.ap-customer-card{background:#fff;color:#33273c;border:1px solid #ded2e8;border-radius:16px;padding:22px;text-align:left;white-space:normal;line-height:1.6;box-shadow:0 4px 18px #45305b08;width:100%}.ap-person-card:hover,.ap-customer-card:hover{background:#faf6ff;border-color:#9574b2}.ap-person-card h3{font-size:21px;margin:0 0 12px}.ap-person-card strong{font-size:24px}.ap-person-card small,.ap-customer-card small{display:block;font-size:14px;color:#685774}.ap-card-theme{min-height:52px}.ap-open{display:block;color:#795895;margin-top:16px;font-weight:600}.ap-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.ap-metrics article{background:white;border:1px solid #e6deed;border-radius:14px;padding:18px}.ap-metrics span{display:block;color:#776983;font-size:14px}.ap-metrics strong{display:block;font-size:24px;margin-top:8px}.ap-tabs{display:flex;gap:8px;margin:24px 0;border-bottom:1px solid #ded2e8;padding-bottom:10px}.ap-tabs button{background:#eee7f4;color:#5c466d;flex:1}.ap-tabs button[aria-selected=true]{background:#795895;color:white}#apCustomerList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ap-customer-card h3{margin:0 0 8px}.ap-pill{display:inline-block;background:#f0e8f6;padding:3px 10px;border-radius:20px;font-size:14px}.ap-empty{padding:30px;background:white;border-radius:16px;grid-column:1/-1}#apReviews form{background:white;padding:24px;border-radius:16px;margin:20px 0}#apReviews label{display:block;margin:14px 0}#apReviews input,#apReviews textarea{width:100%;box-sizing:border-box}#apReviewHistory details{padding:16px;background:white;border:1px solid #e6deed;border-radius:12px;margin:10px 0}#apLegacy{margin-top:24px;padding:18px;background:white;border-radius:16px}#apPlanDialog{width:min(720px,94vw);max-height:90dvh;box-sizing:border-box;overflow:auto}#apPlanDialog input,#apPlanDialog textarea,#apPlanDialog select{max-width:100%;box-sizing:border-box}#apPlanDialog label{display:block;margin:12px 0}#apPlanHistory{max-height:300px;overflow:auto}#apStatus,#apPlanError{color:#a33e54}#apAllocation{font-size:14px;line-height:1.8}@media(max-width:1100px){.ap-people{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.ap-people,#apCustomerList{grid-template-columns:1fr}.ap-metrics{grid-template-columns:1fr;gap:8px}.ap-metrics article{display:flex;justify-content:space-between;align-items:center}.ap-metrics strong{font-size:20px;margin:0}.ap-theme{padding:18px}.ap-theme .tablehead{flex-wrap:wrap}.ap-tabs button{padding:10px 6px;font-size:14px}.ap-toolbar>*{width:100%}#apReviews form{padding:16px}.ap-person-card{padding:20px}.ap-card-theme{min-height:0}}

/* Direct access to the conversation entry form, outside navigation. */
.quick-diary{position:fixed;left:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:30;width:88px;height:88px;padding:10px 4px;border-radius:50%;background:#795595;color:#fff;border:3px solid #fff;box-shadow:0 6px 22px #54356b40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:13px;font-weight:700;line-height:1.4;touch-action:manipulation}.quick-diary-plus{font-size:29px;line-height:1}.quick-diary:hover{background:#694582;filter:none}.quick-diary:focus-visible{outline:3px solid #54336e;outline-offset:4px}.quick-diary:disabled{opacity:.45;cursor:wait}aside small{bottom:126px}aside{padding-bottom:160px;overflow-y:auto}.menu-open .quick-diary{visibility:hidden}@media(max-width:850px){.quick-diary{left:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:76px;height:76px;font-size:12px}main{padding-bottom:calc(112px + env(safe-area-inset-bottom))}aside{padding-bottom:30px}}
