:root {
  --bg: #f4f2ed; --surface: #fffefb; --line: #e4dfd5; --ink: #1f2328; --muted: #686d75;
  --accent: #b4541a; --accent-ink: #fff; --accent-soft: #f7e8dc; --hover: #eeeae2; --sel: #f7e8dc;
  --danger: #a8322a; --ok: #23694a; --warn: #8a6a12;
  --shadow: 0 1px 2px rgb(40 30 20 / .05), 0 4px 14px rgb(40 30 20 / .05);
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161719; --surface: #1e2023; --line: #32353a; --ink: #e9e7e2; --muted: #9b9ea5;
    --accent: #e08a4f; --accent-ink: #1b1108; --accent-soft: #37281c; --hover: #282b2f; --sel: #37281c;
    --danger: #e5766d; --ok: #8fd6b0; --warn: #ecd27c;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 14px rgb(0 0 0 / .25); }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.icon { flex: none; vertical-align: middle; }
code { font: 12.5px ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
kbd { font: 11px ui-monospace, Menlo, Consolas, monospace; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); }

/* üst çubuk */
.top { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; width: 208px; flex: none; padding: 4px 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; font-size: 18px; letter-spacing: .2px; }
button.brand:hover { background: var(--hover); }
.brand-mark { width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(var(--accent) 0 28%, transparent 28% 36%, var(--accent) 36% 64%, transparent 64% 72%, var(--accent) 72%); }
.search { flex: 1; min-width: 0; max-width: 720px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: transparent; color: var(--ink); outline: none; }
.top .btn.primary { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--danger); border-color: transparent; background: transparent; margin-top: 22px; padding-left: 0; }
.btn.danger:hover { text-decoration: underline; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.bell-count { position: absolute; top: 2px; right: 1px; min-width: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.menu { position: absolute; top: calc(100% - 4px); right: 14px; z-index: 15; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.menu button:hover { background: var(--hover); }
.menu-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }

/* yerleşim */
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
body.has-detail .layout { grid-template-columns: 236px minmax(0, 1fr) minmax(330px, 410px); }
.sidebar, .main, .detail { overflow-y: auto; }
.sidebar { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); }
.nav-item { display: flex; align-items: center; border-radius: 9px; color: var(--muted); }
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent; text-align: left; border-radius: 9px; color: inherit; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.nav-item.active .nav-label { color: inherit; }
.nav-del { display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); padding: 6px; margin-right: 4px; border-radius: 6px; opacity: 0; }
.nav-item:hover .nav-del, .nav-del:focus-visible { opacity: 1; }
.nav-head, .group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.nav-head { padding: 18px 10px 6px; }
.nav-add { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: transparent; color: var(--accent); text-align: left; border-radius: 9px; }
.nav-add:hover { background: var(--hover); }
.nav-spacer { flex: 1; min-height: 16px; }
.count { color: var(--muted); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-item.active .count { color: inherit; }

/* ana alan */
.main { padding: 22px 26px 48px; }
.page-title { margin: 0 0 16px; font-size: 24px; font-weight: 700; letter-spacing: -.2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.stat:hover { border-color: var(--accent); }
.stat-value { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 4px; font-weight: 600; }
.stat-hint { color: var(--muted); font-size: 12.5px; }
.dropzone { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; margin-bottom: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: transparent; text-align: left; color: var(--accent); }
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone strong { color: var(--ink); }
.dropzone .muted { font-size: 13px; margin-top: 2px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.card p { margin: 6px 0; }
.rows { list-style: none; margin: 0 -8px; padding: 0; }
.rows button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.rows button:hover { background: var(--hover); }
.row-main { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.row-title { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due { flex: none; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--hover); color: var(--muted); }
.due.soon { background: #fbf3d9; color: #8a6a12; }
.due.late { background: #fbe4e1; color: #a8322a; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.crumbs button { border: 0; background: transparent; padding: 2px 6px; margin-left: -6px; border-radius: 7px; font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.crumbs .sep + button { margin-left: 0; }
.crumbs button:hover { background: var(--hover); }
.crumbs .sep { color: var(--muted); font-size: 20px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.toolbar select, .bulk select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
.toolbar-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 12px; margin-bottom: 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.bulk strong { margin-right: 4px; }
.note { margin-bottom: 12px; padding: 9px 13px; border-radius: 9px; background: var(--hover); color: var(--muted); font-size: 13px; }
.note.warn { background: #fbf3d9; color: #6f5510; }
.group-label { margin: 4px 0 8px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 20px; }
.folder { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: left; color: var(--accent); }
.folder:hover { border-color: var(--accent); }
.folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }

table.docs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.docs th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.docs td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.docs td:nth-child(2), .docs th:nth-child(2) { white-space: normal; width: 100%; padding-left: 4px; }
.docs tr:last-child td { border-bottom: 0; }
.docs tbody tr { cursor: pointer; }
.docs tbody tr:hover { background: var(--hover); }
.docs tbody tr.selected { background: var(--sel); }
.check-col { width: 34px; padding-right: 0 !important; }
.check-col input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.doc-line { display: flex; align-items: center; gap: 8px; }
.doc-title { font-weight: 600; }
.doc-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
td .doc-line + .doc-sub { margin-left: 46px; }
.chip { flex: none; min-width: 38px; padding: 1px 5px; border-radius: 5px; font: 700 10.5px/1.6 ui-monospace, Menlo, Consolas, monospace; text-align: center; letter-spacing: .3px; }
.k-pdf { background: #fbe4e1; color: #a8322a; }
.k-img { background: #e3f4ea; color: #23694a; }
.k-office { background: #e7effb; color: #2c5aa0; }
.k-text { background: var(--hover); color: var(--muted); }
.dup { flex: none; padding: 0 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #fbf3d9; color: #8a6a12; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.s-taslak { color: #8a6a12; background: #fbf3d9; }
.s-inceleme { color: #2c5aa0; background: #e7effb; }
.s-onayli { color: #23694a; background: #e3f4ea; }
.s-arsiv { color: #5c6068; background: #eceded; }
@media (prefers-color-scheme: dark) {
  .s-taslak, .due.soon, .dup, .note.warn { color: #ecd27c; background: #322a10; }
  .s-inceleme, .k-office { color: #9fc0f2; background: #172338; }
  .s-onayli, .k-img { color: #8fd6b0; background: #142a20; }
  .s-arsiv { color: #b4b7bd; background: #2a2c30; }
  .k-pdf, .due.late { color: #f0a59e; background: #3a1b18; }
}

/* ayrıntı paneli */
.detail { display: none; padding: 16px 18px 36px; border-left: 1px solid var(--line); background: var(--surface); }
body.has-detail .detail { display: block; }
.detail-head { display: flex; align-items: center; gap: 6px; }
.title-input { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.title-input:hover, .title-input:focus { border-color: var(--line); background: var(--bg); }
.state-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.fields { display: grid; gap: 11px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.field input:not([type=checkbox]):not([type=color]), .field select, dialog input[type=text], dialog input[type=password], dialog select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field.row { display: flex; gap: 10px; }
.field.row > * { flex: 1; min-width: 0; }
.field label input, .field label select { margin-top: 3px; font-weight: 400; color: var(--ink); }
.detail h3, .detail summary { margin: 22px 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.detail details { border-top: 1px solid var(--line); margin-top: 18px; }
.detail summary { margin: 12px 0 8px; }
.detail summary:hover { color: var(--ink); }
.preview { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
iframe.preview { height: 440px; }
img.preview { height: auto; display: block; }
.preview.text { margin: 0; padding: 11px 13px; max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; }
.preview.none { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.versions, .history, .users, .notifs, .comments { list-style: none; margin: 0 0 10px; padding: 0; }
.versions, .history { font-size: 13px; }
.versions li, .history li { padding: 4px 0; overflow-wrap: anywhere; }
.versions a { color: var(--accent); font-weight: 600; text-decoration: none; }
.versions a:hover { text-decoration: underline; }
.comments li { padding: 8px 11px; margin-bottom: 6px; border-radius: 10px; background: var(--bg); font-size: 13.5px; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 6px; }
.comment-form input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }

/* pencereler */
dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgb(0 0 0 / .25); }
dialog::backdrop { background: rgb(0 0 0 / .4); }
dialog h2 { margin: 0 0 12px; font-size: 18px; }
dialog p { margin: 0 0 12px; }
dialog .group-label { margin: 18px 0 8px; }
dialog .field { margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.check { display: flex; align-items: center; gap: 6px; }
.new-prop { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-bottom: 8px; }
.new-prop > :nth-child(n+3) { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
input[type=color] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.url { display: inline-block; padding: 5px 9px; margin: 0 0 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); user-select: all; }
.users li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.users li .btn { margin-left: 4px; }
.new-user { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.new-user input, .new-user select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); min-width: 0; }
.notifs { max-height: 50vh; overflow-y: auto; }
.notifs button { display: block; width: 100%; text-align: left; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 8px; }
.notifs button:hover { background: var(--hover); }
.notifs .unread { font-weight: 600; border-left: 3px solid var(--accent); }

.login { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--bg); }
.login form { width: min(350px, calc(100vw - 32px)); display: grid; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.login .brand { width: auto; margin: 0; padding: 0; font-size: 22px; }
.login p { margin: 0; }
.login-error { color: var(--danger); font-size: 13px; min-height: 1em; margin: 0; }

.drop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgb(0 0 0 / .45); pointer-events: none; }
.drop div { padding: 30px 44px; border: 2px dashed var(--accent); border-radius: 16px; background: var(--surface); font-size: 17px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 9px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13.5px; box-shadow: 0 6px 20px rgb(0 0 0 / .25); max-width: calc(100vw - 32px); }
.toast.error { background: var(--danger); color: #fff; }

@media (max-width: 900px) {
  .brand { width: auto; }
  .search kbd { display: none; }
  .layout, body.has-detail .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  body.has-detail .main { display: none; }
  .detail { border-left: 0; }
  .main { padding: 16px; }
}
.docs.plain td:first-child, .docs.plain th:first-child { white-space: normal; width: 100%; padding-left: 12px; }
.docs.plain td:nth-child(2), .docs.plain th:nth-child(2) { white-space: nowrap; width: auto; padding-left: 12px; }

/* etiketler, projeler, değişiklik özeti */
.tag { --tag: #7a7f87; display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 1px 9px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--tag) 45%, transparent); background: color-mix(in srgb, var(--tag) 16%, transparent); color: color-mix(in srgb, var(--tag) 75%, var(--ink)); font-size: 12px; font-weight: 600; line-height: 1.6; }
button.tag { cursor: pointer; }
button.tag.on { background: var(--tag); color: #fff; }
.tag button { border: 0; background: transparent; color: inherit; padding: 0 0 0 2px; font-size: 14px; line-height: 1; cursor: pointer; }
.nav-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px 6px; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.tag-add { padding: 2px 6px; border: 1px dashed var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-size: 12px; }
.dot.big { width: 11px; height: 11px; margin: 0 3px; border-radius: 3px; flex: none; }
.k-cad { background: #efe6fb; color: #6b3fa0; }
.swatches { display: flex; gap: 8px; margin: 6px 0 14px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg) inset; }
.note.change { color: var(--ink); }
.note.change strong { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.diff { margin-top: 4px; font-size: 12.5px; overflow-wrap: anywhere; }
.diff del { color: #a8322a; background: #fbe4e1; text-decoration: line-through; border-radius: 3px; padding: 0 3px; }
.diff ins { color: #23694a; background: #e3f4ea; text-decoration: none; border-radius: 3px; padding: 0 3px; }
.small-note { font-size: 12px; margin: -8px 0 12px; }
.prop-filters { font-size: 12.5px; color: var(--muted); }
.pf { display: inline-flex; align-items: center; gap: 6px; }
.pf input { width: 132px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12.5px; }
.pf input[type=number] { width: 92px; }
.user-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.user-actions select { width: auto; padding: 4px 6px; font-size: 12.5px; }
.approver-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.approver-row .checks { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; font-size: 13px; }
dialog textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: inherit; font: inherit; resize: vertical; margin-top: 3px; }
@media (prefers-color-scheme: dark) {
  .k-cad { color: #c9a8f0; background: #2a1c3d; }
  .diff del { color: #f0a59e; background: #3a1b18; }
  .diff ins { color: #8fd6b0; background: #142a20; }
}
.approver-row.sub { padding-left: 22px; }

/* kilit, sekmeler, daraltılabilir bölümler */
button.nav-head { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; text-align: left; border-radius: 6px; }
button.nav-head:hover { color: var(--ink); }
button.nav-head svg { transition: transform .15s; }
button.nav-head.closed svg { transform: rotate(-90deg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.main-actions { margin: 14px 0 12px; }
.main-actions .btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.lock-chip { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #fbf3d9; color: #8a6a12; }
.lock-note { display: flex; align-items: center; gap: 8px; }
.lock-note span { flex: 1; }
.tabs { display: flex; gap: 2px; margin: 4px -4px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 8px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel > .btn.danger { margin-top: 18px; }
@media (prefers-color-scheme: dark) { .lock-chip { color: #ecd27c; background: #322a10; } }

.login-link { border: 0; background: transparent; color: var(--accent); font-size: 13px; padding: 2px; justify-self: center; }
.login-link:hover { text-decoration: underline; }
.login-ok { color: #23694a; font-size: 13px; }
.users .dup { margin-left: 8px; }
@media (prefers-color-scheme: dark) { .login-ok { color: #8fd6b0; } }
