/* Ink and water. Paper, Sumi panels, Hanken Grotesk. Loaded after styles.css. */
@font-face{
  font-family:"Hanken Grotesk";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face{
  font-family:"Yuji Syuku";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url("/fonts/yuji-syuku-honbu.woff2") format("woff2");
  unicode-range:U+672C,U+90E8;
}
:root{
  --sumi:#27221F;
  --beni:#ED2024;
  --paper:#F1ECE4;
  --ink:#27221F;
  --ink2:#4E4842;
  --muted:#6E675F;
  --border:#E4DCD2;
  --page:#F1ECE4;
  --red:#ED2024;
  --navy:#27221F;
  --navy-deep:#1B1715;
  --accent:#27221F;
  --accent-ink:#fff;
  --teal:#27221F;
  --teal-dark:#1B1715;
  --highlight:#fff;
  --highlight-ink:#27221F;
  --highlight-bar:transparent;
  --sidebar-ink:#f7f3ee;
  --shadow:0 1px 2px rgba(39,34,31,.05), 0 18px 40px -28px rgba(39,34,31,.35);
  font-family:"Hanken Grotesk","Segoe UI",sans-serif;
  color:#27221F;
  background:#F1ECE4;
}
html,body{
  font-family:"Hanken Grotesk","Segoe UI",sans-serif;
  background-color:#F1ECE4;
  background-image:url("/washi-light.jpg");
  background-image:image-set(url("/washi-light.webp") type("image/webp"), url("/washi-light.jpg") type("image/jpeg"));
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  color:#27221F;
}
h1{font-weight:300;letter-spacing:-.04em}
h2,h3{font-weight:500}
a{color:#27221F}
.account-summary strong,.shipment-summary strong,.warehouse-summary strong,.preview-card-total{
  font-weight:200;letter-spacing:-.05em;
}

/* Dark menu. The current page is a white pill. Menu and highlight colours only tint that pill. */
.shell{grid-template-columns:248px minmax(0,1fr)}
.shell.company-open{grid-template-columns:248px 200px minmax(0,1fr)}
.shell::before{
  content:"";
  grid-column:1;
  grid-row:1 / -1;
  min-height:100dvh;
  background:#27221F url("/washi-dark-grain.png") center/cover;
  pointer-events:none;
}
.sidebar{
  position:fixed;
  top:0;
  left:0;
  z-index:30;
  width:248px;
  height:100dvh;
  max-height:100dvh;
  overflow-x:hidden;
  overflow-y:auto;
  background:#27221F url("/washi-dark-grain.png") center/cover;
  color:#f7f3ee;
  padding:8px 10px 14px;
  min-width:0;
}
.brand{padding:18px 14px 10px;text-align:center}
.sidebar-mark{display:block;width:132px;height:auto;max-width:100%;margin:2px auto 14px;object-fit:contain}
.brand-name{display:flex;align-items:baseline;justify-content:center;gap:10px;margin:0;color:#fff;flex-wrap:nowrap;white-space:nowrap;max-width:100%}
.brand-name .honbu{font-size:22px;font-weight:500;letter-spacing:.01em;white-space:nowrap}
.brand-name .honbu-jp{font-family:"Yuji Syuku",serif;font-size:34px;font-weight:400;line-height:1;white-space:nowrap}
.company-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:12px}
.tag-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 8px 3px 8px;background:rgba(255,255,255,.94);color:#27221F;font-size:12.5px;line-height:1.3}
.tag-chip i{width:8px;height:8px;border-radius:50%;background:var(--tag,#27221F);flex:none}
.tag-chip button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:14px;line-height:1;padding:0 2px}
.tag-add{border:1px dashed rgba(255,255,255,.45);background:transparent;color:#fff;border-radius:999px;padding:4px 10px;cursor:pointer}
.tag-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tag-suggestions button{border:1px solid #E4DCD2;background:#fff;border-radius:999px;padding:4px 10px;cursor:pointer}
.tag-admin-list{display:flex;flex-direction:column;gap:10px;padding:8px 4px 16px}
.tag-admin{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #E4DCD2;border-radius:14px;background:#fff}
.tag-admin .tag-chip{background:#F7F3EE}
.tag-admin div{display:flex;flex-wrap:wrap;gap:6px}
.tag-filter{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:4px 0}
.tag-filter>span{font-size:13px;color:#6E675F}
.mailing-tick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#6E675F;font-size:14px}
.mailing-tick small{color:#6E675F}
.mailing-tick.is-locked{opacity:.75}
.company-mailing-line{display:inline-flex;gap:8px;margin-top:8px;padding:0;border:0;background:transparent;color:rgba(255,255,255,.78);cursor:pointer}
.company-mailing-line span{color:#fff}
.sync-banner{margin:0 0 12px;padding:10px 16px;border-radius:14px;background:#27221F;color:#fff}
.mailing-pause{display:flex;align-items:flex-start;gap:14px}
.mailing-pause .form-hint{margin:4px 0 0}
.brand-logo.brand-mark{width:156px;max-height:104px;height:auto;display:block;margin:4px auto 2px;object-fit:contain}
.brand-logo:not(.brand-mark){width:100%;max-height:104px;object-fit:contain;background:#fff;border-radius:14px;padding:8px}
.sidebar .nav-section{margin:1px 4px}
.sidebar .nav-section-toggle,.sidebar .nav-leaf,.sidebar .nav-item{
  color:rgba(247,243,238,.78);
  border-radius:12px;
  font-weight:500;
}
.sidebar .nav-section-toggle{padding:9px 12px}
.sidebar .nav-section.open>.nav-section-toggle{background:transparent;color:#fff}
.sidebar .nav-section-toggle:hover,.sidebar .nav-leaf:hover,.sidebar .nav-sub a:hover,.sidebar .nav-item[href]:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
}
.sidebar .nav-sub{border-left-color:rgba(255,255,255,.16);margin-left:22px}
.sidebar .nav-sub a,.sidebar .nav-leaf{border-radius:12px}
.sidebar .nav-sub a.active,.sidebar .nav-leaf.active,.sidebar .nav-item.active{
  background:var(--highlight,#fff);
  color:var(--highlight-ink,#27221F);
  box-shadow:inset 0 0 0 2px var(--highlight-bar,transparent);
  font-weight:600;
}
.sidebar .nav-sub a.active:hover,.sidebar .nav-leaf.active:hover,.sidebar .nav-item.active:hover{
  background:var(--highlight,#fff);
  color:var(--highlight-ink,#27221F);
}
.sidebar .nav-count,.sidebar .nav-item span:last-child:not(:first-child){
  background:rgba(255,255,255,.14);
  color:#fff;
  border-radius:99px;
  min-width:22px;
  text-align:center;
  padding:1px 6px;
}
.sidebar .nav-item.active span:last-child:not(:first-child){background:#E7E1DA;color:#27221F}
.sidebar-bottom{padding:12px 8px 0}
.signed-user{margin:12px 8px 6px}
.signed-user strong{font-weight:600}
.sidebar .avatar,.sidebar .avatar.small{background:#E7E1DA;color:#27221F;border-radius:50%}
.sidebar .sidebar-help.btn{
  color:rgba(247,243,238,.82);
  border-color:rgba(255,255,255,.18);
  border-radius:12px;
  background:transparent;
}
.sidebar .sidebar-help.btn:hover{background:rgba(255,255,255,.08)}

/* Top bar: search, clocks, open tasks, shipment figures. */
.workspace{
  background:transparent;
  height:100dvh;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.workspace > #main{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
}
.workspace > .workspace-footer{flex:none}
.dashboard-bar{
  position:relative;top:auto;z-index:25;flex:none;
  margin:12px 14px 0;
  min-height:0;
  padding:8px 10px 8px 12px;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
  container-type:inline-size;
  background:#fff;
  border:0;
  border-radius:22px;
  box-shadow:0 1px 2px rgba(39,34,31,.05), 0 14px 30px -20px rgba(39,34,31,.4);
}
.top-search{
  position:relative;flex:1 1 auto;min-width:140px;
  display:flex;align-items:center;gap:8px;
  height:42px;padding:0 14px;
  background:#F6F3EE;border-radius:21px;color:#6E675F;
}
.top-search svg{width:16px;height:16px;flex:none}
.top-search input{
  border:0;background:transparent;width:100%;min-width:0;
  padding:8px 0;font-size:.9rem;color:#27221F;outline:none;
  text-overflow:ellipsis;
}
.top-search input::placeholder{color:#8A8178}
.search-panel{
  position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:30;
  background:#fff;border-radius:16px;padding:6px;
  box-shadow:0 18px 40px -18px rgba(39,34,31,.45);
  max-height:320px;overflow:auto;
}
.search-panel a,.search-panel button{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:10px 12px;border:0;border-radius:12px;background:transparent;
  color:#27221F;text-align:left;text-decoration:none;font:inherit;
}
.search-panel a:hover,.search-panel button:hover{background:#F6F3EE;text-decoration:none}
.search-panel span{margin-left:auto;color:#6E675F;font-size:.8rem}
.search-panel p{margin:0;padding:12px;color:#6E675F;font-size:.875rem}
.dashboard-bar .world-clock{
  display:flex;gap:14px;flex:none;align-items:center;
  padding:0 4px 0 2px;border-right:1px solid #E7E1DA;
}
.dashboard-bar .clock-widget{
  display:flex;flex-direction:column;gap:1px;
  border:0;background:transparent;padding:0 2px;min-width:0;
}
.dashboard-bar .clock-widget span{display:block}
.clock-label{font-size:11px;font-weight:500;color:#8A8178;letter-spacing:0}
.clock-japan .clock-label{color:#8A8178}
.clock-widget time{font-size:15px;font-weight:600;letter-spacing:-.02em;color:#27221F;line-height:1.15}
.header-widgets{
  display:flex;align-items:center;gap:8px;flex:none;width:max-content;min-width:0;overflow:visible;
}
.dashboard-widget{
  display:flex;flex-direction:column;justify-content:center;gap:1px;
  flex:none;min-width:0;text-decoration:none;
  background:#F6F3EE;border:0;border-radius:16px;
  padding:7px 12px;color:#27221F;
}
.dashboard-widget:hover{background:#EFEAE4;text-decoration:none}
.dashboard-widget small{font-size:11px;font-weight:500;color:#6E675F;white-space:nowrap}
.dashboard-widget strong{font-size:14px;font-weight:600;letter-spacing:-.02em;white-space:nowrap}
.dashboard-widget.stat-dark{background:#27221F;color:#fff}
.dashboard-widget.stat-dark small{color:rgba(255,255,255,.62)}
.dashboard-widget.stat-dark:hover{background:#3A332F}
.dashboard-widget.stat-tasks{
  flex-direction:row;align-items:center;gap:8px;
  background:transparent;padding:0 4px 0 2px;
}
.dashboard-widget.stat-tasks:hover{background:transparent}
.stat-count{
  width:28px;height:28px;border-radius:50%;background:#27221F;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:600;flex:none;
}
.stat-task-copy{display:flex;flex-direction:column;line-height:1.15}
.stat-task-copy>span:first-child{font-size:13px;font-weight:600}
.stat-overdue{color:#ED2024;font-size:11px;font-weight:600}
main{padding:18px 18px 36px}
.import-report{display:flex;flex-direction:column;gap:14px}
.arrange-tools{display:flex;justify-content:flex-end;gap:8px;margin:0 0 12px}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.company-row-actions{display:flex;align-items:center;gap:6px}
.main-star{border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#C4B8A8;padding:2px 4px}
.main-star.is-main{color:#8A6A2F}
.unlink-company{border:0;background:transparent;color:#6E675F;cursor:pointer;font-size:16px;line-height:1;padding:2px 4px}
.company-search-results{display:flex;flex-direction:column;gap:4px;margin:0 0 12px;max-height:220px;overflow:auto}
.company-search-results button{text-align:left;border:1px solid transparent;background:#F6F3EE;border-radius:8px;padding:8px 10px;cursor:pointer}
.company-search-results button.is-picked{border-color:#27221F}
.drive-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 14px;flex-wrap:wrap}
.drive-crumbs{display:flex;gap:6px;align-items:center;min-width:0}
.drive-crumbs button{border:0;background:transparent;color:#27221F;cursor:pointer;padding:0}
.drive-views{display:flex;gap:6px}
.drive-browser{min-height:calc(100dvh - 280px)}
.drive-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid rgba(39,34,31,.12)}
.drive-table th,.drive-table td{text-align:left;padding:8px 12px;border-bottom:1px solid rgba(39,34,31,.08);font-weight:500}
.drive-table th button{border:0;background:transparent;font:inherit;cursor:pointer;padding:0}
.drive-table tr.is-open td{background:#F3EEE6}
.drive-columns{display:flex;align-items:stretch;height:calc(100dvh - 280px);min-height:480px;overflow:auto;background:#fff;border:1px solid rgba(39,34,31,.16)}
.drive-column{display:flex;flex-direction:column;min-width:240px;height:100%;overflow:auto;border-right:1px solid rgba(39,34,31,.16);padding:4px 0}
.drive-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;padding:7px 12px;cursor:pointer;color:#27221F}
.drive-item.is-open{background:#E7D7C4}
.drive-chev{margin-left:auto;color:#6E675F}
.drive-icon{width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.drive-icon-folder{color:#8A6A2F;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h6l2 2h10v11H3z'/%3E%3C/svg%3E")}
.drive-icon-pdf{color:#8C4A3A;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8l4 4v16H6z'/%3E%3C/svg%3E")}
.drive-icon-image{color:#3E6B4F;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v14H4zM8 13l2-2 4 4 2-2 2 2V7H6v8z'/%3E%3C/svg%3E")}
.drive-icon-doc{color:#2C4A6E;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l3 3v17H6zM8 9h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E")}
.drive-icon-sheet{color:#3E6B4F;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h14v18H5zM8 8h8v2H8zm0 4h3v2H8zm5 0h3v2h-3z'/%3E%3C/svg%3E")}
.drive-icon-file{color:#6E675F;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8l4 4v16H6z'/%3E%3C/svg%3E")}
.drive-preview-col{padding:16px;min-width:260px}
.drive-preview-col img{width:100%;max-height:280px;object-fit:contain;background:#F6F3EE;border-radius:12px}
.drive-preview-col .drive-icon{width:120px;height:120px;margin:8px 0 12px}
.drive-preview-col dl{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:12px 0}
.drive-connect{max-width:560px}
.drive-notice{margin:0 0 10px}
.company-file{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid rgba(39,34,31,.08)}
.overdue-banner{background:#8C2F2F;color:#fff;padding:14px 18px;display:flex;flex-direction:column;gap:8px}
.overdue-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;font-size:18px;font-weight:600}
.overdue-line .btn,.overdue-summary{background:#fff;color:#8C2F2F;border:0}
.overdue-summary{font-weight:700;border-radius:8px;padding:8px 12px;cursor:pointer}
.box-grip{display:none}
.profile-board.arranging{background-image:linear-gradient(to right,rgba(39,34,31,.08) 1px,transparent 1px),linear-gradient(to bottom,rgba(39,34,31,.08) 1px,transparent 1px);background-size:calc(100% / 24) 16px}
.arranging .grid-stack-item-content{outline:1px dashed rgba(39,34,31,.45);outline-offset:-4px}
.arranging .box-grip{display:block;position:absolute;z-index:3;top:8px;left:8px;width:28px;height:18px;border-radius:4px;background:#F6F3EE;cursor:grab}
.arranging .box-grip::before{content:'';display:block;width:12px;height:2px;margin:4px auto 0;background:#6E675F;box-shadow:0 4px 0 #6E675F,0 8px 0 #6E675F}
.arranging .grid-stack-item>.ui-resizable-se{display:block;opacity:1}
@media(max-width:820px){
 .profile-board.grid-stack{display:flex;flex-direction:column;gap:14px;height:auto !important;background-image:none}
 .profile-board.grid-stack>.grid-stack-item{position:static !important;width:auto !important;height:auto !important;left:auto !important;top:auto !important}
 .profile-board.grid-stack>.grid-stack-item>.grid-stack-item-content{position:static;width:auto;height:auto !important}
 .arrange-tools{display:none}
}
.no-company{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;background:#F6F3EE;color:#6E675F;font-size:12.5px;font-weight:600}
.import-report h2{font-weight:500;margin:0 0 8px}
.import-people{margin:0;padding-left:18px}
.import-people li{margin:6px 0;line-height:1.45}
.import-counts{width:100%;border-collapse:collapse}
.import-counts td{padding:6px 10px 6px 0;vertical-align:top}

/* Shared surfaces. */
.card,.list-panel,.settings-card,.calendar-panel,.preview-shipment-card,.contact-hero,.wh-card{
  background:#fff;border-color:rgba(39,34,31,.08);border-radius:18px;
  box-shadow:var(--shadow);
}
.page-heading h1{font-weight:300}
.count-pill,.badge,.badge.dealer,.badge.active,.badge.prospect,.badge.inactive,.badge.supplier,.badge.competitor,.badge.neutral,.badge.aquatic,.badge.government,.primary-tag,.more-count{
  background:#EFEAE4;color:#3C3734;border-color:transparent;border-radius:999px;font-weight:500;
}
.status-dot::before{background:#27221F}
.avatar,.contact-avatar{background:#E7E1DA;color:#27221F}
.avatar{border-radius:50%}
.company-avatar{border-radius:16px;background:#E7E1DA;color:#27221F}
.btn{border-radius:12px;border-color:#E4DCD2}
.btn.primary,.btn.primary:hover{background:#27221F;border-color:#27221F;color:#fff;box-shadow:none}
.btn.primary:hover{background:#3A332F}
.btn.danger,.btn.danger:hover{background:#fff;color:#ED2024;border-color:#ED2024}
.btn.text-btn,.text-link,.card-action.btn{color:#27221F}
.tabs>a.selected,.warehouse-tabs a[aria-current=page]{color:#27221F;border-color:#27221F}
th[aria-sort=ascending],th[aria-sort=descending]{color:#27221F}
thead, .calendar-weekdays{background:#F7F4F0}
.calendar-day.selected-day{background:#EFEAE4;box-shadow:inset 0 0 0 1px #27221F}
.contacts-list .table-scroll{overflow:auto}
.contacts-list table.dense{min-width:680px}
.contacts-list table.dense td,.contacts-list table.dense th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:40px;padding:8px 12px;vertical-align:middle}
.shell.company-open .dashboard-widget[data-dashboard-widget="active-dealers"]{display:none}
@container (max-width:700px){
  .dashboard-widget[data-dashboard-widget="boxes-booked"]{display:none}
}
.calendar-chip{background:#EFEAE4;color:#27221F}
.task-tick{border-radius:50%;border-color:#C9C1B8;background:#fff;color:#fff}
.completed-item .task-tick{background:#27221F;border-color:#27221F}
.overdue-item .text-link{color:#ED2024}
.dnc-small,.btn.danger-quiet{color:#ED2024}
.dnc-banner{background:#FBF7F6;color:#6E3030;border-color:#F0D4D2;border-left-color:#ED2024}
.selection-bar{background:#F6F3EE;border-top-color:#E6DFD6;color:#27221F}
.settings-card:hover{border-color:#27221F;background:#fff}
.settings-card>svg{color:#27221F}
.preview-shipment-card:hover,.preview-shipment-card.selected{border-color:#27221F;background:#fff}
.preview-shipment-card.selected{box-shadow:inset 0 0 0 2px #27221F}
.company-nav{
  position:sticky;
  top:12px;
  align-self:start;
  background:#fff;
  border:0;
  border-radius:22px;
  margin:12px 0 12px 12px;
  height:calc(100dvh - 24px);
  max-height:calc(100dvh - 24px);
  overflow:auto;
  box-shadow:var(--shadow);
}
.company-nav a{color:#4E4842}
.company-nav a:hover{background:#F6F3EE}
.company-nav a.active{background:#27221F;color:#fff}
.contact-drawer{border-left-color:#E4DCD2}
dialog{border-radius:20px;border-color:#E4DCD2}
.toast{background:#27221F}
.login-page{background-color:#F1ECE4;background-image:url("/washi-light.jpg");background-image:image-set(url("/washi-light.webp") type("image/webp"), url("/washi-light.jpg") type("image/jpeg"));background-repeat:no-repeat;background-position:center;background-size:cover}
.login-brand{background:#27221F url("/washi-dark-grain.png") center/cover;color:#fff}
.login-brand .brand-mark{width:210px;max-height:140px;margin:0}
.login-rule{background:rgba(255,255,255,.4)}
.login-content{background:transparent}
.login-form h1{font-weight:300;letter-spacing:-.04em}
.search-field,.top-search{color:#6E675F}
input,select,textarea{border-color:#E4DCD2;border-radius:10px}

@media(max-width:1250px){
  .shell{grid-template-columns:220px minmax(0,1fr)}
  .shell.company-open{grid-template-columns:210px 176px minmax(0,1fr)}
  .sidebar{width:220px}
  .shell.company-open .sidebar{width:210px}
  .brand{padding:14px 8px 8px}
  .sidebar-mark{width:108px;margin-bottom:10px}
  .brand-name{gap:6px}
  .brand-name .honbu{font-size:17px}
  .brand-name .honbu-jp{font-size:24px}
  .dashboard-widget[data-dashboard-widget="active-dealers"]{display:none}
}
@media(max-width:1100px){
  .dashboard-bar{flex-wrap:nowrap}
  .top-search{flex:1 1 auto;min-width:140px}
  .header-widgets{flex:none;width:max-content;overflow:visible}
  .dashboard-widget{flex:none}
}
@media(max-width:1000px){
  .shell{grid-template-columns:200px minmax(0,1fr)}
  .shell.company-open{grid-template-columns:190px 160px minmax(0,1fr)}
  .sidebar{width:200px}
  .shell.company-open .sidebar{width:190px}
  .dashboard-bar .world-clock{display:flex}
}
@media(max-width:720px){
  .shell{display:block}
  .shell::before{display:none}
  .dashboard-bar{flex-wrap:wrap;margin:8px;top:8px;padding:8px;border-radius:18px;gap:8px}
  .top-search{flex:1 1 auto;height:40px}
  .dashboard-bar .world-clock{border:0;padding:0;flex:none}
  .header-widgets{gap:6px}
  .clock-widget time{font-size:14px}
  .sidebar{
    display:none;position:fixed;left:8px;top:176px;width:min(280px,calc(100vw - 16px));
    height:calc(100dvh - 188px);z-index:40;border-radius:18px;
    box-shadow:0 24px 50px -20px rgba(20,16,14,.65);
  }
  .sidebar .brand{padding:8px 10px 2px}
  .sidebar .brand-logo.brand-mark{width:128px;max-height:84px}
  .sidebar .nav-section-toggle,.sidebar .nav-leaf,.sidebar .nav-sub a,.sidebar .nav-item{min-height:34px;padding-top:6px;padding-bottom:6px}
  .sidebar .signed-user{margin:8px 8px 4px}
  .nav-open .sidebar{display:flex}
  .shell.company-open .company-nav{
    margin:0 8px 8px;border:0;border-radius:16px;background:#fff;
    box-shadow:var(--shadow);
  }
  .login-brand .brand-mark{width:150px;max-height:96px}
}
@media print{
  body,html{background:#fff}
  .shell::before,.sidebar,.topbar,.dashboard-bar{display:none}
}

/* Home: greeting, the chosen panel, photo frames and three figures. */
.home{display:flex;flex-direction:column;gap:14px}
.home-greet p{margin:0 0 4px;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#6E675F}
.home-greet h1{font-size:clamp(2rem,4vw,3.4rem);font-weight:300;letter-spacing:-.04em;line-height:1.05}
.home-hero{
  position:relative;overflow:hidden;display:flex;gap:18px;align-items:stretch;
  min-height:0;padding:28px 28px 24px;border-radius:26px;color:#fff;
  background:#27221F url("/washi-dark-grain.png") center/cover;
  background-image:url("/washi-dark-grain.png"),radial-gradient(120% 140% at 85% 18%,#3A332F 0%,#27221F 46%,#1B1715 100%);
  background-size:cover,auto;
  box-shadow:0 24px 50px -28px rgba(20,16,14,.55);
}
.home-ripples{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 46% 28% at 78% 18%,transparent 40%,rgba(255,255,255,.05) 41%,transparent 42%),radial-gradient(ellipse 70% 40% at 78% 18%,transparent 48%,rgba(255,255,255,.04) 49%,transparent 50%)}
.home-hero-copy,.home-frames{z-index:1}
.home-hero-copy{position:relative;flex:0 1 400px;max-width:44%;min-width:0;display:flex;flex-direction:column}
.home-kicker{margin:0;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.62)}
.home-huge{display:block;margin:8px 0 0;color:#fff;font-weight:200;font-size:clamp(92px,12vw,168px);letter-spacing:-.06em;line-height:.85;text-decoration:none}
.home-huge:hover{text-decoration:none;color:#fff}
.home-hero-label{margin:12px 0 18px;font-size:20px;font-weight:300;color:rgba(255,255,255,.86)}
.home-todos{list-style:none;margin:0;padding:0;max-width:640px}
.home-todos li{display:flex;align-items:baseline;gap:12px;padding:9px 0;border-top:1px solid rgba(255,255,255,.14)}
.home-todos li:first-child{border-top:0}
.home-todos .text-link{color:#fff;font-size:15px;font-weight:500;background:none;border:0;padding:0;text-align:left}
.home-todos .text-link:hover{text-decoration:underline}
.home-todos li span{margin-left:auto;color:rgba(255,255,255,.62);font-size:12px;white-space:nowrap}
.home-todo-overdue span{color:#ED2024;font-weight:600}
.home-todo-overdue span::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#ED2024;box-shadow:0 0 0 4px rgba(237,32,36,.18);vertical-align:middle}
.home-empty{max-width:460px}
.home-empty strong{display:block;font-size:18px;font-weight:500}
.home-empty p,.home-more{color:rgba(255,255,255,.72);font-size:14px;margin:6px 0 0}
.home-empty a,.home-more{color:#fff}
.home-frames{position:relative;flex:1 1 58%;min-width:0;aspect-ratio:8/5;align-self:center;pointer-events:none}
.home-hero:not(:has(.home-hero-copy)) .home-frames{flex-basis:100%;width:100%}
.print{position:absolute;background:#FBFAF8;padding:10px 10px 0;box-shadow:0 24px 40px -22px rgba(0,0,0,.7);color:#6E675F}
.print-well{display:block;background:repeating-linear-gradient(135deg,#F3EEE8,#F3EEE8 8px,#E7E1DA 8px,#E7E1DA 9px);border:1px dashed #D9D1C7}
.print-hit{position:relative;display:block;width:100%;margin:0;padding:0;border:0;background:#F3EEE8;cursor:pointer;color:inherit;font:inherit;text-align:left}
.print-photo{display:block;width:100%;object-fit:cover;background:#F3EEE8;touch-action:none}
.print-matte{position:absolute;inset:0;background:#F3EEE8;pointer-events:none;transition:opacity .16s linear}
.print-photo.is-ready+.print-matte{opacity:0}
.print-invite{position:absolute;left:12px;right:12px;top:42%;text-align:center;font-size:12px;font-weight:600;letter-spacing:.02em;color:#6E675F;pointer-events:none;opacity:.72}
.print:hover .print-invite,.print:focus-within .print-invite{opacity:1}
.frame-menu{position:absolute;left:8px;top:42px;z-index:5;min-width:180px;padding:6px;border-radius:12px;background:#fff;color:#27221F;box-shadow:0 18px 40px -22px rgba(0,0,0,.7)}
.frame-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:8px 10px;cursor:pointer;color:#27221F}
.frame-menu button:hover{background:#F3EEE8}
.frame-menu button:disabled{color:#A39C94;cursor:default}
.frame-menu p{margin:2px 10px 8px;color:#6E675F;font-size:12px;line-height:1.35}
.print figcaption{display:block;height:28px}
.home-frames .print{width:22%;pointer-events:auto}
.home-frames .print .print-well,.home-frames .print .print-photo{height:auto;aspect-ratio:1/1}
.home-frames .print-spot-0{left:2%;top:2%;transform:rotate(-3deg)}
.home-frames .print-spot-1{left:26%;top:0;transform:rotate(2.5deg)}
.home-frames .print-spot-2{left:50%;top:3%;transform:rotate(-2deg)}
.home-frames .print-spot-3{left:73%;top:1%;transform:rotate(2.5deg)}
.home-frames .print-spot-4{left:8%;top:46%;transform:rotate(2.5deg)}
.home-frames .print-spot-5{left:34%;top:48%;transform:rotate(-2.5deg)}
.home-frames .print-spot-6{left:60%;top:45%;transform:rotate(2deg)}
.home-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 0 12px}
.home-num{display:flex;flex-direction:column;gap:8px;padding:8px 8px 8px 22px;border-left:1px solid #DCD7D2;color:#27221F;text-decoration:none;min-width:0}
.home-num:first-child{border-left:0;padding-left:8px}
.home-num:hover{text-decoration:none}
.home-num .huge{font-weight:200;font-size:clamp(64px,7vw,96px);letter-spacing:-.06em;line-height:.9}
.home-num span:nth-child(2){font-size:15px;color:#4E4842}
.home-num small{font-size:12.5px;color:#6E675F;line-height:1.4;padding-right:8px}
.home-facts{display:flex;flex-wrap:wrap;gap:14px 22px;list-style:none;margin:14px 0 0;padding:0}
.home-facts span{display:block;color:rgba(255,255,255,.7);font-size:.8rem}
.home-facts strong{font-weight:500;font-size:1.05rem}
.home-appointment{margin-top:8px}
.home-appointment a{color:#fff}
.coming-later{opacity:.72}
.coming-later p,.coming-later label{color:#6E675F}
@media(max-width:900px){
  .home-hero{flex-direction:column;min-height:0;padding:24px 20px 28px}
  .home-hero-copy{flex:none;max-width:none;width:100%}
  .home-frames{position:relative;inset:auto;width:100%;min-width:0;flex:none;aspect-ratio:5/4;pointer-events:none}
  .home-nums{grid-template-columns:1fr}
  .home-num,.home-num:first-child{border-left:0;border-top:1px solid #DCD7D2;padding:16px 4px}
  .home-nums .home-num:first-child{border-top:0}
}
@media(max-width:720px){
  .home-huge{font-size:72px}
  .home-hero{padding:18px 16px 16px}
  .home-hero-label{font-size:16px;margin-bottom:10px}
  .home-todos li{align-items:flex-start;flex-wrap:wrap}
  .home-todos li span{margin-left:0}
  .home-frames{aspect-ratio:5/4}
}
.home-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.home-tabs a{border:1px solid #27221F;border-radius:999px;padding:6px 14px;background:#fff;color:#27221F;text-decoration:none;font-size:14px;font-weight:650}
.home-tabs a.is-on{background:#27221F;color:#fff;border-color:#27221F}
.home-latest-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.home-latest-list li{display:flex;gap:12px;align-items:baseline}
.home-latest-list span{color:#6E675F}
.home-tab-person{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 10px}

/* Company page: dark header on the existing record. No new fields. */
.company-hero{
  position:relative;display:flex;gap:18px;align-items:stretch;
  margin:0 0 16px;padding:26px 28px;border-radius:26px;color:#fff;overflow:hidden;
  background:#27221F url("/washi-dark-grain.png") center/cover;
  background-image:url("/washi-dark-grain.png"),radial-gradient(120% 140% at 88% 12%,#3A332F 0%,#27221F 48%,#1B1715 100%);
  background-size:cover,auto;
  box-shadow:0 24px 50px -28px rgba(20,16,14,.55);
}
.company-page-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.company-page-bar .profile-actions{margin:0}
.company-logo-hit{padding:0;border:0;background:transparent;cursor:pointer;border-radius:16px}
.company-logo-hit .is-empty{box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.company-hero-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;position:relative;z-index:1}
.company-hero-top{display:flex;flex-direction:column;align-items:stretch;gap:14px}
.company-hero .profile-actions{order:-1;justify-content:flex-start}
.company-hero-id{display:flex;align-items:flex-start;gap:14px;min-width:0}
.company-hero h1{font-weight:200;font-size:clamp(40px,4vw,64px);letter-spacing:-.045em;line-height:.95;color:#fff;overflow-wrap:break-word}
.company-hero .legal-name{color:rgba(255,255,255,.7);margin:6px 0 0}
.company-hero .badges{margin-top:2px}
.company-hero-facts{display:flex;flex-wrap:wrap;gap:8px 18px;color:rgba(255,255,255,.86);font-size:14px}
.company-hero-facts span{display:inline-flex;align-items:center;gap:7px;overflow-wrap:anywhere}
.company-hero-facts svg{width:15px;height:15px;opacity:.7}
.company-hero .profile-actions{flex-wrap:wrap}
.company-hero .btn{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.22)}
.company-hero .btn:hover{background:rgba(255,255,255,.16)}
.company-hero .btn.primary,.company-hero .btn.primary:hover{background:#fff;color:#27221F;border-color:#fff}
.company-hero .text-btn{color:rgba(255,255,255,.82);background:transparent;border-color:transparent}
.company-hero .menu-panel{color:#27221F;width:260px;left:0;right:auto}
.profile-identity{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.profile-identity .company-avatar,.profile-identity .avatar{width:48px;height:48px;border-radius:12px}
.profile-name{display:block;font-size:18px;font-weight:650;letter-spacing:-.02em}
.profile-identity p{margin:2px 0 0;color:#6E675F}
.profile-fields{display:flex;flex-direction:column;gap:19px}
.profile-field>span{display:block;font-size:.75rem;color:#6a7f8d;margin:0 0 4px}
.profile-field>div{font-size:.875rem;line-height:1.65;overflow-wrap:anywhere}
.profile-social{display:flex;flex-flow:row wrap;gap:8px;margin:0;align-items:flex-start}
.profile-social a{flex:0 0 auto;width:auto;max-width:100%;border:1px solid #E4DCD2;border-radius:999px;padding:4px 10px;background:#F7F4F0;color:#27221F;text-decoration:none;font-size:13px;font-weight:400;line-height:1.4;white-space:nowrap}
.range-pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.range-pill{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.28);border-radius:8px;padding:3px 7px;background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:650;line-height:1.15;cursor:pointer}
.range-pill .range-name{min-width:0;overflow-wrap:anywhere}
.range-mark{width:26px;height:26px;flex:none;display:block;pointer-events:none}
.company-hero .locator-switch{flex-basis:100%;color:rgba(255,255,255,.88);margin-top:4px}
.locator-switch{display:flex;align-items:center;gap:8px;margin:2px 0 0;font-size:13px;color:#27221F}
.stock-block{margin:0}
.stock-block h3{margin:0 0 8px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6E675F;font-weight:600}
.company-hero .menu-panel .btn{background:#fff;color:#27221F;border-color:transparent}
.company-hero .menu-reason{position:relative;display:block}
.company-hero .menu-reason .btn{width:100%;pointer-events:none}
.company-hero .menu-reason:hover::after,.company-hero .menu-reason:focus-within::after{content:attr(data-reason);position:absolute;left:calc(100% + 8px);top:4px;width:max-content;max-width:220px;padding:8px 10px;border-radius:8px;background:#27221F;color:#fff;font-size:13px;line-height:1.4;white-space:normal;z-index:6;box-shadow:0 8px 20px rgba(20,16,14,.28)}
.company-hero .menu-panel .btn.danger-quiet{color:#ED2024}
.company-hero .company-avatar,.company-hero .avatar{width:54px;height:54px;border-radius:14px}
.company-dnc{display:flex;align-items:flex-start;gap:8px;margin:0;max-width:680px;color:#ED2024;font-size:14px;line-height:1.45}
.company-dnc i{width:8px;height:8px;margin-top:6px;border-radius:50%;background:#ED2024;box-shadow:0 0 0 4px rgba(237,32,36,.2);flex:none}
.company-dnc span span{color:rgba(255,255,255,.72)}
.company-frames{width:210px;flex:none;position:relative;min-height:230px;z-index:1}
.company-frames .print{position:absolute;right:0;top:8px;width:188px;transform:rotate(1.5deg)}
.company-frames .print-well,.company-frames .print-photo{height:188px}
.company-hero + .closed-banner,.company-hero ~ .last-contact{margin-top:0}
.last-contact{background:#fff;border-radius:16px;border-color:rgba(39,34,31,.08);box-shadow:var(--shadow)}
@media(max-width:900px){
  .company-hero{flex-direction:column;padding:20px 16px 18px}
  .company-hero-top{flex-direction:column}
  .company-hero .profile-actions{justify-content:flex-start;width:100%}
  .company-frames{width:100%;min-height:160px}
  .company-frames .print{width:140px;right:8px;top:0}
  .company-frames .print-well,.company-frames .print-photo{height:130px}
}
@media(max-width:720px){
  .company-nav{position:static;margin:0 8px 8px;height:auto;max-height:none;border-radius:16px}
  .company-hero h1{font-size:36px}
  .company-hero .profile-actions .btn{flex:1 1 auto}
}
.company-hero .contact-avatar{width:56px;height:56px;border-radius:50%;background:#E7E1DA;color:#27221F;display:flex;align-items:center;justify-content:center;font-weight:600;flex:none;font-size:16px}
.company-hero-facts a{color:#fff;font-weight:600}
.company-hero-facts a:hover{color:#fff}
.contact-row-name{display:inline-flex;align-items:center;gap:8px;max-width:100%;vertical-align:middle}
.contact-row-name .avatar{width:26px;height:26px;font-size:10px}
.contact-page .marketing-section{border:0;margin:0;padding:0;background:transparent}
.contact-page{align-items:start}
.contact-marketing-card .switch input:checked+span{background:#27221F;border-color:#27221F}

/* Remaining screens share the paper, a thin page title and white cards. */
.page-heading h1{font-weight:300;letter-spacing:-.04em}
.page-heading p{max-width:640px}
.empty-screen{max-width:720px}
.empty-screen .empty{padding:48px 24px}
.warehouse-summary>a,.preview-shipment-card,.settings-card,.calendar-panel{border-radius:18px;box-shadow:var(--shadow)}
.warehouse-summary>a:hover,.warehouse-tabs a[aria-current=page]{border-color:#27221F;color:#27221F}
.warehouse-amber{background:#FBF3E4}
.sku-line{display:flex;align-items:center;gap:10px}
.sku-thumb,.sku-photo{display:block;object-fit:cover;background:#F4F1EC;border:1px solid #E4DCD2;flex:none}
.sku-thumb{width:42px;height:42px;border-radius:8px}
.sku-photo{width:220px;height:220px;border-radius:14px;margin-bottom:12px}
.sku-thumb.is-empty,.sku-photo.is-empty,.fish-placeholder{position:relative}
.fish-placeholder::before{content:"";position:absolute;left:16%;right:22%;top:34%;height:26%;border-radius:40% 70% 45% 55%;background:#7E97A8;transform:rotate(-18deg)}
.fish-placeholder::after{content:"";position:absolute;right:16%;top:40%;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent #7E97A8}
.waiting-table{width:100%;border-collapse:collapse;margin-top:8px}
.waiting-table th,.waiting-table td{text-align:left;padding:8px 12px 8px 0;vertical-align:middle}
.waiting-table th{font-size:12px;color:#6E675F;font-weight:650}
.waiting-table .text-link{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
.stage-pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12px;background:#F4F1EC;color:#4E4842}
.stage-ordered{background:#F4F1EC}
.stage-picking-note-raised{background:#FBF3E4;color:#7A5B20}
.stage-picked{background:#E7F0EA;color:#245C3A}
.stage-packed{background:#E6EEF5;color:#1E4E73}
.stage-despatched{background:#E7F0EA;color:#245C3A}
#ipad-pick{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;background:#fff;color:#111}
#ipad-pick[hidden]{display:none}
#ipad-pick header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:2px solid #111}
#ipad-pick header h1{font-size:28px;font-weight:650;letter-spacing:-.03em;color:#111}
#ipad-pick header p{color:#111;font-size:18px}
#ipad-pick [data-ipad-close]{min-width:64px;min-height:48px;border:2px solid #111;background:#fff;color:#111;font:inherit;font-weight:650}
#ipad-pick .ipad-lines{flex:1;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:12px 12px 8px;background:#F7F4F0}
.ipad-line{display:flex;flex-direction:column;gap:10px;background:#fff;border:2px solid #111;border-radius:16px;padding:12px}
.ipad-line-top{display:flex;gap:12px;align-items:center}
.ipad-line strong{display:block;font-size:20px;font-weight:700;line-height:1.25;color:#111}
.ipad-line-copy span{display:block;color:#111;font-size:16px;margin-top:4px}
.ipad-stepper{display:flex;align-items:center;gap:8px}
.ipad-stepper button,.ipad-tick,.pen-sign button,.ipad-confirm{min-width:56px;min-height:56px;border-radius:12px;border:2px solid #111;background:#fff;color:#111;font:inherit;font-size:22px;font-weight:700}
.ipad-stepper input{width:72px;height:56px;text-align:center;font-size:22px;border:2px solid #111;color:#111}
.ipad-tick{width:100%}
.ipad-tick[aria-pressed=true]{background:#146C36;color:#fff;border-color:#146C36}
.ipad-line.is-picked{background:#E7F6EC;border-color:#146C36}
.place-badge{display:inline-block;align-self:flex-start;background:#111;color:#fff;font-size:26px;font-weight:800;line-height:1.1;padding:8px 14px;border-radius:12px}
.ipad-confirm:disabled{background:#D0D0D0;color:#555;border-color:#888}
.pick-note .sku-line>span{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.pick-note .place-badge{font-size:18px}
#ipad-pick footer{padding:10px 12px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:2px solid #111}
.pen-sign{display:block;margin:0 0 8px}
.pen-sign span{display:block;font-weight:700;margin-bottom:4px}
.pen-pad{display:block;width:100%;height:96px;border:2px solid #111;border-radius:12px;background:#fff;touch-action:none}
.pen-sign button{margin-top:6px;padding:0 16px}
.ipad-confirm{width:100%;background:#111;color:#fff}
#ipad-pick .sku-thumb{width:56px;height:56px}
.saved-sign{display:block;max-width:280px;height:80px;border:2px solid #111;background:#fff}
@media(max-height:800px){
 #ipad-pick header{padding:6px 12px}
 #ipad-pick header h1{font-size:22px}
 #ipad-pick .ipad-lines{gap:8px;padding:8px}
 .ipad-line{gap:6px;padding:8px}
 .place-badge{font-size:22px;padding:4px 10px}
 .pen-pad{height:52px}
 .pen-sign{margin:0}
 .pen-sign span{margin:0}
 .pen-sign button{min-height:48px;margin-top:4px}
 #ipad-pick footer{padding:6px 12px 8px}
 .ipad-tick,.ipad-confirm,.ipad-stepper button{min-height:48px}
 .ipad-stepper input{height:48px}
}
.sku-thumb.is-empty::before,.sku-photo.is-empty::before{content:"";position:absolute;left:50%;width:38%;height:62%;top:18%;transform:translateX(-50%);border-radius:4px 4px 8px 8px;background:#D9D3CB}
dialog[data-view=warehouse-sku]{width:min(760px,calc(100vw - 32px))}
.sku-photo-actions{display:flex;gap:8px;margin:-4px 0 12px}
.sku-buyers{margin:0;padding-left:1.2rem;display:flex;flex-direction:column;gap:8px}
.sku-buyers li{display:flex;justify-content:space-between;gap:12px}
.sku-buyers span{color:#6E675F}
.dealer-markup{display:block;color:#27221F;font-weight:650}
.our-margin-box{margin:16px 0;padding:12px 14px;border:1px solid #E4DCD2;border-radius:12px;background:#F7F4F0}
.our-margin-box h3{margin:0 0 4px}
.sku-margin-try{display:flex;align-items:center;gap:8px;margin:10px 0 0}
.sku-margin-try input{width:4.5rem}
.warehouse-panel{min-width:0}
.koi-band{margin:0 0 18px;padding:0 20px;min-width:0}
.koi-band h3,.koi-side h3{margin:0 0 8px}
.koi-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;min-width:0}
.koi-tank{min-width:0;border:1px solid #E4DCD2;border-radius:12px;background:#F7F4F0;padding:8px;min-height:88px}
.koi-tank h4{margin:0 0 6px;font-size:13px}
.koi-tank .muted{margin:0;font-size:12px}
.koi-fish{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin:0 0 6px;padding:6px 8px;border:0;border-radius:8px;background:#fff;text-align:left;cursor:pointer}
.koi-fish span{font-size:12px;color:#6E675F}
.koi-quarantine{box-shadow:inset 3px 0 #C4A15A}
.koi-for_sale{box-shadow:inset 3px 0 #2F6B4F}
.koi-side{margin-top:8px;padding:0 20px 16px;min-width:0}
.koi-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;min-width:0}
.koi-list li{display:flex;flex-wrap:wrap;gap:4px 12px;min-width:0}
.koi-list span{color:#6E675F;min-width:0}
.stock-count{width:100%;border-collapse:collapse}
.stock-count th,.stock-count td{padding:10px 12px;text-align:left;border-top:1px solid #E4DCD2}
.stock-count input{width:7rem}
.koi-side .btn{margin-top:12px}
dialog[data-view=warehouse-fish] .warehouse-actions{margin:4px 0 18px}
dialog[data-view=warehouse-fish] h3{margin-top:16px}
.pick-note+.pick-note{margin-top:18px;padding-top:18px;border-top:1px solid #E4DCD2}
.warehouse-picking-print .sku-thumb{width:48px;height:48px}
@media(max-width:1180px){
 .warehouse-picking-print{font-size:17px}
 .warehouse-picking-print .sku-thumb{width:64px;height:64px}
 .warehouse-picking-print .warehouse-table th,.warehouse-picking-print .warehouse-table td{padding:14px}
}
.warehouse-lot{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid #E4DCD2;font-size:14px}
.warehouse-lot span{color:#4E4842}
.warehouse-panel,.preview-allocation-panel,.list-panel{background:#fff}
.warehouse-table th,.preview-table th{background:#F7F4F0;color:#6E675F}
.overdue-item p{color:#ED2024}
.inline-warning{color:#6E3030;background:#FBF7F6;border-color:#F0D4D2}

/* Account board. Headings follow the kanban mockup. Cards stay white. */
.board-hero{
  margin:0 0 16px;padding:22px 28px;border-radius:26px;color:#fff;
  background:#27221F url("/washi-dark-grain.png") center/cover;
  background-image:url("/washi-dark-grain.png"),radial-gradient(120% 140% at 88% 12%,#3A332F 0%,#27221F 48%,#1B1715 100%);
  background-size:cover,auto;
  box-shadow:0 24px 50px -28px rgba(20,16,14,.55);
}
.board-hero p{margin:0 0 6px;letter-spacing:.14em;text-transform:uppercase;font-size:.72rem;color:rgba(255,255,255,.62)}
.board-hero h1{margin:0;font-weight:200;font-size:clamp(36px,4vw,56px);letter-spacing:-.045em;line-height:.95;color:#fff}
#board-root{--board-scale:1}
.board-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap}
.board-title-main{display:flex;align-items:center;gap:12px;min-width:0}
.board-back{flex:none}
.board-title-row h1{margin:0;min-width:0}
.board-tools{display:flex;align-items:center;gap:10px;flex:0 1 auto;flex-wrap:nowrap;margin:0 0 8px}
.board-zoom{display:flex;align-items:center;gap:8px;width:auto;flex:1 1 160px;min-width:120px;max-width:220px;margin:0;color:#fff}
.board-sort-wrap{position:relative;flex:0 0 auto}
.board-sort{border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;border-radius:999px;min-height:32px;padding:6px 14px;font:inherit;cursor:pointer;white-space:nowrap}
.board-sort-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:40;min-width:240px;padding:6px;background:#fff;color:#27221F;border-radius:16px;box-shadow:0 18px 40px rgba(39,34,31,.22)}
.board-sort-option{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;border:0;border-radius:12px;background:transparent;color:inherit;padding:8px 12px;font:inherit;text-align:left;cursor:pointer}
.board-sort-option:hover,.board-sort-option:focus-visible{background:#F7F4F0}
.board-sort-tick{width:1.1em;flex:0 0 auto;font-weight:600}
.board-move-list [aria-current=true]{border-color:#27221F;font-weight:600}
.board-zoom-mark{width:12px;height:9px;border:1.5px solid rgba(255,255,255,.85);border-radius:2px;flex:0 0 auto}
.board-zoom-mark.is-large{width:20px;height:15px;border-radius:3px}
.board-zoom input[type=range]{-webkit-appearance:none;appearance:none;flex:1;height:32px;margin:0;background:transparent;cursor:pointer}
.board-zoom input[type=range]::-webkit-slider-runnable-track{height:3px;background:rgba(255,255,255,.45);border-radius:999px}
.board-zoom input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-10px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.board-zoom input[type=range]::-moz-range-track{height:3px;background:rgba(255,255,255,.45);border-radius:999px;border:0}
.board-zoom input[type=range]::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.board-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:8px}
.board-columns{display:flex;gap:12px;align-items:stretch}
.board-column{
  flex:0 0 calc(248px * var(--board-scale));min-width:calc(248px * var(--board-scale));display:flex;flex-direction:column;max-height:calc(100dvh - 230px);
  background:#fff;border-radius:calc(18px * var(--board-scale));box-shadow:var(--shadow);
  padding:calc(16px * var(--board-scale)) calc(14px * var(--board-scale)) calc(12px * var(--board-scale));
  transition:flex-basis .2s ease,min-width .2s ease,padding .2s ease,border-radius .2s ease;
}
.board-column.is-lead{background:#27221F;color:#fff}
.board-column-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.board-column-head h2{margin:0;min-width:0;font-size:calc(.95rem * var(--board-scale));font-weight:500;letter-spacing:-.02em;overflow-wrap:normal;word-break:normal;hyphens:manual;transition:font-size .2s ease}
.board-column-head a{color:inherit;text-decoration:none}
.board-column-menu{flex:0 0 auto;border:1px solid #E4DCD2;background:#fff;color:#27221F;border-radius:999px;min-width:32px;min-height:32px;padding:4px 8px;line-height:1}
.board-column.is-lead .board-column-menu{border-color:#E4DCD2}
.board-add-column{flex:0 0 calc(180px * var(--board-scale));align-self:stretch;border:1px dashed #C8BEB4;border-radius:22px;background:transparent;color:#6E675F;font:inherit;padding:18px;transition:flex-basis .2s ease}
.board-hidden{margin-top:10px;background:#fff;border:1px solid #E4DCD2;border-radius:999px;color:#27221F;padding:8px 12px}
.board-switch{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.board-switch a,.board-switch span{border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:6px 12px;color:#fff;text-decoration:none;font-size:.9rem}
.board-switch [aria-current=page]{background:#fff;color:#27221F}
.board-crumb{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 8px;color:rgba(255,255,255,.75);font-size:.95rem}
.board-crumb a{color:#fff;font-weight:600;text-decoration:none}
.board-count{margin:6px 0 0;font-weight:200;font-size:clamp(28px,calc(52px * var(--board-scale)),68px);letter-spacing:-.05em;line-height:.9;transition:font-size .2s ease}
.board-count-label{margin:4px 0 12px;color:#6E675F;font-size:.85rem}
.board-column.is-lead .board-count-label,.board-column.is-lead .board-empty{color:rgba(255,255,255,.7)}
.board-column-cards{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:calc(10px * var(--board-scale));padding-right:2px}
.board-card{
  position:relative;flex:0 0 auto;display:flex;flex-direction:column;gap:3px;background:#fff;color:#27221F;text-decoration:none;user-select:none;
  border:1px solid #E4DCD2;border-radius:calc(16px * var(--board-scale));
  padding:calc(12px * var(--board-scale)) calc(14px * var(--board-scale));box-shadow:0 1px 2px rgba(39,34,31,.04);
  transition:padding .2s ease,border-radius .2s ease;
}
.board-column.is-lead .board-card{border-color:transparent}
.board-card strong{display:block;font-weight:600;font-size:calc(1rem * var(--board-scale));letter-spacing:-.02em;overflow-wrap:normal;word-break:normal;hyphens:manual;transition:font-size .2s ease}
.board-place{color:#6E675F;font-size:calc(.9rem * var(--board-scale));transition:font-size .2s ease}
.board-ranges,.board-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.board-range{display:inline-flex;align-items:center;gap:3px;border:1px solid #E4DCD2;border-radius:6px;padding:1px 4px 1px 5px;background:#fff;color:#27221F;font-size:calc(9px * var(--board-scale));font-weight:650;line-height:1.15}
.board-range .range-mark{width:14px;height:14px}
#board-root.is-smallest .board-chips{display:none}
.board-chip{background:#27221F;color:#fff;border-radius:999px;font-size:calc(.72rem * var(--board-scale));line-height:1;padding:calc(5px * var(--board-scale)) calc(8px * var(--board-scale));transition:font-size .2s ease,padding .2s ease}
.board-empty{margin:4px 2px 8px;color:#6E675F;font-size:.9rem}
.board-card-main{display:flex;flex-direction:column;gap:3px;min-width:0;color:inherit;text-decoration:none}
.board-contact{position:relative;z-index:1;color:#27221F;font-size:calc(.9rem * var(--board-scale));text-decoration:underline;text-underline-offset:2px}
.board-move{align-self:flex-end;margin-top:8px;background:#fff;border:1px solid #E4DCD2;border-radius:999px;color:#27221F;font-size:1rem;line-height:1;min-width:32px;min-height:32px;padding:4px 8px}
.board-card.is-dragging{opacity:.35}
.board-marker{pointer-events:none;border:1px dashed #27221F;border-radius:12px;padding:8px 10px;text-align:center;color:#27221F;background:#F7F4F0;font-size:.82rem}
.board-column.is-lead .board-marker{color:#fff;background:transparent;border-color:rgba(255,255,255,.75)}
.board-ghost{position:fixed;z-index:50;pointer-events:none;margin:0;transform:rotate(-2deg);box-shadow:0 18px 40px rgba(39,34,31,.28)}
.board-plus{position:absolute;top:-10px;right:-10px;z-index:2;width:28px;height:28px;border-radius:999px;background:#2F7D4A;color:#fff;font-weight:700;font-size:1.2rem;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 0 2px #fff}
.board-card-gold,.board-card-platinum{overflow:hidden;border-color:transparent;color:#241C12}
.board-card-gold{
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0) 28%),
    linear-gradient(155deg, #F8E7C2 0%, #E4C27A 46%, #C49645 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 10px 24px -18px rgba(120,78,20,.8);
}
.board-card-platinum{color:#1A2430;background:
  linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,0) 38%),
  linear-gradient(155deg, #F5F9FD 0%, #E4EDF6 44%, #D2DEEB 100%);
  box-shadow:inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.7), inset 0 -1px 0 rgba(110,140,168,.32), 0 10px 24px -18px rgba(50,70,90,.4);
}
.board-card-gold .board-place{color:#5C4A2E}
.board-card-platinum .board-place{color:#3A4A5C}
.board-card-gold .board-chip,.board-card-platinum .board-chip{background:#241C12;color:#F8F1E4}
.board-card-platinum .board-chip{background:#1C2430;color:#F4F6F8}
.board-card-gold .board-move,.board-card-platinum .board-move{background:rgba(255,255,255,.78)}
.board-card-gold::after,.board-card-platinum::after{
  content:"";position:absolute;inset:-50% -70%;z-index:0;pointer-events:none;
  background:linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transform:translateX(-18%);
}
.board-card-platinum::after{
  background:linear-gradient(116deg, transparent 30%, rgba(255,255,255,.96) 46%, rgba(186,214,236,.28) 52%, transparent 66%);
}
.board-card-main,.board-card .board-move{position:relative;z-index:1}
.board-card-gold:hover::after,.board-card-platinum:hover::after{transform:translateX(18%);transition:transform .7s ease}
@media (prefers-reduced-motion: reduce){
  .board-card-gold::after,.board-card-platinum::after{display:none}
  .board-column,.board-add-column,.board-column-head h2,.board-count,.board-card,.board-card strong,.board-place,.board-chip{transition:none}
}
@media(max-width:720px){
  .board-hero{padding:18px 16px}
  .board-column{max-height:calc(100dvh - 210px)}
}
.board-note{margin:0 0 12px;padding:12px 16px;border-radius:16px;background:#fff;border:1px solid #E4DCD2;box-shadow:var(--shadow)}
.board-note a{font-weight:600}
.board-move-list [aria-current=true]{border-color:#27221F;font-weight:600}
.board-choice,.board-move-list{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:14px}
.board-choice .btn,.board-move-list .btn{justify-content:center}
body.board-dragging,body.board-dragging *{cursor:grabbing}

.gs-24>.grid-stack-item[gs-w="1"]{width:4.166667%}
.gs-24>.grid-stack-item[gs-w="2"]{width:8.333333%}
.gs-24>.grid-stack-item[gs-w="3"]{width:12.5%}
.gs-24>.grid-stack-item[gs-w="4"]{width:16.666667%}
.gs-24>.grid-stack-item[gs-w="5"]{width:20.833333%}
.gs-24>.grid-stack-item[gs-w="6"]{width:25%}
.gs-24>.grid-stack-item[gs-w="7"]{width:29.166667%}
.gs-24>.grid-stack-item[gs-w="8"]{width:33.333333%}
.gs-24>.grid-stack-item[gs-w="9"]{width:37.5%}
.gs-24>.grid-stack-item[gs-w="10"]{width:41.666667%}
.gs-24>.grid-stack-item[gs-w="11"]{width:45.833333%}
.gs-24>.grid-stack-item[gs-w="12"]{width:50%}
.gs-24>.grid-stack-item[gs-w="13"]{width:54.166667%}
.gs-24>.grid-stack-item[gs-w="14"]{width:58.333333%}
.gs-24>.grid-stack-item[gs-w="15"]{width:62.5%}
.gs-24>.grid-stack-item[gs-w="16"]{width:66.666667%}
.gs-24>.grid-stack-item[gs-w="17"]{width:70.833333%}
.gs-24>.grid-stack-item[gs-w="18"]{width:75%}
.gs-24>.grid-stack-item[gs-w="19"]{width:79.166667%}
.gs-24>.grid-stack-item[gs-w="20"]{width:83.333333%}
.gs-24>.grid-stack-item[gs-w="21"]{width:87.5%}
.gs-24>.grid-stack-item[gs-w="22"]{width:91.666667%}
.gs-24>.grid-stack-item[gs-w="23"]{width:95.833333%}
.gs-24>.grid-stack-item[gs-w="24"]{width:100%}
.gs-24>.grid-stack-item[gs-x="0"]{left:0%}
.gs-24>.grid-stack-item[gs-x="1"]{left:4.166667%}
.gs-24>.grid-stack-item[gs-x="2"]{left:8.333333%}
.gs-24>.grid-stack-item[gs-x="3"]{left:12.5%}
.gs-24>.grid-stack-item[gs-x="4"]{left:16.666667%}
.gs-24>.grid-stack-item[gs-x="5"]{left:20.833333%}
.gs-24>.grid-stack-item[gs-x="6"]{left:25%}
.gs-24>.grid-stack-item[gs-x="7"]{left:29.166667%}
.gs-24>.grid-stack-item[gs-x="8"]{left:33.333333%}
.gs-24>.grid-stack-item[gs-x="9"]{left:37.5%}
.gs-24>.grid-stack-item[gs-x="10"]{left:41.666667%}
.gs-24>.grid-stack-item[gs-x="11"]{left:45.833333%}
.gs-24>.grid-stack-item[gs-x="12"]{left:50%}
.gs-24>.grid-stack-item[gs-x="13"]{left:54.166667%}
.gs-24>.grid-stack-item[gs-x="14"]{left:58.333333%}
.gs-24>.grid-stack-item[gs-x="15"]{left:62.5%}
.gs-24>.grid-stack-item[gs-x="16"]{left:66.666667%}
.gs-24>.grid-stack-item[gs-x="17"]{left:70.833333%}
.gs-24>.grid-stack-item[gs-x="18"]{left:75%}
.gs-24>.grid-stack-item[gs-x="19"]{left:79.166667%}
.gs-24>.grid-stack-item[gs-x="20"]{left:83.333333%}
.gs-24>.grid-stack-item[gs-x="21"]{left:87.5%}
.gs-24>.grid-stack-item[gs-x="22"]{left:91.666667%}
.gs-24>.grid-stack-item[gs-x="23"]{left:95.833333%}
.suggestion-table{width:100%;border-collapse:collapse}
.suggestion-table th,.suggestion-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #E4DCD2;vertical-align:top}
.suggestion-table th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6B625C;font-weight:600}
.suggestion-table a{color:#27221F}
.suggestion-clip{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.suggestion-section{margin-top:28px}
.suggestion-section h1{display:flex;align-items:center;gap:12px}
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.compare-grid h3{margin:0 0 8px;font-weight:500}
.compare-grid dl{margin:0}
.compare-grid dt{color:#6B625C;font-size:12px;margin-top:8px}
.compare-grid dd{margin:0}
.lapsed-rule.is-waiting{opacity:.55}
#lapsed-rule h3{margin:0 0 8px;font-weight:500}
#main:has(.mail-desk){display:flex;flex-direction:column;overflow:hidden;padding-bottom:12px}
.mail-desk{flex:1;min-height:0;display:grid;grid-template-columns:var(--mail-folders,200px) 8px var(--mail-list,352px) 8px minmax(300px,1fr) 8px var(--mail-panel,280px);background:#fff;border:1px solid rgba(39,34,31,.08);border-radius:18px;overflow:hidden}
.mail-split{position:relative;cursor:col-resize;background:#F1ECE4}
.mail-split::after{content:"";position:absolute;top:50%;left:50%;width:4px;height:36px;border-radius:4px;transform:translate(-50%,-50%);background:transparent}
.mail-split:hover::after{background:#27221F}
.mail-folders,.mail-list,.mail-read,.mail-panel{min-width:0;overflow:auto}
.mail-folders{background:#F7F4F0;padding:14px 10px}
.mail-compose{width:100%;margin-bottom:12px}
.mail-account{margin:0 8px 10px;color:#6B625C;font-size:12px}
.mail-folder{display:flex;width:100%;justify-content:space-between;gap:8px;border:0;background:transparent;text-align:left;padding:7px 8px;border-radius:8px;color:#27221F}
.mail-folder.is-open{background:#E7D7C4;font-weight:650}
.mail-folder b{font-size:12px}
.mail-label-heading{margin:14px 8px 4px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#6B625C}
.mail-search{display:flex;gap:8px;padding:10px;border-bottom:1px solid #E4DCD2}
.mail-search input{flex:1;border:1px solid #E4DCD2;border-radius:999px;padding:8px 12px;background:#F7F4F0}
.mail-tools{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;border-bottom:1px solid #E4DCD2}
.mail-row{display:grid;grid-template-columns:22px 22px minmax(0,1fr);gap:4px;align-items:center;padding:8px 10px;border-bottom:1px solid #F1ECE4}
.mail-row.is-open{background:#F7F4F0}
.mail-row.unread .mail-from,.mail-row.unread .mail-subject{font-weight:700}
.mail-row-main{display:grid;grid-template-columns:100px auto minmax(0,1fr) 16px auto;gap:8px;align-items:center;border:0;background:transparent;text-align:left;min-width:0;color:#27221F}
.mail-line,.mail-from{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mail-row time{white-space:nowrap}
.mail-snippet{color:#6B625C}
.mail-star{border:0;background:transparent;color:#8A6A2F;font-size:16px}
.mail-read{padding:16px 18px 24px}
.mail-read h2{margin:0 0 12px;font-weight:500}
.mail-message{padding:12px 0;border-top:1px solid #E4DCD2}
.mail-message header{display:flex;gap:8px;align-items:baseline;color:#6B625C;font-size:13px}
.mail-message header strong{color:#27221F}
.mail-file{display:inline-flex;gap:6px;margin:6px 8px 0 0;padding:6px 10px;border:1px solid #E4DCD2;border-radius:10px;background:#F7F4F0}
.mail-reply{margin-top:16px;border:1px solid #E4DCD2;border-radius:16px;padding:12px}
.mail-reply textarea{width:100%;border:0;resize:vertical;font:inherit}
.mail-reply-tabs{display:flex;gap:12px;color:#6B625C;font-size:13px;margin-bottom:8px}
.mail-signature{margin-top:8px;padding-top:8px;border-top:1px solid #E4DCD2;color:#27221F}
.mail-note{margin:0 0 8px;font-size:13px;color:#6B625C}
.mail-chip{display:inline-flex;align-items:center;gap:4px;margin-left:6px;background:#EFEAE4;border-radius:999px;padding:1px 8px 1px 1px;font-size:12px;font-weight:500}
.mail-chip .avatar{width:18px;height:18px;font-size:9px}
.mail-assign{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 10px}
.mail-history{margin:0 0 6px;color:#6B625C;font-size:13px}
.mail-comments{background:#FBF6E4;border:1px solid #E4D7A8;border-radius:12px;padding:12px;margin:12px 0}
.mail-comments-label{margin:0 0 8px;font-size:12px;letter-spacing:.03em;text-transform:uppercase;color:#6B5A2E}
.mail-comments article{margin:0 0 8px}
.mail-comments p{margin:2px 0 0}
.mail-suggestions{border:1px solid #E4DCD2;border-radius:12px;padding:12px;margin:12px 0;background:#F7F4F0}
.mail-suggestions h3{margin:0 0 8px;font-size:14px;font-weight:600}
.mail-suggestions article{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0}
.mail-viewing{color:#3E6B4F}
.mail-add{margin-top:16px}
.signature-editor{min-height:120px;border:1px solid #E4DCD2;border-radius:12px;padding:12px;background:#fff}
.sig-tools{display:flex;gap:6px;margin-bottom:8px}
.mail-side{display:flex;min-width:0;border-left:1px solid #E4DCD2}
.mail-panel{flex:1;padding:14px;min-width:0}
.mail-panel h3{margin:0 0 8px;font-weight:500}
.mail-panel h4{margin:12px 0 4px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6B625C}
.mail-side.is-collapsed .mail-panel{display:none}
.mail-rail{width:48px;display:flex;flex-direction:column;gap:6px;padding:8px 4px;background:#F7F4F0}
.mail-rail button{border:0;background:transparent;border-radius:8px;padding:8px 2px;font-size:10px;color:#27221F}
.mail-rail button.is-on{background:#27221F;color:#F6F3EE}
.mail-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.mail-chips .chip{display:inline-flex;border-radius:999px;padding:3px 10px;background:#F7F4F0;border:1px solid #E4DCD2;font-size:13px}
.mail-connect{max-width:640px}
@media(max-width:900px){
 .mail-desk{display:block;overflow:auto}
 .mail-split,.mail-folders,.mail-list,.mail-read,.mail-side{display:none}
 .mail-desk[data-narrow="list"] .mail-folders,.mail-desk[data-narrow="list"] .mail-list{display:block}
 .mail-desk[data-narrow="email"] .mail-read{display:block}
 .mail-desk[data-narrow="panel"] .mail-side{display:flex;min-height:70vh}
 .mail-desk[data-narrow="list"] .mail-row-main{grid-template-columns:100px minmax(0,1fr) auto}
 .mail-desk[data-narrow="list"] .mail-snippet,.mail-desk[data-narrow="list"] .mail-clip{display:none}
}
.todo-tabs{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}
.todo-tabs button{border:0;background:#fff;border-radius:999px;padding:8px 14px;color:#4E4842;cursor:pointer}
.todo-tabs button.is-on{background:#27221F;color:#F6F3EE}
.todo-filters{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.todo-filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#6E675F}
.todo-filters select{min-width:150px;border:1px solid #E4DCD2;border-radius:10px;padding:8px 10px;background:#fff;color:#27221F}
.todo-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.todo-view,.todo-group{display:flex;gap:6px}
.todo-view button,.todo-group button{border:1px solid #E4DCD2;background:#fff;border-radius:999px;padding:7px 12px;color:#4E4842;cursor:pointer}
.todo-view button.is-on,.todo-group button.is-on{background:#27221F;border-color:#27221F;color:#F6F3EE}
.todo-group::before{content:"Group by";align-self:center;margin-right:4px;color:#6E675F;font-size:13px}
.todo-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 4px;border-bottom:1px solid #F1ECE4}
.todo-row:last-child{border-bottom:0}
.todo-list .card-body{display:grid;grid-template-columns:22px 10px minmax(8rem,max-content) max-content max-content max-content max-content;column-gap:16px;justify-content:start;align-items:center}
.todo-list .todo-head,.todo-list .todo-row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:center}
.todo-list .todo-head{padding:2px 4px 8px;border-bottom:1px solid #F1ECE4;color:#6E675F;font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.todo-what{flex:1 1 240px;min-width:180px}
.todo-list .todo-what{flex:none;min-width:0}
.todo-list .todo-what .text-link{white-space:normal}
.todo-what .text-link{font-weight:600}
.todo-row.is-done .text-link,.todo-card.is-done strong{text-decoration:line-through;color:#6E675F;font-weight:500}
.todo-priority{width:10px;height:10px;border-radius:50%;flex:none}
.todo-priority.todo-high{background:#ED2024}
.todo-priority.todo-medium{background:#C4841D}
.todo-priority.todo-low{background:#A39C94}
.todo-board .todo-card{position:relative;overflow:hidden;cursor:pointer;padding-left:18px}
.todo-board .todo-stripe{position:absolute;left:0;top:0;bottom:0;width:6px}
.todo-board .todo-stripe.todo-high{background:#ED2024}
.todo-board .todo-stripe.todo-medium{background:#C4841D}
.todo-board .todo-stripe.todo-low{background:#8A8178}
.todo-card .todo-when,.todo-card .todo-extended{display:block}
.todo-type,.todo-who,.todo-when{flex:none;font-size:14px;white-space:nowrap}
.todo-when[data-overdue]{color:#ED2024;font-weight:650}
.todo-extended,.todo-done-line,.todo-what .metadata{margin:2px 0 0;font-size:13px;color:#6E675F}
.todo-actions{display:flex;gap:6px;margin-left:0}
.todo-board .board-column{max-height:calc(100dvh - 280px)}
.todo-row .task-tick{width:22px;height:22px;border-radius:6px;border:1px solid #C9C0B6;background:#fff;color:#27221F;padding:0}
.todo-row.is-done .task-tick{background:#27221F;border-color:#27221F;color:#fff}
.notice-bell{position:relative;flex:none}
.notice-button{position:relative;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:14px;background:#F6F3EE;color:#27221F;cursor:pointer}
.notice-count{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#ED2024;color:#fff;font-size:10px;line-height:16px}
.notice-panel{position:absolute;top:48px;right:0;z-index:40;width:300px;padding:8px;background:#fff;border-radius:16px;box-shadow:0 18px 40px -18px rgba(39,34,31,.45)}
.notice-item{display:block;width:100%;margin:0 0 4px;padding:8px 10px;border:0;border-radius:10px;background:transparent;text-align:left;color:#27221F;cursor:pointer}
.notice-item.is-new{background:#F7F4F0;font-weight:650}
.calendar-todo,.calendar-todo-line{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;text-align:left;color:#6E675F;font-size:11px;padding:1px 2px;cursor:pointer}
.calendar-todo-heading{margin:12px 0 6px;font-size:13px;font-weight:650}
.mail-todo{display:grid;grid-template-columns:12px minmax(0,1fr);gap:0 6px;align-items:start;margin:8px 0}
.mail-todo-meta{grid-column:2;color:#6E675F;font-size:12px}
.mail-todo .is-done{text-decoration:line-through;color:#6E675F}
