.workspace {
  --rail-width: 236px;
  --shell-width: 1680px;
  --bar-height: 64px;
  --divider: #e1e3e7;
  --shell-accent: #b7182c;
  background: #f7f8fa;
  grid-template-columns: calc(var(--rail-width) + max(0px, (100% - var(--shell-width)) / 2)) minmax(0, 1fr);
  grid-template-rows: var(--bar-height) 1fr;
  align-items: start;
}
.workspace-bar {
  grid-column: 1 / -1; position: relative; z-index: 8; height: var(--bar-height);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: white; border-bottom: 1px solid var(--divider); padding: 0 clamp(16px, 2.4vw, 36px);
}
.workspace .brand { color: #202227; font-size: 1.03rem; letter-spacing: -.025em; }
.workspace-brand-name { font-weight: inherit; }
.workspace-location {display:flex;align-items:center;gap:10px;min-width:0;border-left:1px solid var(--divider);padding-left:18px;font-size:.82rem;color:#727783}
.workspace-location a {color:#515660;text-decoration:none}
.workspace-location a:hover {text-decoration:underline}
.workspace-location strong {color:#2c3038;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-utilities, .workspace-contacts {display:flex;align-items:center;flex:none}
.workspace-utilities {margin-inline-start:auto;gap:10px}
.workspace-bar .workspace-utilities + .workspace-inbox {margin-inline-start:0}
.workspace-contacts {gap:2px;padding:2px;border:1px solid #e8dfe2;border-radius:12px;background:#f8f6f7}
.workspace-contacts :is(button,a) {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;
  padding:0 9px;border:0;border-radius:8px;background:transparent;color:#433b41;
  font-size:.84rem;font-weight:650;text-decoration:none;white-space:nowrap;
}
.workspace-contacts button {width:37px;padding:0}
.workspace-contacts svg {width:19px;height:19px;flex:none;color:var(--shell-accent)}
.workspace-contacts :is(button,a):hover {background:#fbebed;color:#921426;filter:none}
.workspace-contacts :is(button,a):focus-visible {outline:2px solid var(--shell-accent);outline-offset:-2px}
.workspace-wechat-card {display:grid;justify-items:center;gap:12px;text-align:center}
.workspace-wechat-card p {max-width:37ch;color:#535963;font-size:.94rem;line-height:1.45}
.workspace-wechat-card img {width:auto;height:auto;max-width:100%;max-height:min(65dvh,460px);border:1px solid #e1e3e7;border-radius:12px}
.workspace-wechat-card a {display:inline-flex;align-items:center;min-height:42px;padding:0 14px;border:1px solid #e1e3e7;border-radius:9px;font-weight:650;text-decoration:none}
.workspace-wechat-card a:hover {background:#fbebed}
.workspace-identity {display:grid;gap:1px;max-width:175px;line-height:1.25}
.workspace-identity > span,.workspace-identity small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-identity small {font-size:.7rem;color:#60646e;font-weight:500}
.workspace .brand span, .login .brand span {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border-radius: 8px; background: #b7182c; color: white; font-size: 15px;
}
.workspace .workspace-rail {
  position: sticky; top: 0; max-height: 100dvh; overflow-y: auto;scrollbar-width:thin;
  width:var(--rail-width);max-width:100%;justify-self:end;
  background: transparent; color: #292c31; padding: 24px 0 20px 16px;
}
.workspace .workspace-rail nav { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; padding: 7px; background: white; border: 1px solid var(--divider); border-radius: 14px; }
.workspace-nav-group { display: grid; gap: 1px; padding-top: 8px; border-top: 1px solid var(--divider); }
.workspace-nav-label { padding: 2px 10px 4px; color: #646975; font-size: .72rem; line-height: 1.4; font-weight: 650; }
.workspace .workspace-rail nav a {
  display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 7px 10px;font-weight:580;text-decoration:none;
  background: transparent; color: #383d47; text-align: left; border-radius: 7px; font-size: .86rem; line-height: 1.3;
}
.workspace-rail nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:is(#equipment-attention,#notices-count,#work-queue-count):not([hidden]) { display:inline-grid;place-items:center;flex:none;min-width:21px;height:21px;margin-inline-start:auto;padding:0 5px;border-radius:12px;background:#ab1935;color:#fff;font-size:12px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums; }
#equipment-attention.has-results:not([hidden]) { background:#166547; }
.workspace-announcement { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
#workspace-menu:is([data-equipment-attention],[data-notice-attention],[data-work-queue-attention]) { position:relative; }
#workspace-menu:is([data-equipment-attention],[data-notice-attention],[data-work-queue-attention])::after { content:"";position:absolute;top:8px;left:23px;width:7px;height:7px;border:2px solid white;border-radius:50%;background:#ab1935; }
.workspace .workspace-rail nav a:hover { background: #f4f5f7; }
.workspace .workspace-rail nav a[aria-current=page] { background: #fbebed; color: #921426;font-weight:700;box-shadow:inset 3px 0 #ae2038; }
.workspace .workspace-rail nav a:focus-visible, #workspace-menu:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: -2px; }
.workspace .content { min-width: 0; margin: 0; max-width:calc(var(--shell-width) - var(--rail-width)); padding: 24px clamp(16px,2vw,36px) 48px; }
.workspace .content:focus { outline: none; }
.skip-content { position: fixed; z-index: 30; top: 4px; left: 8px; padding: 10px; background: white; transform: translateY(-160%); }
.skip-content:focus { transform: none; }
.workspace-account { position: relative; }
.workspace-account summary { display: flex; align-items: center; gap: 8px; padding: 6px; cursor: pointer; font-size: .84rem; font-weight: 650; list-style: none; }
.workspace-account summary::-webkit-details-marker { display: none; }
.workspace-account summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 3px 0; }
.workspace-account summary:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 2px; }
#account-icon { display: grid; place-items: center; flex:none; overflow:hidden; border-radius: 50%; width: 32px; height: 32px; color: #772234; background: #f7e9ec; font-weight: 750; }
.workspace-account-panel { position: absolute; right: 0; top: calc(100% + 5px); display: grid; gap: 4px; padding: 14px; width: min(272px, 85vw); border: 1px solid var(--divider); border-radius: 12px; background: white; box-shadow: 0 12px 38px #13192518; overflow-wrap: anywhere; }
.workspace-account-panel small { color: #59616b; margin-bottom: 9px; }
.workspace-account-panel button, #workspace-menu { min-height: 38px; padding: 8px 10px; background: #f5f6f8; color: #292d35; text-align: left; font-size: .84rem; }
#workspace-menu { display: none; }
#workspace-menu svg { flex: none; width: 18px; height: 18px; }
#workspace-section-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-inbox{position:relative;margin-left:auto}
.workspace-inbox summary{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;width:42px;height:42px;list-style:none;border-radius:8px}
.workspace-inbox summary:hover,.workspace-inbox[open] summary{background:#f4f5f7}
.workspace-inbox summary::-webkit-details-marker{display:none}
.workspace-inbox summary svg{width:22px;height:22px}
#inbox-badge{position:absolute;top:0;right:0;padding:0 4px;border-radius:12px;background:#af1936;color:#fff;font-size:10px;line-height:16px}
.inbox-panel{position:absolute;right:0;top:100%;width:min(320px,90vw);background:white;padding:16px;border:1px solid var(--divider);border-radius:12px;box-shadow:0 9px 30px #20232c1a;z-index:10}
.inbox-panel h2{font-size:1.05rem;margin:0 0 10px}
#inbox-items{display:grid;max-height:55vh;overflow:auto;font-size:.9rem}
#inbox-items a{display:grid;gap:3px;padding:10px 0;text-decoration:none;border-top:1px solid var(--divider)}
#inbox-items small{color:#59616b}
#inbox-items h3{font-size:.78rem;margin:.45rem 0 .1rem;color:#64545c}
.inbox-all{display:block;margin-top:10px;padding-top:10px;border-top:1px solid var(--divider);font-weight:650;color:#92213b}
#notifications{max-width:1100px;margin:0 auto}
#notices-title{margin:0 0 1.15rem;font-size:clamp(1.65rem,3vw,2.4rem);line-height:1.2}
.notice-board{background:#fff;border:1px solid var(--divider);border-radius:16px;overflow:hidden}
.notice-filters{display:flex;gap:8px;padding:14px clamp(12px,2vw,24px);flex-wrap:wrap}
.notice-filters button,.notice-more,.notice-quiet{font:inherit;cursor:pointer}
.notice-filters button{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:9px;border:1px solid #dfd9dc;background:white;color:#534a51;font-weight:600;font-size:.87rem}
.notice-filters button[aria-pressed=true]{background:#35292e;border-color:#35292e;color:white}
.notice-filters b{font-size:.8rem;background:#f4eff1;color:#574650;border-radius:5px;padding:1px 5px;font-variant-numeric:tabular-nums}
.notice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px clamp(12px,2vw,24px);border-top:1px solid var(--divider)}
.notice-target{display:grid;gap:4px;min-width:0;text-decoration:none;color:#241f23;overflow-wrap:anywhere}
.notice-target:hover strong,.notice-target:focus-visible strong{text-decoration:underline;color:#91213c}
.notice-target small,.notice-meta small{color:#625b63;font-size:.82rem;line-height:1.4}
.notice-preview{color:#453e42;font-size:.9rem;line-height:1.45}
.notice-go{justify-self:start;color:#91213c;font-weight:650;font-size:.82rem}
.notice-meta{display:grid;justify-items:end;gap:6px}
.notice-quiet,.notice-more{background:#f7f3f4;color:#78253b;border:1px solid #eee3e6;border-radius:7px;padding:6px 10px;font-size:.8rem}
.notice-more{margin:12px 20px}
.notice-empty,#notice-status{margin:0;padding:16px 20px;color:#625b63;border-top:1px solid var(--divider)}
.notice-toast:not([hidden]){position:fixed;right:16px;bottom:18px;z-index:20;display:flex;align-items:center;gap:12px;max-width:min(440px,calc(100vw - 32px));padding:12px 14px;background:#31292e;color:#fff;border-radius:10px;box-shadow:0 4px 22px #25141a35;font-size:.88rem}
.notice-toast a{color:#fff;font-weight:650}.notice-toast button{padding:3px 6px;color:white;background:transparent;border:0}
@media(max-width:600px){.notice-row{grid-template-columns:minmax(0,1fr)}.notice-meta{display:flex;align-items:center;justify-content:space-between}.notice-filters{gap:5px}.notice-filters button{padding:8px;font-size:.8rem}}
.desk-personal{margin:10px 0}.desk-personal summary{cursor:pointer;font-weight:650}.desk-personal form{margin-top:12px}
.case-files{display:grid;gap:10px}.case-files section{display:grid;gap:6px}.case-file{display:flex;gap:12px;align-items:center;overflow-wrap:anywhere}.case-file img{width:66px;height:50px;object-fit:cover;border-radius:5px}.case-file span{display:grid}.case-file small{color:#5b6067}
@media(max-width:700px){.inbox-panel{position:fixed;top:var(--bar-height);right:10px}.workspace-bar .brand{min-width:0}.workspace-inbox{margin-left:0}}
#login {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  padding: 0 clamp(16px, 5vw, 72px);
  background: radial-gradient(ellipse at 85% 12%, #f6e8ec, transparent 55%), #f5f3f4;
}
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-block: 20px;
  border-bottom: 1px solid #e2dadd;
}
.login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-self: center;
  width: min(1120px, 100%);
  margin: clamp(24px, 5vh, 60px) auto;
  border: 1px solid #e2dadd;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 56px #3819250e;
}
.login-panel {
  display: grid;
  align-content: center;
  gap: 24px;
  min-width: 0;
  padding: clamp(28px, 5vw, 64px);
}
.login-panel h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
#login-form {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 0;
}
#login-form input { min-height: 48px; font-size: 1rem; }
#login-form > button { min-height: 48px; }
.login-password { display: grid; gap: 6px; min-width: 0; }
.login-password-field { position: relative; min-width: 0; }
.login-password-field input { padding-inline-end: 105px; }
#login-password-toggle {
  position: absolute;
  inset: 3px 4px 3px auto;
  min-width: 88px;
  padding: 0 7px;
  border-radius: 6px;
  background: transparent;
  color: #692437;
  font-size: .82rem;
}
#login-password-toggle:hover, #login-password-toggle[aria-pressed=true] { background: #fae9ed; }
#login .login-access {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  text-underline-offset: 3px;
}
.login-register {
  display: grid;
  padding-top: 20px;
  border-top: 1px solid #eee6e9;
}
.login-register a {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #ead4db;
  border-radius: 9px;
  background: #fff8f9;
  text-decoration: none;
  font-weight: 650;
  text-align: center;
}
.login-register a:hover { background: #fae9ed; border-color: #b95770; }
.login-visual {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 470px;
  padding: clamp(28px, 4vw, 54px);
  border-radius: 0 23px 23px 0;
  background: linear-gradient(0deg,#101318 0%,#101318b3 22%,#15191e08 67%), url('/media/export-hero.jpg') 70% center / cover #20232a;
  color: #f9f5f6;
}
.login-visual p { max-width: 32ch; line-height: 1.45; }
.login-visual .login-visual-title {
  max-width: 16ch;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 750;
}
@media (max-width: 760px) {
  #login { display: block; }
  .login-header { padding-block: 14px; }
  .login-header .brand { font-size: .95rem; }
  .login-card { grid-template-columns: minmax(0, 1fr); max-width: 490px; border-radius: 18px; }
  .login-panel { padding: clamp(18px, 5vw, 32px); }
  .login-visual { display: none; }
}
#overview .overview-hero, #auctions .auction-hero {
  min-height: 0; padding: 6px 0 18px; border: 0; border-radius: 0; background: transparent; color: #202227;
}
#overview .overview-hero::after { content: none; }
#overview .overview-hero h1, #auctions .auction-hero h1 { color: #202227; max-width: none; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.1; }
#overview .overview-hero-copy > p:last-child, #auctions .auction-hero > div > p:last-child { color: #59616b; font-size: .9rem; }
#overview .overview-connection, #overview .overview-updated { color: #555e68; white-space: normal; }
#overview .overview-refresh, #auctions .auction-hero button { background: white; border: 1px solid var(--divider); color: #333840; }
#overview .overview-side { background: transparent; color: inherit; padding: 0; }
#overview .overview-side small { color: inherit; }
#overview .overview-stats, #overview .overview-shortcuts { grid-template-columns: repeat(auto-fit,minmax(min(100%,162px),1fr)); }
#overview .overview-stat { box-shadow: none; grid-template-columns: minmax(0,1fr) auto; }
#overview .overview-stat-icon { display: none; }
#overview .overview-stat-copy { gap: 5px; }
#overview .overview-stat-detail { color: #666d76; }
#overview .overview-shortcut-copy strong, #overview .overview-shortcut-copy small { white-space: normal; }
#overview .overview-shortcut-icon { background: #f4f5f7; color: #444953; }
#overview .overview-shortcut { grid-template-columns: auto minmax(0,1fr); align-content: start; }
#overview .overview-shortcut-copy strong { overflow-wrap: anywhere; text-overflow: clip; }
#overview .overview-shortcut-arrow { display: none; }
#overview .overview-section-head h2, #overview .overview-panel h2 { line-height: 1.2; }
#auctions .auction-hero > div > p:first-child { color: #9e1b30; }
#admins #parser-monitor { border-radius: 14px; }
#import .panel { max-width: 900px; }
#import .heading { margin-bottom: 16px; }
#import h2 { font-size: 1.18rem; }
@media (max-width: 800px) {
  .workspace-location {display:none}
  .workspace-identity {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  .workspace { --bar-height:56px; grid-template-columns: minmax(0,1fr); grid-template-rows: var(--bar-height) 1fr; }
  .workspace-bar { position: sticky; top: 0; z-index: 20; gap: 8px; padding: 0 12px; }
  .workspace .brand { min-width: 0; font-size: .9rem; }
  .workspace .workspace-rail { display: none; position: fixed; z-index: 19; top: var(--bar-height); left: 0; right: 0; width: min(100%,420px); max-height: calc(100dvh - var(--bar-height)); padding: 6px 8px 10px; overflow-y: auto; overscroll-behavior: contain; background: white; border: 1px solid var(--divider); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: 0 14px 28px #22283220; }
  .workspace .workspace-rail.is-open { display: block; }
  .workspace .workspace-rail nav { gap: 5px; border: 0; padding: 0; }
  .workspace .workspace-rail nav a { min-height: 44px; margin: 0; text-align: left; padding-inline: 10px; }
  .workspace .workspace-rail .workspace-nav-group {grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4px}
  .workspace .workspace-rail .workspace-nav-label {grid-column:1 / -1}
  .workspace-nav-label { padding-inline: 12px; }
  #workspace-menu { display: inline-flex; min-width: 0; min-height: 44px; align-items: center; gap: 8px; margin-right: auto; border-radius: 8px; }
  #workspace-menu[aria-expanded=true] { color: #921426; background: #fbebed; }
  .workspace-bar .workspace-inbox { flex: none; margin-left: 0; }
  .workspace-account { flex: none; }
  .workspace .content { grid-row: 2; padding: 18px 12px 32px; }
  .workspace .content [id] { scroll-margin-top: calc(var(--bar-height) + 12px); }
  #account-role { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .workspace-account summary { padding: 2px; min-height: 44px; }
}
@media (max-width: 740px) {
  .workspace {--bar-height:104px}
  .workspace-bar {display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:48px 46px;gap:3px 8px;align-content:center}
  .workspace-utilities {grid-column:1 / -1;grid-row:2;justify-content:space-between;margin:0;gap:6px}
  .workspace-bar .workspace-inbox {grid-column:3;grid-row:1}
  .workspace-bar .workspace-account {grid-column:4;grid-row:1}
  .workspace-contacts .workspace-whatsapp {padding-inline:7px}
}
@media (max-width: 390px) {
  .workspace-contacts .workspace-whatsapp {gap:4px;padding-inline:5px;font-size:.75rem}
  .workspace-contacts svg {width:18px;height:18px}
}
@media (max-width: 540px) {
  .workspace .workspace-brand-name { display: none; }
  #overview .overview-stats, #overview .overview-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #overview .overview-hero { gap: 12px; }
  #overview .overview-hero-controls { grid-template-columns: minmax(0,1fr) auto; }
  #overview .overview-shortcut { display: block; }
  #overview .overview-shortcut-icon { display: none; }
}
