/* 发件台（admin.html）的版面，只有发件台载入，不载入 style.css。
   老板 2026-11-13 选样稿 A「一栏到底」：跟下载页、公司网站同一个画风 ——
   Poppins 细字、米白底、细线分行、没有卡片和阴影；图标是黑色细线条加一个品牌红的点。
   颜色照公司网站（darkroom8-film-processing-prices/index.css）和 download.css。 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ad {
  --w: 1040px;      /* 内容最宽 */
  --gut: 24px;      /* 左右留白（跟下载页一样，页首的标志才会在同一个位置） */
  --text: #2a2622; --muted: #766d66; --soft: #a39a8f; --line: #e3ddd0; --line2: #d5ccbc;
  --card: #fdfcfa; --hover: #ede7da; --bg: #f4f2ee;
  --brand: #c8341f; --ok: #4a7052; --amber: #b5832a;
  min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 14px/1.6 'Poppins', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased;
}
:where(.ad) :is(h1, h2, h3, p, dl, dd) { margin: 0; font-size: inherit; font-weight: inherit; }
:where(.ad) :is(button, input, select) { font: inherit; color: inherit; }
.ad :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.caps { font-size: 10.5px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.ic { flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ic .dot { fill: var(--brand); stroke: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── 最上面：店名（跟下载页同一个样子）、谁登录着 ── */
.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 var(--gut); border-bottom: 1px solid var(--line); }
.ad-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 11.5px; font-weight: 500; line-height: 1; letter-spacing: .16em;
  text-transform: uppercase; white-space: nowrap; }
.ad-logo { flex: none; width: 24px; height: 24px; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAPoAAAD6AG1e1JrAAARJUlEQVR42tVbCVRU5xUem8U2PaVtqlmaKMiiAiKMIJsg6ywIOgJO3OISSeoWolVDojEdSbM1R2tST5MTYtSUY5pDT1prE4yJLXVgmPdm3uwDjBCrkhibaBvA1kSYmdd7/7fwQEAYB6Wc887MYWbe+//vv/f+3/3u/WWyIP3VaLW3sTrdd6T/69JbJ3o2VRRYFy7SWYs0H9CpmYw5R+EzxiexDVNj2frwaeTC91TCbJbJVfrotEzGOr/kA/uiJbq2LRWqr+vqftT/OXjJxspf/4mfPnHiXtfih8tMWYojppTMLmraDNYdm8AykyNYKjSS1T84ha2H1/opU3uvsKnkf/gZNTmSfBd/A7/1m1IzO8y5yj+7Vj1S9k+j8d6hAL+pf/hw6QA827bPZObNP2BMSuuwTYtjrbCyBpiIPiyK1YdGdsNKe/Xh0/z1EdP7Tl56wWfkO/hd/A381gCAWKdMY23T41gqOb3DurD0oGfL9ulkDDLZOAIEy467uZOHh+pkMjL5U889F29RzvsjHSf32mECOGkYuBcm1FMfPtU/6GSHeyEgeK/QSC/e2xYRzdIzE3tMCvW7LTt3TpMCMfoThwfVZWXdju873I13MwXzXzPLk724QjBAbqDcgNlRuXrB8NsAbFqe3G2ZX/xKR3v73TimOp3udhzjqExeB+ZeI5MRlF0bnygC3zyHg2iYHOGDQXlhtdlRm/i1QLB6eCY+2xEVw5rSMlqdT2xRkNgAYwx6bCD+Dsiir1kWFL9omSH3k4BGJj6KKz4Mi4AY46UxcMbN8tm0S3fBGHHy44IGgnCj84xngjlHdRQRbwB/hMnfuon3uyBw+sAavK7ombCVqg5/zbI/ko79hrY4fGV0uglM+lzKBfs1ROeem2ruI3GLyRHdzqhY1qZUU+ePHp0gnUMgAY+gx+zePcEkT6Zs+ADcmqaMwclLrSEsqgfHapmTQ3nq6iZwcxmhJegEs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FRUFw+ocFczDUbp0txW3xQDa5G72RWoR8mT21JPbey0AALDhlgdxAGuGw2qT6yUa3K5gUxcdwz6/sQ4CuIDXAUGwecMTj4vnlaBXmE7LOmLKzv81b/LjAmyVzeT6hMdwqyzuEiYwd/u8+SVSVw6Qaf5/NksbYHxUfKJSzA5h1fGSJkg30C6/e0y3y5OeBGCaLXxPQlDPD4kHJjxwYCJvjB6YwJpAbELP53v3JgTloMTQR2ZK4cjMrLF0ZKbbicfq1IW1o3pi7JpDU2m39NAUkcbw2W6iYaZRHnDTgANeYMfm3Lfs2By4oN9Ojs2ldEML3ivtMJYRHYq4eQcngwCG5OAkihmYp0CaexVk+UMenW46F/VvxenRAY/Oag4YZ+PR2Rk3dnQWXIroCRjdMWWG7NEOjA7qEF/Zih9627P9Fh+dve7h6WVweDoHD09njPDwdDh3eBoUYDcwO6IoJaV+BZLXn1xlP3v0gsFwz5g5PD2s4/PWkR2fN+eqfPScLItVXfQ+dJQ/2/b0M+rWWirkes+5kb//AcPDf8t8etM+AAAAAElFTkSuQmCC") center / contain no-repeat; } /* 跟下载页同一个标志：线条是镂空的，后面不要垫颜色 */
.ad-app { margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line2); color: var(--muted); font-weight: 400; }
.ad-who { display: flex; align-items: center; gap: 20px; min-width: 0; margin-left: auto; font-size: 12px; color: var(--muted); }
/* 页首的两个分页 Send files · Film Processing（2026-11-14；film.html 也载入这里，样子一样）。绿色数字＝几张单可以寄 */
.ad-nav { display: flex; align-items: stretch; gap: 28px; height: 56px; margin-left: 36px; }
.ad-nav a { display: inline-flex; align-items: center; gap: 7px; margin-bottom: -1px; border-bottom: 1.5px solid transparent; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .15s; }
.ad-nav a:hover { color: var(--text); }
.ad-nav a[aria-current] { border-bottom-color: var(--text); color: var(--text); }
.ad-nav .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 10px; letter-spacing: 0;
  line-height: 18px; text-align: center; }
/* 出问题的记录（problems.js；老板 2026-11-14 选「页首红字＋问题列表」，后台另外寄信到 info@）。Film 页也用 */
.ad-prob { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: auto; padding: 0 11px;
  border: 1px solid #e7b9ae; border-radius: 999px; background: #fbeae6; color: var(--brand); font: 500 10.5px/1 'Poppins', Helvetica, Arial, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.ad-prob:hover { border-color: var(--brand); }
.ad-prob .ic { width: 14px; height: 14px; }
.ad-prob:not([hidden]) ~ .ad-who { margin-left: 0; }
/* 快到期还没动就提醒（老板 2026-11-14 选）：页首琥珀色「N to follow up」，样子跟出问题的红字一样、放在它后面；名单用出问题的列表那一套 */
.ad-follow { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: auto; padding: 0 11px;
  border: 1px solid #e6cfa4; border-radius: 999px; background: #f7eedd; color: var(--amber); font: 500 10.5px/1 'Poppins', Helvetica, Arial, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.ad-follow:hover { border-color: var(--amber); }
.ad-follow .ic { width: 14px; height: 14px; }
.ad-prob:not([hidden]) ~ .ad-follow, .ad-follow:not([hidden]) ~ .ad-who { margin-left: 0; }
.ad-pitem.ad-fitem { grid-template-columns: 58px minmax(0, 1fr) auto; }
.ad-ftag { display: inline-block; margin-right: 8px; padding: 1px 7px 0; border-radius: 3px; background: #f7eedd; color: var(--amber); font-size: 9.5px;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase; vertical-align: 1px; }
.ad-pc .nm { margin-top: 2px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ad-fitem .oid { white-space: nowrap; }
.ad-fitem .what .ad-tab { margin-left: 8px; vertical-align: 1px; } /* 单号旁边的分页标签 */
.ad-pitem.solved .ad-ftag { background: var(--hover); color: var(--muted); }
.ad-dialog.wide { width: min(660px, calc(100vw - 32px)); }
/* Re-open 确认框的勾：要不要寄「链接重新开了」的信给顾客（2026-11-15） */
.ad-tick { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.ad-dlg .ad-tick input { display: block; flex: none; width: 15px; height: 15px; margin: 3px 0 0; padding: 0; border: 0; border-radius: 0; background: none; accent-color: var(--text); cursor: pointer; } /* 盖过 .ad-dlg input（链接那一格） */
.ad-tick small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ad-plist { margin-top: 18px; border-top: 1px solid var(--line); }
.ad-pitem { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ad-pt { padding-top: 1px; text-align: right; font-size: 12px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.ad-pt b { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.ad-pc { min-width: 0; }
.ad-pc .what { font-size: 13px; line-height: 1.5; }
.ad-parea { display: inline-block; margin-right: 8px; padding: 1px 7px 0; border-radius: 3px; background: #fbeae6; color: var(--brand); font-size: 9.5px;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase; vertical-align: 1px; }
.ad-pc .msg { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--brand); overflow-wrap: anywhere; }
.ad-pcount { margin-left: 8px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; } /* 同一件事发生几次 */
.ad-pc .who { margin-top: 2px; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.ad-pa { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ad-pa .ok { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.ad-pitem.solved .ad-pc, .ad-pitem.solved .ad-pt { opacity: .5; }
.ad-pitem.solved .ad-parea { background: var(--hover); color: var(--muted); }
.ad-pitem.solved .msg { color: var(--muted); }
.ad-pcopy { display: block; width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 6px; background: #fff;
  font: 400 12px/1.5 ui-monospace, Menlo, monospace; color: var(--text); resize: vertical; }
.ad-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-link { appearance: none; flex: none; padding: 6px 0; border: 0; background: none; font-size: 11px; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: color .15s; }
.ad-link:hover { color: var(--text); }

.ad-main { width: 100%; max-width: calc(var(--w) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 96px; }
.ad-loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ── 登录 ── */
.ad-login { max-width: 440px; margin: 0 auto; padding: 88px 0 40px; text-align: center; }
.ad-login .caps { color: var(--muted); }
.ad-login h1 { margin-top: 12px; font-size: 28px; font-weight: 300; line-height: 1.2; }
.ad-login-sub { margin-top: 10px; color: var(--muted); }
.ad-login-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.ad-login .ad-warn { justify-content: center; margin-top: 18px; text-align: left; }

/* ── 标题 ── */
.ad-hero { padding-top: 42px; }
.ad-hero .caps { color: var(--muted); }
.ad-hero h1 { margin-top: 10px; font-size: 30px; font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.ad-hero p:last-child { margin-top: 8px; max-width: 640px; color: var(--muted); }

/* ── 拖文件夹的地方 ── */
.ad-drop { display: flex; flex-direction: column; align-items: center; margin-top: 26px; padding: 38px 24px 34px; text-align: center;
  border: 1px dashed var(--line2); border-radius: 6px; transition: background .15s, border-color .15s; }
.ad-drop.over { border-style: solid; border-color: var(--text); background: var(--hover); }
.ad-drop > .ic { width: 46px; height: 46px; }
.ad-drop h2 { margin-top: 14px; font-size: 18px; line-height: 1.35; }
.ad-drop p { margin-top: 4px; max-width: 470px; font-size: 12.5px; color: var(--muted); }
.ad-drop .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
/* 有调色机房（/api/me 的 color）：两个拖放区并排，右边先调色再上传（老板 2026-11-14 选样稿 A）。body.has-color 才看得到 .ad-if-color */
.ad:not(.has-color) .ad-if-color { display: none !important; }
.ad.has-color .ad-no-color { display: none !important; }
.ad.has-color .ad-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.ad.has-color .ad-drops .ad-drop { margin-top: 0; }
.ad-drop-color { border-color: #d9b9a0; background: rgba(244, 228, 212, .35); }
.ad-drop-color > .ic { color: #97521d; }
.ad-drop.ad-drop-color.over { border-color: #97521d; background: #f4e4d4; }
.ad-drops-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
/* 卡上的「Color correct」牌子、调色的步骤（Upload → Color correct → Contact sheets & zip → Column H） */
.ad-cbadge { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 1px 8px 0; border-radius: 999px; background: #f4e4d4;
  color: #97521d; font-size: 11px; vertical-align: 1px; }
.ad-cbadge .ic { width: 12px; height: 12px; }
.ad-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; font-size: 11.5px; color: var(--soft); }
.ad-steps span { display: inline-flex; align-items: center; gap: 6px; }
.ad-steps span::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.3px currentColor; }
.ad-steps .done { color: var(--muted); }
.ad-steps .done::before { background: var(--ok); box-shadow: none; }
.ad-steps .on { color: #97521d; font-weight: 500; }
.ad-steps .on::before { background: #97521d; box-shadow: none; }
.ad-steps .bad { color: var(--brand); font-weight: 500; }
.ad-steps .bad::before { display: none; }
.ad-steps .ic { width: 13px; height: 13px; }
.ad-prog .ad-hint { margin-top: 6px; }
.ad-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .ad-touch { display: inline; } .ad-mouse { display: none; } }

/* 往下看时拖进来：整页盖一层，放开就收进去 */
.ad-cover { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(244, 242, 238, .9);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, visibility 0s linear .15s; }
.ad.cover-on .ad-cover { opacity: 1; visibility: visible; transition: opacity .15s; }
.ad-cover-in { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(520px, 100%); padding: 52px 24px;
  border: 1px solid var(--text); border-radius: 6px; background: var(--hover); font-size: 18px; text-align: center; }
.ad-cover-in .ic { width: 46px; height: 46px; }
/* 有调色：整页盖住时分左右两半，放在哪一半就是哪一种 */
.ad-cover-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(900px, 100%); }
.ad-cover-two .ad-cover-in { width: auto; opacity: .5; transition: opacity .12s; }
.ad-cover-two .ad-cover-in.over { opacity: 1; }
.ad-cover-in.ad-drop-color { border-color: #97521d; background: #f4e4d4; color: #97521d; }

/* ── 按钮 ── */
.ad-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 26px;
  border: 1px solid var(--text); border-radius: 999px; background: var(--text); color: var(--card);
  font: 500 13px/1 'Poppins', Helvetica, Arial, sans-serif; letter-spacing: .02em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: opacity .15s, border-color .15s, background .15s; }
.ad-btn:hover { opacity: .86; }
.ad-btn:disabled { opacity: .25; cursor: not-allowed; }
.ad-btn .ic { width: 19px; height: 19px; }
.ad-btn.line { background: transparent; color: var(--text); border-color: var(--line2); font-weight: 400; }
.ad-btn.line:hover:not(:disabled) { border-color: var(--text); opacity: 1; }
.ad-btn.sm { height: 32px; padding: 0 15px; font-size: 12px; font-weight: 400; }
.ad-btn.sm.solid { font-weight: 500; }
.ad-btn.danger { border-color: var(--brand); background: var(--brand); }
.ad-circle { appearance: none; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.ad-circle:hover, .ad-circle[aria-expanded="true"] { border-color: var(--muted); color: var(--text); }
.ad-circle .ic { width: 14px; height: 14px; }
.ad-circle.spin .ic { animation: ad-spin .8s linear infinite; }
@keyframes ad-spin { to { transform: rotate(360deg); } }

/* ── 小标题 ── */
.ad-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 36px; margin-top: 50px; padding-bottom: 12px; }
.ad-sec h2 { display: flex; align-items: baseline; gap: 10px; }
.ad-sec h2 span { color: var(--muted); letter-spacing: .06em; }
/* Upload all（老板 2026-11-16 选「对得上就自动」）：FOLDERS TO SEND 那一行右边，几张会直接传（绿）、几张要员工看（黄）＋按钮 */
.ad-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; margin-left: auto; }
.ad-allsum { font-size: 12.5px; color: var(--muted); }
.ad-allsum .ok { color: var(--ok); }
.ad-allsum .need { color: var(--amber); }
.ad-allsum .ad-lnk.need { font-size: inherit; text-decoration-color: rgba(181, 131, 42, .45); }
/* 按「need you」跳到那一张卡：卡的背景淡淡闪一下 */
@keyframes ad-flash { from { background: #f7eedd; } to { background: transparent; } }
.ad-job.ad-flash { animation: ad-flash 1.6s ease-out; scroll-margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .ad-job.ad-flash { animation: none; } }

/* ── 拖进来的文件夹：一个一块，细线分开 ── */
.ad-jobs { border-top: 1px solid var(--line); }
.ad-job { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.ad-job-head { display: flex; align-items: flex-start; gap: 14px; }
.ad-job-head > .ic { width: 30px; height: 30px; margin-top: 1px; }
.ad-job-t { flex: 1; min-width: 0; }
.ad-title { display: block; width: calc(100% + 14px); max-width: 640px; margin: -3px -7px 0; padding: 2px 6px; border: 1px solid transparent; border-radius: 4px;
  background: transparent; font-size: 17px; line-height: 1.4; color: var(--text); text-overflow: ellipsis; transition: border-color .15s, background .15s; }
.ad-title:hover:not(:disabled) { border-color: var(--line2); background: var(--card); }
.ad-title:focus { border-color: var(--text); background: var(--card); outline: none; }
.ad-title:disabled { -webkit-text-fill-color: var(--text); opacity: 1; }
.ad-meta { font-size: 12px; color: var(--muted); }
.ad-job-side { display: flex; align-items: center; gap: 14px; flex: none; min-height: 32px; }
.ad-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; }
.ad-state.ok { color: var(--ok); }
.ad-state.bad { color: var(--brand); }
.ad-state.warn { color: var(--amber); }
.ad-state.busy { color: #97521d; } /* 调色中 */
.ad-state .ic { width: 15px; height: 15px; }

/* 卡上的 Film Processing（老板 2026-11-16 看了三个样稿选 C「像表格一行」）：画成表格的那一行，
   Row（分页＋行号）· C 名字 · D Email · E 卷数 · F 服务 · G 付款 · H 链接。卡窄了（手机、窄的视窗）一格一排、左边写栏位名：看的是那一块自己多宽（container） */
.ad-cbody { container-type: inline-size; display: flex; flex-direction: column; gap: 14px; margin: 16px 0 0 44px; }
.ad-cbody > * { margin: 0; }
.ad-sheet { border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; background: var(--card); }
.ad-srow { display: grid; grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1.5fr) 84px 108px 160px minmax(0, 1.2fr); }
.ad-srow > div:nth-child(4) { justify-content: center; } /* E 卷数：栏位名、数字都放中间（老板 2026-11-16 说太靠近旁边的框） */
.ad-srow > div:nth-child(4) input { text-align: center; }
.ad-srow + .ad-srow { border-top: 1px solid var(--line); }
.ad-shd + .ad-srow { border-top-color: var(--line2); }
.ad-srow > div { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 46px; padding: 7px 12px; border-left: 1px solid var(--line); font-size: 13px; overflow: hidden; }
.ad-srow > div:first-child { justify-content: center; border-left: 0; background: var(--bg); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ad-shd > div, .ad-shd > div:first-child { min-height: 0; padding-block: 7px; background: var(--bg); font-size: 9.5px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-shd b { font-weight: 500; letter-spacing: 0; color: var(--soft); }
.ad-ctxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* C 栏名字跟文件夹名字一样：绿色 ✓；不一样：黄字（Upload all 跳过那一张） */
.ad-cname { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ad-cname .ic { flex: none; width: 14px; height: 14px; color: var(--ok); }
.ad-cname span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-cname.bad { color: var(--amber); }
.ad-csoft, .ad-clater { color: var(--soft); }
.ad-clater { font-size: 12px; white-space: nowrap; }
.ad-cpaid { color: var(--ok); } /* G：Paid 绿色、还欠的金额红色（跟 Paid／Not paid 按钮一样） */
.ad-cowe { color: var(--brand); }
.ad-crow { font-size: 14px; font-weight: 500; color: var(--text); } /* 行号：深色、粗一点，一眼看得到（老板 2026-11-16） */
.ad-cnew { padding: 1px 6px 0; border-radius: 3px; background: #f7eedd; color: var(--amber); font-size: 9.5px; font-weight: 500; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.ad-chere { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; } /* 链接写进这里（红点） */
.ad-chere::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ad-clink { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; }
.ad-clink .ic { width: 15px; height: 15px; color: var(--ok); }
.ad-clink span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-clink.bad, .ad-clink.bad .ic { color: var(--brand); }
/* 点 email 开写信、点链接开链接（老板 2026-11-16）：淡淡一条底线，滑鼠停着变深 */
.ad-cmail { color: inherit; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.ad-cmail:hover { text-decoration-color: currentColor; }
a.ad-clink { color: inherit; text-decoration: none; }
a.ad-clink span { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
a.ad-clink:hover span { text-decoration-color: currentColor; }
/* 找不到单：那一行就是输入框（底下一条细线，像表格的格子） */
.ad-srow input { display: block; width: 100%; min-width: 0; height: 30px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; background: transparent;
  font-size: 13px; color: var(--text); transition: border-color .15s; }
.ad-srow input:hover:not(:disabled) { border-bottom-color: var(--muted); }
.ad-srow input:focus { border-bottom-color: var(--text); outline: none; }
.ad-srow input:disabled { border-bottom-color: transparent; -webkit-text-fill-color: var(--muted); color: var(--muted); opacity: 1; cursor: not-allowed; }
.ad-srow input::placeholder { color: var(--soft); }
.ad-srow input.up { text-transform: uppercase; } /* C 栏的名字都是大写（后台也会转） */
/* 表格上面那一排：左边 Add to（找不到单才有），右边 Link works for（老板 2026-11-16：放在 Add to 的右边） */
.ad-ctools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.ad-ctools .ad-fdays { margin-left: auto; }
.ad-cpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ad-cpick .caps { color: var(--muted); }
.ad-lnk { appearance: none; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ad-lnk:hover { color: var(--text); }
.ad-csbad { padding: 0; list-style: none; font-size: 12.5px; color: var(--amber); } /* 做不了 contact sheet 的那几卷 */
.ad-csbad li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.ad-csbad .ad-tab { flex: none; margin-top: 1px; }
.ad-csbad li + li { margin-top: 4px; }
.ad-csbad .ic { width: 15px; height: 15px; margin-top: 2px; }
@container (max-width: 860px) { /* 再窄名字、email 只看得到几个字：上面一条写分页、行号，下面两格一排（栏位名写在格子上面） */
  .ad-shd { display: none; }
  .ad-shd + .ad-srow { border-top: 0; }
  .ad-srow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-srow + .ad-srow { border-top-color: var(--line2); }
  .ad-srow > div { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 0; padding: 8px 14px 9px; border-top: 1px solid var(--line); }
  .ad-srow > div:nth-child(even) { border-left: 0; }
  .ad-srow > div:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; padding-block: 7px; border-top: 0; }
  .ad-srow > div[data-k]::before { content: attr(data-k); font-size: 9.5px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .ad-srow > div > * { max-width: 100%; }
  .ad-srow > div:nth-child(4) input { text-align: left; }
}
@container (max-width: 300px) { /* 很窄的手机（320 宽）：一格一排；一般手机（375）照两格一排 */
  .ad-srow { grid-template-columns: minmax(0, 1fr); }
  .ad-srow > div:nth-child(odd) { border-left: 0; }
}
/* 网页关掉后再拖同一个文件夹：上次传到哪里（黄字＋进度线；老板 2026-11-14 选「照样稿做」） */
.ad-part .ad-bar { max-width: 640px; margin-top: 12px; }
/* 一张单在几个分页：每一卷选去哪个分页（老板 2026-11-14：不同工艺分开寄信，选「对，照这样做」） */
.ad-split { max-width: 640px; margin-top: 14px; border-top: 1px solid var(--line); }
.ad-sroll { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ad-sroll .nm { min-width: 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.ad-sroll .nm b { font-weight: 500; color: var(--text); }
.ad-sroll .ad-seg { flex: none; margin-left: auto; }
.ad-split + .ad-hint { margin-top: 10px; }
.ad-table .ad-bad .ad-tab { margin-right: 8px; } /* 没写进表格的那一笔也标分页 */
.ad-field > .caps { display: block; margin-bottom: 9px; color: var(--muted); }
.ad-field > .caps b { font-weight: 400; color: var(--text); }
.ad-rows { display: flex; flex-direction: column; gap: 7px; }
.ad-orow { display: flex; align-items: baseline; gap: 12px; min-width: 0; white-space: nowrap; font-size: 13.5px; }
.ad-where { flex: none; display: inline-flex; align-items: baseline; gap: 8px; min-width: 104px; font-size: 12px; color: var(--muted); }
.ad-tab { display: inline-block; min-width: 40px; padding: 2px 6px 1px; border: 1px solid var(--line2); border-radius: 3px; text-align: center;
  font-size: 9.5px; font-weight: 500; line-height: 1.5; letter-spacing: .12em; color: var(--text); }
/* 分页标签的颜色（老板 2026-11-14 选样稿 A「浅底色」）：C41 橙（彩色负片的橙色片基）、DDX 黑白、ECN2 青绿（电影卷）、E6 蓝（正片）。
   红、黄、绿留给状态，不拿来当分页颜色 */
.ad-tab.t-c41 { border-color: #f4e4d4; background: #f4e4d4; color: #97521d; }
.ad-tab.t-ddx { border-color: #e4e0da; background: #e4e0da; color: var(--text); }
.ad-tab.t-ecn2 { border-color: #dbe9e5; background: #dbe9e5; color: #2d625c; }
.ad-tab.t-e6 { border-color: #dfe5f0; background: #dfe5f0; color: #33538a; }
.ad-orow .nm { overflow: hidden; text-overflow: ellipsis; }
.ad-orow .em { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
.ad-hint { margin-top: 10px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.ad-pending { font-size: 13px; color: var(--muted); }
.ad-warn { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.55; color: var(--brand); }
.ad-warn .ic { width: 16px; height: 16px; margin-top: 1px; }
.ad-warn b { font-weight: 500; }
.ad-rows + .ad-warn, .ad-hint + .ad-warn { margin-top: 10px; }
.ad-warn.amber { color: var(--amber); }
.ad-warn .ad-btn { margin-left: 4px; vertical-align: middle; }
.ad-err { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid rgba(200, 52, 31, .35); border-radius: 6px;
  font-size: 12.5px; line-height: 1.55; color: var(--brand); }
.ad-err .ic { width: 16px; height: 16px; margin-top: 1px; }

/* 链接给几天：三个连在一起的选项 */
.ad-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line2); border-radius: 999px; }
.ad-seg button { appearance: none; height: 30px; padding: 0 15px; border: 0; border-radius: 999px; background: none; font-size: 12px; color: var(--muted);
  cursor: pointer; transition: background .15s, color .15s; }
/* 按下去那一颗黑底白字。滑鼠停着（手机按完也一直算停着）只改没按下去的那几颗：以前停着会把字也变黑，黑底黑字变成一块黑（老板 2026-11-16） */
.ad-seg button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--hover); color: var(--text); }
.ad-seg button[aria-pressed="true"] { background: var(--text); color: var(--card); }
.ad-seg button.yes[aria-pressed="true"] { background: var(--ok); color: #fdfcfa; } /* Paid 按下去绿色、Not paid 红色（老板 2026-11-16） */
.ad-seg button.no[aria-pressed="true"] { background: var(--brand); color: #fdfcfa; }
.ad-seg.sm { padding: 2px; }
.ad-seg.sm button { height: 26px; padding: 0 11px; font-size: 11.5px; white-space: nowrap; }
.ad-seg button:disabled { cursor: not-allowed; }
.ad-seg:has(button:disabled) { opacity: .55; }

.ad-job-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0 0 44px; }
.ad-fdays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ad-fdays .caps { color: var(--muted); }
.ad-fgo { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; min-width: 0; margin-left: auto; }
.ad-fnote { font-size: 12.5px; color: var(--muted); }
.ad-fnote b { font-weight: 500; color: var(--text); }

/* 进度：细细一条线 */
.ad-prog { margin: 16px 0 0 44px; }
.ad-bar { height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.ad-bar i { display: block; width: 0; height: 100%; background: var(--text); transition: width .3s; }
.ad-bar.busy i { width: 30%; animation: ad-slide 1.4s ease-in-out infinite; }
@keyframes ad-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.ad-prog-t { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ad-prog-t .lost { color: var(--amber); }

.ad-linkrow { display: flex; gap: 8px; max-width: 640px; margin-top: 14px; }
.ad-linkrow input { flex: 1; min-width: 0; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 12.5px; color: var(--muted); }
.ad-linkrow input:focus { border-color: var(--text); outline: none; }
.ad-linkrow .ad-btn { height: 36px; }

/* ── 发送记录 ── */
.ad-tools { display: flex; align-items: center; gap: 10px; }
.ad-search { position: relative; display: block; }
.ad-search .ic { position: absolute; left: 13px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--muted); pointer-events: none; }
.ad-search input { width: 270px; height: 36px; padding: 0 14px 0 36px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card);
  font-size: 12.5px; color: var(--text); -webkit-appearance: none; appearance: none; }
.ad-search input::placeholder { color: var(--soft); }
.ad-search input:focus { border-color: var(--text); outline: none; }
.ad-search input::-webkit-search-cancel-button { cursor: pointer; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ad-chip { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: none; font-size: 12px; color: var(--muted); white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s; }
.ad-chip:hover { border-color: var(--muted); color: var(--text); }
.ad-chip span { color: var(--soft); font-variant-numeric: tabular-nums; }
.ad-chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--card); }
.ad-chip[aria-pressed="true"] span { color: inherit; opacity: .6; }

/* 记录（老板 2026-11-14 选样稿 B「一行全部看得到」）：一天一段、一笔一行，用图标代替字；
   滑鼠停在格子上看详细，手机看「⋯ → Details」。一天可能上百笔，所以一行要矮 */
.ad-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.ad-table .c-dot { width: 24px; }
.ad-table .c-sheet { width: 208px; } /* 两行放得下：C41 row 25 · DDX row 3（三行就是 C41 row 25 · DDX row 3 +1） */
.ad-table .c-time { width: 60px; }
.ad-table .c-left { width: 80px; }
.ad-table .c-dl { width: 84px; }
.ad-table .c-act { width: 72px; }
.ad-table thead th { padding: 12px 8px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
  font-size: 9.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ad-table td { height: 44px; padding: 0 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ad-table th.dot, .ad-table td.dot { padding: 0 0 0 6px; }
.ad-table th.time, .ad-table td.time { text-align: right; }
.ad-table td.time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ad-table td.act { padding-right: 0; text-align: right; }
.ad-table tbody tr.ad-tr:hover td { background: rgba(237, 231, 218, .55); }
.ad-table td.empty { height: auto; padding: 36px 0; text-align: center; white-space: normal; color: var(--muted); }
/* 一天一段：TODAY · SAT 14 NOV */
.ad-dayrow th { padding: 26px 0 8px; border-bottom: 1px solid var(--line2); text-align: left; font-size: 10.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.ad-dayrow th span { font-weight: 400; color: var(--muted); }
.ad-table tbody .ad-dayrow:first-child th { padding-top: 16px; }

/* 状态圆点：绿＝可以下载、空心＝过期、红＝没写进表格、黄＝没传完、浅＝删了（筛选按钮上也有） */
.ad-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.ad-dot.expired { background: none; box-shadow: inset 0 0 0 1.3px var(--muted); }
.ad-dot.deleted { background: var(--line2); }
.ad-dot.busy { background: var(--amber); }
.ad-dot.bad { background: var(--brand); }
.ad-chip .ad-dot { width: 6px; height: 6px; margin-right: -1px; }
.ad-chip[aria-pressed="true"] .ad-dot.expired { box-shadow: inset 0 0 0 1.3px var(--card); }

.ad-name { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; color: var(--muted); }
.ad-name b { font-weight: 400; color: var(--text); letter-spacing: .01em; }
/* 放不下的行号整个收到第二行（藏起来，不会切一半），admin.js 的 fitTags() 再在最后写「+N」 */
.ad-tags { display: flex; flex-wrap: wrap; gap: 0 12px; height: 20px; overflow: hidden; }
.ad-tags .ad-where { min-width: 0; gap: 6px; }
.ad-tags .ad-where[hidden] { display: none; }
.ad-tags .ad-tab { min-width: 36px; }
.ad-tags .ad-plus { flex: none; margin-left: -4px; font-size: 12px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ad-tags.soft .ad-plus { color: var(--soft); }
.ad-tags.soft .ad-where { color: var(--soft); }
.ad-tags.soft .ad-tab, .ad-tr.deleted .ad-tab { opacity: .45; } /* 还没传完、删了：标签淡下去 */
.ad-table .ad-bad { font-size: 12px; color: var(--brand); }
.ad-off { font-size: 12px; color: var(--soft); }
.ad-left, .ad-seen { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ad-left { font-size: 12px; color: var(--muted); }
.ad-left .ic { width: 14px; height: 14px; }
.ad-left.warn { color: var(--amber); }
.ad-seen { font-size: 12.5px; color: var(--text); }
.ad-seen .ic { width: 16px; height: 16px; }
.ad-seen.none, .ad-seen.off { color: var(--soft); }
.ad-seen.open { color: var(--muted); }
.ad-seen.busy { font-size: 12px; color: var(--amber); }
.ad-seen.bad { font-size: 12px; color: var(--brand); }
.ad-tr.deleted .ad-name, .ad-tr.deleted .ad-name b, .ad-tr.deleted td.time, .ad-tr.deleted .ad-where { color: var(--soft); }
.ad-tr.expired .ad-name b { color: var(--muted); }
.ad-acts { display: inline-flex; align-items: center; gap: 2px; }
.ad-table .ad-left, .ad-table .ad-seen { display: flex; } /* 图标跟同一行的字对齐 */
.ad-table td.act .ad-acts { display: flex; justify-content: flex-end; }
/* 没有框的小图标按钮（一行一个，有框的话一整排圆圈太乱） */
.ad-ib { appearance: none; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.ad-ib:hover, .ad-ib[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.ad-ib:disabled { opacity: .35; cursor: default; }
.ad-ib .ic { width: 16px; height: 16px; }
.ad-ib.bad { color: var(--brand); }
.ad-ib.warn { color: var(--amber); } /* 顾客按了「请我们重开」的那一笔：Re-open 图标琥珀色（跟页首提醒同色） */
/* Details：一笔的经过（老板 2026-11-14 选样稿 B「每一次下载都列出来」）。实心点＝已经发生，红点＝现在，空心点、虚线＝以后 */
.ad-dlg .ad-tl-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: 12.5px; color: var(--text); }
.ad-tl-sum span { width: 100%; color: var(--muted); overflow-wrap: anywhere; }
.ad-tl { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ad-ev { display: grid; grid-template-columns: 52px 18px minmax(0, 1fr); column-gap: 10px; }
.ad-ev .t { padding: 1px 0 12px; text-align: right; font-size: 12px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; } /* 日期＋时间两行时，下面也留空，不会跟下一个黏在一起 */
.ad-ev .t b { display: block; margin-bottom: 1px; font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.ad-ev .rail { position: relative; }
.ad-ev .rail::before, .ad-ev .rail::after { content: ''; position: absolute; left: 8.5px; width: 1px; background: var(--line2); }
.ad-ev .rail::before { top: 0; height: 9px; }
.ad-ev .rail::after { top: 9px; bottom: 0; }
.ad-ev:first-child .rail::before, .ad-ev:last-child .rail::after { display: none; }
.ad-ev.now .rail::after, .ad-ev.later .rail::before, .ad-ev.later .rail::after { background: repeating-linear-gradient(var(--line2) 0 3px, transparent 3px 6px); }
.ad-ev .rail i { position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.ad-ev.now .rail i, .ad-ev.bad .rail i { background: var(--brand); }
.ad-ev.later .rail i { background: var(--card); box-shadow: inset 0 0 0 1.3px var(--muted); }
.ad-ev .c { min-width: 0; padding-bottom: 14px; }
.ad-ev:last-child .c, .ad-ev:last-child .t { padding-bottom: 2px; }
.ad-ev .what { font-size: 13px; line-height: 1.5; }
.ad-ev .sub { font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.ad-ev .sub .ad-where { min-width: 0; margin-right: 8px; color: var(--text); }
.ad-ev.now .t, .ad-ev.now .what, .ad-ev.bad .what { color: var(--brand); }
.ad-ev.later .what { color: var(--muted); }
.ad-ev.warn .rail i { background: var(--amber); }
.ad-ev.warn .sub { color: var(--amber); }
.ad-tl-wait { padding: 4px 0 2px 80px; font-size: 12px; color: var(--muted); }
.ad-more { display: flex; justify-content: center; margin-top: 18px; }

/* 「⋯」选单：fixed 定位，不会被表格裁掉 */
.ad-pop { position: fixed; z-index: 50; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  box-shadow: 0 16px 40px rgba(42, 38, 34, .12); font: 400 13px/1.3 'Poppins', Helvetica, Arial, sans-serif; color: var(--text); }
.ad-popitem { appearance: none; display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 5px; background: none; text-align: left; white-space: nowrap;
  font: inherit; color: inherit; cursor: pointer; }
.ad-popitem:hover, .ad-popitem:focus-visible { background: var(--hover); outline: none; }
.ad-popitem.danger { color: var(--brand); }

/* ── 确认框 ── */
.ad-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(42, 38, 34, .2); font: 400 14px/1.6 'Poppins', Helvetica, Arial, sans-serif; }
.ad-dialog::backdrop { background: rgba(42, 38, 34, .4); }
.ad-dlg { padding: 28px 28px 22px; }
.ad-dlg h3 { font-size: 22px; font-weight: 300; line-height: 1.25; }
.ad-dlg h3 + p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ad-dlg input { display: block; width: 100%; height: 40px; margin-top: 16px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px;
  background: #fff; font-size: 13px; }
.ad-facts { display: grid; grid-template-columns: 116px minmax(0, 1fr); margin-top: 20px; border-top: 1px solid var(--line); }
.ad-facts dt, .ad-facts dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.ad-facts dt { padding-top: 14px; padding-right: 12px; font-size: 9.5px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ad-facts dd { font-size: 13px; overflow-wrap: anywhere; }
.ad-facts dd.key { font-weight: 500; }
.ad-facts .ad-rows { gap: 5px; }
.ad-facts .ad-orow { font-size: 13px; white-space: normal; }
.ad-dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.ad-toast { position: fixed; z-index: 80; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); padding: 11px 20px;
  border-radius: 999px; background: var(--text); color: var(--card); transform: translateX(-50%); box-shadow: 0 12px 30px rgba(42, 38, 34, .22);
  font: 400 13px/1.35 'Poppins', Helvetica, Arial, sans-serif; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .ad-bar i, .ad-cover { transition: none; }
  .ad-bar.busy i { animation-duration: 3s; }
  .ad-circle.spin .ic { animation: none; }
}

/* ── 手机 ── */
@media (max-width: 760px) {
  .ad-who span { display: none; }
  /* 页首：店名、Sign out 一行，分页搬到下面一行 */
  .ad-top { flex-wrap: wrap; height: auto; min-height: 56px; column-gap: 16px; row-gap: 0; }
  .ad-top .ad-brand, .ad-top .ad-who { min-height: 56px; }
  .ad-nav { order: 3; flex: 1 0 64%; height: 42px; margin-left: 0; gap: 24px; } /* 64%：跟店名挤不下一行，自己换到第二行；红字跟在后面 */
  .ad-prob { order: 4; align-self: center; }
  .ad-prob span { display: none; } /* 手机只写数字 */
  .ad-prob:not([hidden]) ~ .ad-who { margin-left: auto; }
  .ad-follow { order: 4; align-self: center; }
  .ad-follow span { display: none; } /* 手机只写数字 */
  .ad-follow:not([hidden]) ~ .ad-who { margin-left: auto; }
  /* 红字、琥珀色都在：分页那一排放不下两个，分页自己一排，两个一起排到下一排 */
  .ad-top:has(.ad-prob:not([hidden])):has(.ad-follow:not([hidden])) { row-gap: 4px; padding-bottom: 10px; }
  .ad-top:has(.ad-prob:not([hidden])):has(.ad-follow:not([hidden])) .ad-nav { flex-basis: 100%; }
  .ad-prob:not([hidden]) ~ .ad-follow { margin-left: 0; }
  .ad-pitem.ad-fitem { grid-template-columns: 52px minmax(0, 1fr); }
  .ad-pitem { grid-template-columns: 44px minmax(0, 1fr); }
  .ad-pa { grid-column: 2; flex-direction: row; align-items: center; gap: 14px; margin-top: 6px; }
  .ad-hero { padding-top: 30px; }
  .ad-hero h1 { font-size: 26px; }
  .ad-login { padding-top: 56px; }
  .ad-drop { padding: 30px 18px 28px; }
  .ad.has-color .ad-drops { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ad-cover-two { grid-template-columns: minmax(0, 1fr); }
  .ad-sec { flex-wrap: wrap; margin-top: 42px; }
  .ad-tools { width: 100%; }
  .ad-search { flex: 1; }
  .ad-search input { width: 100%; }
  /* 名字占满一行：状态字搬到名字下面，右边只留 × */
  .ad-job-head { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "ic t x" "ic s x"; column-gap: 12px; align-items: start; }
  .ad-job-head > .ic { grid-area: ic; width: 26px; height: 26px; }
  .ad-job-t { grid-area: t; }
  .ad-job-side { display: contents; }
  .ad-job-side .ad-state { grid-area: s; justify-self: start; margin-top: 6px; }
  .ad-job-side .ad-circle { grid-area: x; }
  .ad-title { font-size: 16px; }
  .ad-cbody, .ad-job-foot, .ad-prog { margin-left: 0; }
  .ad-job-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .ad-fgo { flex-direction: column; align-items: stretch; margin-left: 0; }
  .ad-ctools .ad-fdays { margin-left: 0; } /* 手机：Add to 一排、Link works for 一排，都靠左 */
  .ad-job-foot .ad-btn { width: 100%; }
  .ad-orow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; }
  .ad-orow .nm { grid-column: 2; }
  .ad-orow .em { grid-column: 2; }
  .ad-rows { gap: 10px; }
  .ad-linkrow { flex-direction: column; }
  .ad-linkrow input { flex: none; height: 40px; }
  .ad-linkrow .ad-btn { width: 100%; height: 40px; }
  .ad-dlg { padding: 24px 20px 18px; }
  .ad-facts { grid-template-columns: 96px minmax(0, 1fr); }
  .ad-dlg-actions .ad-btn { flex: 1; padding: 0 16px; }
  /* 记录：一笔两行 —— 上面名字＋按钮，下面行号、时间、还剩几天、下载（一栏一栏对齐） */
  .ad-table, .ad-table tbody, .ad-table tr { display: block; }
  .ad-table colgroup, .ad-table thead { display: none; }
  .ad-table tr.ad-tr { display: grid; grid-template-columns: 7px minmax(0, 1fr) 40px 54px 40px; grid-template-rows: 30px 20px;
    grid-template-areas: "dot name name act act" ". sheet time left seen";
    align-items: center; column-gap: 12px; row-gap: 2px; padding: 6px 0 7px 6px; border-bottom: 1px solid var(--line); }
  .ad-table tr.ad-tr td { display: block; height: auto; min-width: 0; padding: 0; border: 0; }
  .ad-table tbody tr.ad-tr:hover td { background: none; }
  .ad-table td.dot { grid-area: dot; display: flex; }
  .ad-table td.name { grid-area: name; }
  .ad-table td.sheet { grid-area: sheet; }
  .ad-table td.time { grid-area: time; }
  .ad-table td.left { grid-area: left; }
  .ad-table td.seen { grid-area: seen; justify-self: end; }
  .ad-table td.act { grid-area: act; justify-self: end; }
  .ad-table tr.busy td.left { display: none; }
  .ad-table tr.busy td.seen { grid-column: 4 / 6; }
  .ad-dayrow th { display: block; }
  .ad-table td.empty { display: block; }
}
@media (max-width: 560px) { .ad { --gut: 20px; } } /* 跟下载页同一个断点 */
@media (max-width: 380px) { /* 很窄的手机：页首挤不下才收一点字距 */
  .ad-brand { gap: 9px; letter-spacing: .12em; }
  .ad-app { margin-left: 2px; padding-left: 10px; }
  .ad-link { letter-spacing: .1em; }
}
@media (max-width: 340px) { .ad-app { display: none; } } /* 最小的手机：页首只留店名 */

/* ── 整理扫描（老板 2026-11-17 选样稿 C「先回答问题」）──
   扫描机的文件夹拖进来：最上面是要员工决定的事（一题一块，像选择题），下面一张单一行（Row · C · 几卷 · H · 状态），最下面 Upload all。
   一行的格子跟上传卡的表格一样（行号粗、分页浅底色）；单子那一块窄了（手机）变成三排：分页＋状态、名字、几卷＋链接 */
.ad-sfrom { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.ad-sfrom b { font-weight: 500; color: var(--text); }
.ad-sfrom .ad-lnk { font-size: 12px; }
.ad-warnt { color: var(--amber); }
.ad-qs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } /* minmax(0,…)：选项那一格不会把手机撑宽 */
.ad-q { padding: 16px 20px 18px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card); scroll-margin-top: 16px; }
.ad-q.ad-flash { animation: ad-flash 1.6s ease-out; }
.ad-qn { display: flex; align-items: center; gap: 7px; color: var(--amber); }
.ad-qn .ic { width: 14px; height: 14px; }
.ad-q h3 { margin-top: 6px; font-size: 16px; line-height: 1.4; }
.ad-qwhat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ad-qwhat b { font-weight: 500; color: var(--text); }
.ad-qwhat .ic { width: 15px; height: 15px; }
.ad-qwhat .f { min-width: 0; color: var(--soft); overflow-wrap: anywhere; }
.ad-qhint { max-width: 660px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ad-qhint b { font-weight: 500; color: var(--text); }
.ad-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; max-width: 720px; margin-top: 14px; }
.ad-opts.one { grid-template-columns: minmax(0, 360px); }
.ad-opt { appearance: none; display: grid; gap: 3px; padding: 11px 14px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg);
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ad-opt:hover { border-color: var(--text); background: var(--card); }
.ad-opt .tp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-opt .tp .ad-crow { font-size: 13px; }
.ad-opt .fm { font-size: 12px; color: var(--muted); }
.ad-opt .nm { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ad-opt .nm .ic { width: 15px; height: 15px; color: var(--ok); }
.ad-opt .sub { font-size: 11.5px; color: var(--muted); }
.ad-qskip { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--muted); }
.ad-qfix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 600px; margin-top: 12px; }
.ad-qfix input { flex: 1 1 260px; min-width: 0; height: 34px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; background: transparent;
  font-size: 13px; color: var(--text); }
.ad-qfix input::placeholder { color: var(--soft); }
.ad-qfix input:focus { border-bottom-color: var(--text); outline: none; }
.ad-qrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.ad-q > .ad-seg { margin-top: 12px; }
.ad-sec.ad-osec { margin-top: 30px; }
.ad-ol { container: adol / inline-size; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; background: var(--card); }
.ad-oi { display: grid; grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr) 150px; grid-template-areas: "row name rolls link st"; }
.ad-oi + .ad-oi { border-top: 1px solid var(--line); }
.ad-ohd + .ad-oi { border-top-color: var(--line2); }
.ad-oi > div { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-width: 0; min-height: 48px; padding: 8px 12px;
  border-left: 1px solid var(--line); font-size: 13px; }
.ad-oi > .o-row { grid-area: row; flex-direction: row; align-items: center; justify-content: center; gap: 7px; border-left: 0; background: var(--bg); font-variant-numeric: tabular-nums; }
.ad-oi > .o-name { grid-area: name; }
.ad-oi > .o-rolls { grid-area: rolls; }
.ad-oi > .o-link { grid-area: link; }
.ad-oi > .o-st { grid-area: st; }
.ad-oi .sx { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; max-width: 100%; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.ad-oi .sx.bad { color: var(--brand); }
.ad-oi .over { color: var(--amber); }
.ad-oi .ad-cbadge { margin-left: 0; }
.ad-oi .ad-crow { white-space: nowrap; }
.ad-oi .ad-clink { max-width: 100%; } /* 链接太长：切掉、后面三个点（不要盖到状态那一格） */
.ad-oi.need { background: #fbf6ec; }
.ad-oi.need > .o-row { background: #f7eedd; }
.ad-oi.bad > .o-row { background: #fbeae6; }
.ad-ohd > div { min-height: 0; padding-block: 7px; background: var(--bg); font-size: 9.5px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-ohd b { margin-right: 6px; font-weight: 500; letter-spacing: 0; color: var(--soft); }
.ad-tabbtn { appearance: none; cursor: pointer; }
.ad-tabbtn:hover, .ad-tabbtn[aria-expanded="true"] { border-color: var(--muted); }
.ad-qjump { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; }
.ad-qjump:hover { text-decoration: underline; text-underline-offset: 3px; }
.ad-sbar { width: 100%; max-width: 130px; margin-top: 5px; }
.ad-sacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.ad-sacts .ad-btn.sm { height: 28px; padding: 0 12px; font-size: 11.5px; }
.ad-sacts .ad-lnk { font-size: 12px; color: var(--muted); }
.ad-souts:not(:empty) { margin-top: 22px; }
.ad-south { color: var(--muted); }
.ad-south span { margin-left: 8px; letter-spacing: .06em; }
.ad-sout { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ad-sout li { display: grid; grid-template-columns: 16px minmax(0, max-content) minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-height: 38px; padding: 6px 2px;
  border-bottom: 1px solid var(--line); font-size: 13px; }
.ad-sout .ic { width: 15px; height: 15px; color: var(--muted); }
.ad-sout .nm { min-width: 0; overflow-wrap: anywhere; }
.ad-sout .why { min-width: 0; font-size: 12px; color: var(--muted); }
.ad-sout .why.bad { color: var(--amber); }
.ad-sout .ad-lnk { font-size: 12px; color: var(--muted); }
.ad-sgo { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; margin-top: 16px; }
.ad-sclear { font-size: 12px; color: var(--muted); }
@container adol (max-width: 680px) {
  .ad-ohd { display: none; }
  .ad-oi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "row st" "name name" "rolls link"; }
  .ad-ohd + .ad-oi { border-top: 0; }
  .ad-oi > div { border-left: 0; }
  .ad-oi > .o-row { justify-content: flex-start; }
  .ad-oi > .o-st { align-items: flex-end; background: var(--bg); }
  .ad-oi.need > .o-st { background: #f7eedd; }
  .ad-oi.bad > .o-st { background: #fbeae6; }
  .ad-oi > .o-name, .ad-oi > .o-rolls, .ad-oi > .o-link { border-top: 1px solid var(--line); }
  .ad-oi > .o-link { border-left: 1px solid var(--line); }
  .ad-sacts { justify-content: flex-end; }
}
@container adol (max-width: 300px) {
  .ad-oi { grid-template-areas: "row st" "name name" "rolls rolls" "link link"; }
  .ad-oi > .o-link { border-left: 0; }
}
@media (max-width: 640px) {
  .ad-q { padding: 14px 14px 16px; }
  .ad-sout li { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .ad-sout .why { grid-column: 2 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .ad-q.ad-flash { animation: none; } }

/* ── 从开好的链接只删一卷或几张（2026-11-17）：照卷列出，整卷勾或点开小图一张一张点（要删的红框＋红色 ×）── */
.ad-rm-hint { margin-top: 6px !important; font-size: 12.5px; color: var(--muted); }
.ad-rm-list { max-height: min(52vh, 520px); margin-top: 16px; overflow: auto; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.ad-rm-roll { padding: 10px 2px 11px; border-bottom: 1px solid var(--line); }
.ad-rm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ad-rm-head .ad-tick { flex: 1; min-width: 0; align-items: center; }
.ad-dlg .ad-rm-head .ad-tick input { margin-top: 0; }
.ad-rm-head .nm { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ad-rm-head .nm .ic { flex: none; width: 15px; height: 15px; color: var(--muted); }
.ad-rm-head .n { font-size: 12px; color: var(--muted); }
.ad-rm-head .n.on { color: var(--brand); }
.ad-rm-head .ad-lnk { font-size: 12px; color: var(--muted); }
.ad-rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 10px; }
.ad-rm-ph { appearance: none; position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--bg);
  overflow: hidden; cursor: pointer; }
.ad-rm-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-rm-ph .x { display: grid; place-items: center; width: 100%; height: 100%; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.ad-rm-ph .ck { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line2); border-radius: 50%;
  background: rgba(253, 252, 250, .9); color: transparent; }
.ad-rm-ph .ck .ic { width: 10px; height: 10px; stroke-width: 2; }
.ad-rm-ph[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.ad-rm-ph[aria-pressed="true"] img { opacity: .55; }
.ad-rm-ph[aria-pressed="true"] .ck { border-color: var(--brand); background: var(--brand); color: #fdfcfa; }
.ad-rm-ph:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.ad-rm-foot { flex-wrap: wrap; align-items: center; }
.ad-rm-foot .ad-fnote { flex: 1 1 200px; min-width: 0; margin-right: auto; }
.ad-rm-foot .ad-fnote.warn { color: var(--amber); }
