:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Malgun Gothic', sans-serif;
  color: #24232a;
  background: #f6f6f8;
  --ink: #24232a;
  --muted: #696775;
  --line: #e8e6ec;
  --brand: #d1001f;
  --accent: #fbe9ed;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 1060px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #986266; outline-offset: 2px; }
h1,h2,h3,p,dl { margin: 0; }
small { font-size: .8125rem; }
::selection { background: #ffd4de; }
.startup { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.inline { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.right { justify-content: flex-end; }
.end { text-align: right; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.space-top { margin-top: 16px; }

/* Desktop entrance follows 6S-1's light-grey and white two-panel layout. */
.login-layout { display: grid; grid-template-columns: 1fr 1fr; height: 100vh; min-height: 640px; overflow: hidden; color: #111; }
.left-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; background: #f4f5f7; padding: 48px; overflow: hidden; }
.right-panel { position: relative; display: flex; align-items: center; justify-content: center; background: #fff; padding: 32px; }
.login-logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; }
.logo-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 40px; padding: 0 14px; border-radius: 4px; color: #fff; background: var(--brand); font-weight: 850; font-size: 18px; letter-spacing: .45px; white-space: nowrap; }
.characters-wrap { position: relative; flex: 1; max-height: 500px; margin: 24px 0; display: flex; align-items: flex-end; justify-content: center; container-type: inline-size; }
.characters-stage { width: 550px; height: 400px; position: relative; flex: none; transform-origin: bottom center; transform: scale(.9); }
@container (min-width: 565px) { .characters-stage { transform: scale(1); } }
@container (max-width: 490px) { .characters-stage { transform: scale(.78); } }
@container (max-width: 430px) { .characters-stage { transform: scale(.72); } }
.character { position: absolute; bottom: 0; transform-origin: bottom center; transition: height .24s ease, transform .32s ease; }
.character.tall { height: 400px; width: 180px; left: 70px; background: #1f1f1f; border-radius: 10px 10px 0 0; --eye-top: 40px; --eye-left: 45px; }
.character.red { height: 310px; width: 120px; left: 240px; background: #d1001f; border-radius: 8px 8px 0 0; --eye-top: 32px; --eye-left: 26px; }
.character.rose { height: 200px; width: 240px; left: 0; background: #ffc2cc; border-radius: 120px 120px 0 0; --eye-top: 90px; --eye-left: 82px; }
.character.yellow { height: 230px; width: 150px; left: 310px; background: #ffd84d; border-radius: 77px 77px 0 0; --eye-top: 46px; --eye-left: 50px; }
.eyes { position: absolute; display: flex; gap: 10px; top: var(--eye-top); left: var(--eye-left); transform: translate(var(--look-x,0),var(--look-y,0)); transition: transform .18s; }
.eyes i { width: 18px; height: 18px; display: grid; place-items: center; background: #fff; border-radius: 50%; }
.eyes b { width: 7px; height: 7px; background: #2d2d2d; border-radius: 50%; transform: translateX(3px); }
.rose .eyes i, .yellow .eyes i { width: 13px; height: 13px; background: transparent; }
.rose .eyes b, .yellow .eyes b { width: 12px; height: 12px; }
.mouth { position: absolute; top: 75px; left: 57px; width: 45px; height: 4px; border-radius: 4px; background: #2d2d2d; }
.typing .tall { height: 426px; transform: skewX(-12deg) translateX(27px); }
.typing .red { transform: skewX(7deg) translateX(8px); }
.peeking .eyes { transform: translate(-10px,-7px); }
.peeking .eyes b { transform: translateX(-3px); }
.footer-links { display: flex; gap: 32px; font-size: 14px; color: #727987; }
.form-wrap { width: 100%; max-width: 420px; }
.form-header { text-align: center; margin-bottom: 40px; }
.form-header h1 { font-size: 30px; line-height: 1.25; margin-bottom: 8px; }
.form-header p { color: #6b7280; font-size: 14px; }
.right-panel > .lang-select { position: absolute; top: 29px; right: 34px; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.field, .form-grid > label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 580; }
.login-form .field input:not([type=checkbox]) { height: 48px; padding: 0 12px; border-radius: 8px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px !important; }
.eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; border: 0; background: transparent; color: #747988; width: 30px; height: 30px; }
.login-options { font-size: .875rem; }
.login-options label, .check-row label { display: inline-flex; align-items: center; gap: 8px; }
input[type=checkbox] { accent-color: #29282c; width: 16px; height: 16px; margin: 0; }
.login-submit { width: 100%; height: 48px; background: #1f1f1f; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; }
.login-submit:hover { background: #000; }
.contact-admin { text-align: center; font-size: .875rem; color: #646b75; margin-top: 26px; }
.demo-choices { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 23px; font-size: .8125rem; color: #67646c; }
.demo-choices button { border: 1px solid var(--line); background: #faf9fb; font-size: .8125rem; padding: 5px 9px; border-radius: 6px; }
.demo-choices button:hover { border-color: #99939d; background: #f2f0f3; }
.error-box, .dialog-alert { padding: 9px 12px; border-radius: 7px; border: 1px solid #fbccd3; color: #a82339; background: #fff3f5; font-size: .875rem; }

.shell { min-height: 100vh; --sidebar-width: 180px; color: #303133; background: #f5f7fa; }
.shell.collapsed { --sidebar-width: 64px; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; background: #fff; border-right: 1px solid #e4e7ed; overflow: hidden; transition: width .28s; }
.brand { width: 100%; height: 48px; flex: none; display: grid; place-items: center; border: 0; border-radius: 0; background: var(--brand); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.collapsed .brand { font-size: 16px; letter-spacing: 0; }
.side-menu { flex: 1; overflow: auto; }
.nav-link { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 17px; border: 0; background: #fff; text-align: left; white-space: nowrap; color: #4b5563; font-size: .875rem; }
.nav-link svg { width: 17px; height: 17px; flex: none; }
.nav-link:hover { background: #f5f5f5; }
.nav-link.active { background: #f3f4f6; color: #1f1f1f; font-weight: 650; }
.nav-link.active::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; background: #1f1f1f; border-radius: 0 2px 2px 0; }
.nav-link .nav-title { flex: 1; }
.sub-link { min-height: 42px; padding-left: 44px; }
.collapsed .nav-link { justify-content: center; padding: 0; }
.chevron { width: 7px; height: 7px; display: inline-block; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transform-origin: center; }
.chevron.up { transform: rotate(225deg) translate(-1px,-1px); }
.shell-main { margin-left: var(--sidebar-width); min-width: 0; transition: margin-left .28s; }
.main-header { position: sticky; top: 0; z-index: 10; }
.top-bar { display: flex; justify-content: space-between; align-items: center; height: 48px; padding-right: 16px; background: #fff; box-shadow: 0 1px 4px #00152914; font-size: .875rem; color: #606266; }
.navbar-left { height: 100%; display: flex; align-items: center; gap: 9px; }
.collapse-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: #fff; color: #606266; }
.collapse-btn:hover,.user-trigger:hover { background: #f7f7f7; }
.breadcrumb-home { background: none; border: 0; padding: 0; color: #303133; font-weight: 650; font-size: inherit; }
.breadcrumb-divider { color: #a8abb2; }
.header-right { height: 100%; }
.header-right .lang-select { min-height: 30px; height: 30px; padding-top: 2px; padding-bottom: 2px; }
.header-dropdown { position: relative; }
.header-dropdown summary { list-style: none; cursor: pointer; }
.header-dropdown summary::-webkit-details-marker { display: none; }
.user-trigger { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px; color: #303133; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1f1f1f; color: #fff; font-size: .75rem; font-weight: 600; flex: none; }
.dropdown-panel { position: absolute; right: 0; top: 100%; z-index: 12; background: #fff; border: 1px solid #e4e7ed; border-radius: 4px; box-shadow: 0 3px 11px #0002; padding: 5px 0; min-width: 138px; }
.dropdown-panel small { display: block; padding: 5px 12px 7px; border-bottom: 1px solid #ebeef5; color: #606266; white-space: nowrap; }
.dropdown-panel button { display: block; text-align: left; padding: 7px 12px; border: 0; background: #fff; width: 100%; font-size: .875rem; white-space: nowrap; }
.dropdown-panel button:hover:not(:disabled) { background: #f1f2f3; }
.dropdown-panel button:disabled { opacity: .45; }
.tags-view { height: 38px; padding-left: 10px; display: flex; align-items: center; gap: 7px; background: #fff; border-bottom: 1px solid #e4e7ed; box-shadow: 0 1px 3px #0000000a; }
.tags { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 37px; overflow-x: auto; scrollbar-width: thin; }
.tag { display: flex; align-items: center; height: 26px; padding: 0 8px; gap: 3px; white-space: nowrap; color: #606266; background: #fff; border: 1px solid #dcdfe6; border-radius: 3px; }
.tag:hover { color: #1f1f1f; }
.tag.active { background: #1f1f1f; border-color: #1f1f1f; color: #fff; }
.tag.active::before { content: ''; width: 6px; height: 6px; margin-left: 1px; margin-right: 2px; border-radius: 50%; background: #fff; }
.tag-title, .tag-close { border: 0; padding: 0; background: none; color: inherit; }
.tag-title { font-size: .8125rem; height: 100%; }
.tag-close { width: 15px; height: 15px; line-height: 1; border-radius: 50%; }
.tag-close:hover { background: #8884; }
.tags-more { width: 38px; height: 37px; display: grid; place-items: center; border-left: 1px solid #e4e7ed; color: #606266; }
.workspace { padding: 12px; display: grid; gap: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card-head p, .dialog-head p { color: var(--muted); margin-top: 3px; font-size: .875rem; }
.button { min-height: 32px; padding: 6px 13px; border: 1px solid transparent; border-radius: 4px; font-size: .875rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; line-height: 1.35; }
.button.primary { background: #1f1f1f; color: #fff; }
.button.primary:hover:not(:disabled) { background: #121115; }
.button.secondary { background: #fff; border-color: #dedce3; color: #4b4754; }
.button.secondary:hover:not(:disabled) { background: #f7f6f8; border-color: #bbb6c2; }
.button:disabled { opacity: .48; }
.link { background: none; border: 0; padding: 0; color: #633049; font-weight: 620; font-size: inherit; text-align: left; }
.link:hover { text-decoration: underline; }
.card { background: #fff; border: 0; border-radius: 4px; overflow: hidden; min-width: 0; }
.card-head { padding: 17px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1.0625rem; font-weight: 720; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 126px; text-align: left; padding: 16px 19px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; align-items: center; gap: 1px 5px; }
.metric:hover { border-color: #c7c2cd; box-shadow: 0 2px 6px #211c2e0a; }
.metric > span { grid-area: 1/1; color: var(--muted); font-size: .875rem; font-weight: 590; }
.metric > strong { font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-icon { grid-area: 1/2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; background: #eeeaf3; color: #564669; }
.metric-icon.pending { background: #fff1dc; color: #865414; }
.metric-icon.received { background: #e6f4ea; color: #28663f; }
.metric-icon.draft { background: #f0eff2; color: #52515c; }
.filters { padding: 16px 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; font-size: .875rem; }
.filters .inline { gap: 8px; }
.filter-unit { flex: 0 0 auto; white-space: nowrap; flex-wrap: nowrap; }
.filter-unit > span { flex: 0 0 auto; }
.filters .filter-unit > select { flex: 0 0 auto; width: auto; min-width: 96px; max-width: 185px; }
.filters input:not([type=checkbox]),.filters select { min-height: 32px; border-radius: 4px; }
.date-filter { display: flex; align-items: center; gap: 7px; }
.filters .date-filter input[type=date] { flex: 0 0 121px; width: 121px; padding: 3px 5px; }
.searchbox { display: flex; align-items: center; position: relative; min-width: 200px; }
.searchbox span { position: absolute; left: 11px; font-size: 1.16rem; color: #817a89; }
.searchbox input { padding-left: 34px; }
.table-card { padding: 16px 18px; }
.table-toolbar { min-height: 32px; margin-bottom: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.table-toolbar:empty { display: none; }
.table-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.table-footer > .button { margin-right: auto; }
.table-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: #606266; font-size: .875rem; }
.table-pagination select { width: auto; min-width: 86px; height: 30px; min-height: 30px; padding-top: 3px; padding-bottom: 3px; }
.page-total { margin-right: 6px; white-space: nowrap; }
.pager-btn { height: 30px; min-width: 30px; padding: 0 6px; border: 0; background: #f0f2f5; border-radius: 4px; color: #606266; }
.pager-btn:hover:not(:disabled) { color: #1f1f1f; background: #e4e7ed; }
.pager-btn.active,.pager-btn.active:hover { color: #fff; background: #1f1f1f; }
.pager-btn:disabled { color: #a8abb2; }
.pager-ellipsis { min-width: 25px; text-align: center; }
.page-jump { margin-left: 5px; }
.page-jump label { display: flex; align-items: center; gap: 5px; }
.page-jump input[type=number] { width: 46px; height: 30px; min-height: 30px; padding: 2px 4px; text-align: center; }
.page-jump input[type=number]::-webkit-inner-spin-button { appearance: none; }
.table-scroll { overflow-x: auto; }
.desk-table { max-height: max(280px, calc(100vh - 265px)); overflow: auto; scrollbar-width: thin; }
.sized-table { table-layout: fixed; }
.sized-table thead th { position: sticky; top: 0; z-index: 1; background: #fafafa; overflow: hidden; border-right: 1px solid #eef0f4; }
.sized-table thead th:last-child { border-right: 0; }
.sized-table .cell-clip,.sized-table th { overflow: hidden; text-overflow: ellipsis; }
.cell-core { display: inline-block; max-width: 100%; text-overflow: ellipsis; overflow: hidden; vertical-align: middle; }
.cell-core .link { display: inline-block; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; vertical-align: middle; }
.sort-label { display: inline-flex; gap: 4px; align-items: center; min-width: 0; max-width: 100%; padding: 0; background: none; color: inherit; border: 0; font-size: inherit; font-weight: inherit; text-align: left; }
.sort-label span:first-child { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.sort-mark { opacity: 0; font-size: .9rem; font-weight: 650; }
.sortable:hover .sort-mark,.sort-label:focus-visible .sort-mark,.sort-label.sorted .sort-mark { opacity: 1; }
.sort-label.sorted { color: #303133; }
.sortable:hover { background: #f2f2f2 !important; }
.column-handle { position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; width: 9px; cursor: col-resize; touch-action: none; }
.column-handle:hover,.column-handle:focus-visible { border-right: 2px solid #8a8d94; }
.resizing { user-select: none; cursor: col-resize; }
.list-table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.list-table th,.list-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #ebeef5; white-space: nowrap; vertical-align: middle; }
.list-table th { color: #606266; background: #f5f7fa; font-weight: 650; }
.list-table th.end,.list-table td.end { text-align: right; }
.list-table tbody tr:hover { background: #f5f7fa; }
.list-table small { display: block; margin-top: 2px; color: #6b6576; }
.list-table .empty { color: var(--muted); text-align: center; padding: 46px 16px; }
.number { font-weight: 700; }
.list-table .special-label { color: #9b333b; }
.action-link { color: #5d4e63; }
.action-space { margin-left: 8px; }
.compact-field { max-width: 210px; }
input[readonly] { background-color: #f5f7fa !important; color: #606266; }
.status { display: inline-flex; align-items: center; border-radius: 5px; padding: 3px 7px; font-size: .8125rem; font-weight: 650; color: #5a5461; background: #efedf1; white-space: nowrap; }
.status.pending,.status.cancel_requested,.status.queued,.status.sending { background: #fff1da; color: #86510d; }
.status.received,.status.sent { background: #e4f3e9; color: #27623f; }
.status.changed,.status.preview { background: #f0eaf7; color: #694e86; }
.status.rejected,.status.failed { background: #fce9ed; color: #9e2841; }
.status.no_show,.status.cancelled { background: #ebe9ee; color: #605666; }

input:not([type=checkbox]):not([type=file]),select,textarea { min-height: 37px; width: 100%; border: 1px solid #e2dfe7; border-radius: 7px; background: #fff; font-size: .875rem; padding: 7px 10px; }
input:not([type=checkbox]):not([type=file]):focus,select:focus,textarea:focus { border-color: #b1a4b1; }
select { width: auto; min-width: 106px; max-width: 100%; appearance: none; padding-right: 28px; background-image: linear-gradient(45deg,transparent 50%,#777180 50%),linear-gradient(135deg,#777180 50%,transparent 50%); background-position: calc(100% - 14px) 50%,calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-grid select,.field select { width: 100%; }
.form-grid .multi-select { background-image: none; padding-right: 10px; }
.field-group { padding: 0; margin: 0; border: 0; min-width: 0; }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; padding: 6px; }
.permission-grid label { display: flex; align-items: center; gap: 9px; font-size: .875rem; }
select:disabled,input:disabled { background-color: #f5f4f6 !important; color: #7b7582; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 15px; }
.form-grid.columns-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.span-2 { grid-column: 1/-1; }
.form-grid b, .slot-panel b { color: var(--brand); }
.pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,1fr); gap: 8px; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: .875rem; margin-top: 16px; }
.check-row.chips { margin-top: 0; gap: 6px 12px; }
.content-pad { padding: 18px 20px; }
.content-pad h3 { font-size: .96rem; margin: 21px 0 9px; }
.content-pad h3:first-child { margin-top: 0; }
.cc-table td:nth-child(2) { width: 64%; }
.cc-table .end { width: 90px; }
.mail-addresses,.subject { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; }
.mail-body { font: .875rem/1.6 ui-monospace, Consolas, monospace; padding: 15px; border-radius: 8px; background: #f7f6f8; white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; }
.warehouse-days { display: grid; gap: 8px; grid-template-columns: repeat(7,minmax(0,1fr)); padding: 15px 18px; }
.warehouse-day { display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 137px; padding: 8px; background: #f8f9fb; border: 1px solid #e7e9ed; border-radius: 4px; font-size: .875rem; }
.day-heading { display: grid; padding-bottom: 5px; border-bottom: 1px solid #e4e7ed; }
.day-heading span,.no-arrivals { color: #606266; }
.scheduled-book { display: grid; gap: 2px; padding: 6px 7px; border: 1px solid #dcdfe6; border-radius: 4px; text-align: left; background: #fff; min-width: 0; font-size: .8125rem; }
.scheduled-book > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scheduled-book:hover { border-color: #909399; }
.scheduled-book small { color: #606266; }
.import-actions { padding: 17px 20px; }
.import-tile { display: flex; flex-direction: column; gap: 8px; border: 1px dashed #d7cdd8; border-radius: 8px; padding: 18px; background: #fdfbfd; font-size: .875rem; }
.import-tile strong { font-size: 1.2rem; }
.import-tile input { font-size: .875rem; }
.error-text { display: block; color: #a3213d !important; }
.info { color: var(--muted); }

.overlay { position: fixed; inset: 0; background: #15151587; z-index: 40; display: grid; place-items: center; padding: 24px; }
.dialog { width: min(780px,96vw); max-height: calc(100vh - 48px); border-radius: 14px; background: #fff; box-shadow: 0 18px 70px #16131d4d; overflow: hidden; display: flex; flex-direction: column; }
.dialog.wide { width: min(1050px,96vw); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.dialog-head h2 { font-size: 1.26rem; }
.dialog-body { overflow: auto; min-height: 0; }
.dialog-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 19px; border-top: 1px solid var(--line); background: #fdfcfe; }
.booking-form { display: flex; flex-direction: column; min-height: 0; }
.booking-grid { display: grid; grid-template-columns: minmax(0,1.23fr) minmax(315px,.85fr); }
.form-main { padding: 16px 21px; }
.slot-panel { border-left: 1px solid var(--line); background: #faf9fb; padding: 16px 17px; }
.slot-panel h3 { font-size: 1rem; margin-bottom: 3px; }
.timezone,.legend { color: var(--muted); font-size: .8125rem; margin: 7px 0 11px; }
.calendar-controls { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 7px; }
.date-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; }
.weekday { color: #696273; font-size: .75rem; margin-bottom: 2px; }
.date-grid button,.time-options button { min-height: 34px; background: #fff; border: 1px solid #e2dee8; border-radius: 6px; font-size: .875rem; }
.date-grid button:hover:not(:disabled),.time-options button:hover:not(:disabled) { border-color: #9e6377; }
.date-grid button.selected,.time-options button.selected { color: #fff; background: #533346; border-color: #533346; }
.date-grid button:disabled,.time-options button:disabled { color: #8b8494; background: #f0eef2; border-color: transparent; }
.date-grid button.unavailable { color:#696471; background:#f0eef2; cursor:help; }
.date-grid button.inspected { outline:2px solid #856675; }
.date-reason { padding:8px 10px; background:#faf4e9; color:#654a22; border-radius:4px; font-size:.875rem; }
.time-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.time-options button { padding: 5px 8px; display: inline-flex; align-items: center; justify-content: space-between; gap: 2px; }
.time-options small { border: 1px solid currentColor; opacity: .8; border-radius: 4px; padding: 0 3px; }
.icon-button { border: 1px solid #e7e5ea; width: 34px; height: 34px; padding: 0; border-radius: 6px; background: #fff; font-size: 21px; line-height: 1; color: #5d5965; flex: none; }
.icon-button:disabled { opacity: .5; }
.dialog-alert { margin: 6px 18px; }
.attachment-control { display: flex; align-items: end; gap: 8px; margin-top: 14px; }
.upload-button { position: relative; overflow: hidden; cursor: pointer; }
.upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-button:focus-within { outline: 2px solid #986266; outline-offset: 2px; }
.attachments,.timeline { list-style: none; padding: 0; margin: 7px 0; }
.attachments li { display: flex; align-items: center; gap: 12px; font-size: .875rem; padding: 6px 0; }
.attachments a { overflow-wrap: anywhere; }
.attachments small { color: var(--muted); }
.detail-time { display: grid; gap: 3px; padding: 13px 15px; background: #f8f3f6; border-radius: 8px; color: #5e3c52; font-size: .875rem; }
.detail-time strong { font-size: 1.18rem; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 15px; margin-top: 14px; }
.detail-list dt { font-size: .8125rem; color: var(--muted); }
.detail-list dd { margin: 2px 0 0; font-size: .9375rem; overflow-wrap: anywhere; }
.timeline li { display: grid; gap: 2px; padding: 7px 11px; border-left: 2px solid #e3d8e0; font-size: .875rem; }
.timeline li span,.timeline li small { color: var(--muted); }
.action-box { margin-top: 16px; display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.toast { position: fixed; z-index: 60; right: 30px; bottom: 28px; padding: 11px 16px; border-radius: 8px; color: #fff; background: #313038; box-shadow: 0 6px 18px #1d17264d; font-size: .875rem; }
.toast.failure { background: #a12742; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
