/* ------------------------------------------------------------------
   Germany Super App · Trust Layer Prototype
   Deliberately grayscale, low/mid fidelity. No decoration.
   ------------------------------------------------------------------ */
:root {
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #767676;
  --line: #d9d9d9;
  --line-2: #e8e8e8;
  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --bg-3: #ebebeb;
  --bg-dark: #2b2b2b;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: var(--font); color: var(--ink); background: #e3e3e3; }
button { font-family: inherit; }
a { color: inherit; }

/* ---------------- Workbench layout ---------------- */
.workbench { display: grid; grid-template-columns: 300px 1fr 400px; height: 100vh; }
.panel { background: #fafafa; border-right: 1px solid var(--line); overflow-y: auto; font-size: 13px; }
.panel-right { border-right: 0; border-left: 1px solid var(--line); }
.panel h2 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 18px 16px 8px; }
.panel h1 { font-size: 14px; margin: 16px 16px 4px; }
.panel .sub { color: var(--ink-3); margin: 0 16px 8px; font-size: 12px; }
.panel .row { padding: 8px 16px; border-top: 1px solid var(--line-2); }
.panel .row:last-child { border-bottom: 1px solid var(--line-2); }
.panel .kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; padding: 6px 16px; font-size: 12px; }
.panel .kv dt { color: var(--ink-3); }
.panel .kv dd { margin: 0; }
.panel .btn-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; }
.panel .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.panel .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel .flow { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 0 16px 6px; width: calc(100% - 32px); cursor: pointer; font-size: 12px; }
.panel .flow:hover { border-color: var(--ink); }
.panel .flow small { display: block; color: var(--ink-3); margin-top: 2px; }
.panel .toggle { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; font-size: 12px; border-top: 1px solid var(--line-2); }
.panel .toggle input { margin: 0; }
.panel .trace { margin: 0 16px 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.panel .trace li { margin: 4px 0 4px 14px; }
.panel .trace .res { font-weight: 600; }
.panel .meta { margin: 0 16px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.panel .meta .m { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--line-2); font-size: 12px; }
.panel .meta .m:first-child { border-top: 0; }
.panel .meta .m b { color: var(--ink-3); font-weight: 500; }
.panel .owner-tag { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; border: 1px solid var(--ink); }
.panel .owner-N { background: #fff; }
.panel .owner-M { background: var(--bg-3); }
.panel .owner-X { background: var(--ink); color: #fff; }
.panel .note { margin: 0 16px 12px; padding: 10px; background: #fff; border-left: 3px solid var(--ink); font-size: 12px; }
.panel .legend { font-size: 11px; color: var(--ink-3); padding: 0 16px 12px; }
.panel .legend span { display: inline-block; margin-right: 8px; }
.panel code { font-family: var(--mono); font-size: 11px; background: var(--bg-2); padding: 1px 4px; border-radius: 3px; }
.panel details { margin: 0 16px 8px; font-size: 12px; }
.panel details summary { cursor: pointer; color: var(--ink-2); }
.panel .state-list { margin: 0 16px 10px; font-size: 12px; }
.panel .state-list div { padding: 4px 0; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 8px; }
.panel .state-list div span:last-child { text-align: right; color: var(--ink-2); }
.panel .api { margin: 0 16px 10px; padding: 8px 10px; background: #fff; border: 1px dashed var(--line); border-radius: 8px; font-family: var(--mono); font-size: 11px; white-space: pre-wrap; word-break: break-word; }

.stage { display: flex; align-items: center; justify-content: center; overflow: auto; padding: 20px; }
.phone-wrap { flex: 0 0 auto; }

/* ---------------- Phone frame ---------------- */
.phone { position: relative; width: 375px; height: 812px; background: #fff; border: 1px solid #999; box-shadow: 0 0 0 8px #1f1f1f, 0 20px 50px rgba(0,0,0,.35); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.statusbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 14px; font-weight: 600; flex: 0 0 auto; }
.statusbar .sb-right { font-size: 11px; letter-spacing: .05em; }
.statusbar.dark { background: var(--bg-dark); color: #fff; }
.statusbar.gray { background: var(--bg-2); }
.screen { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; position: relative; display: flex; flex-direction: column; }
.screen::-webkit-scrollbar { width: 0; }
.tabbar { flex: 0 0 auto; height: 72px; border-top: 1px solid var(--line-2); display: flex; background: #fff; }
.tabbar button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; color: var(--ink-3); cursor: pointer; padding-bottom: 8px; }
.tabbar button.active { color: var(--ink); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; }

/* default inline icon size inside the phone; specific components override */
.phone svg { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.card .c-t svg, .rcard .t svg { width: 16px; height: 16px; }
.panel svg { width: 14px; height: 14px; }

/* ---------------- Generic screen building blocks ---------------- */
.hdr { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 48px; padding: 0 8px; flex: 0 0 auto; }
.hdr .ttl { text-align: center; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .icon-btn { width: 40px; height: 40px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 20px; color: var(--ink); }
.hdr .icon-btn:hover { background: var(--bg-2); }
.hdr.large { grid-template-columns: 44px 1fr 44px; }
.hdr-large { padding: 4px 20px 12px; }
.hdr-large h1 { font-size: 24px; margin: 0; font-weight: 600; }
.hdr-large p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.hdr.gray, .bg-gray { background: var(--bg-2); }

.body { padding: 0 20px 20px; flex: 1 1 auto; }
.body.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.body.pad-top { padding-top: 16px; }
.sect { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sect.first { margin-top: 8px; }
.sect-sub { margin: -4px 0 8px; font-size: 12px; color: var(--ink-3); }
.list { border-top: 1px solid var(--line-2); }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-size: 14px; color: var(--ink); }
.li.static { cursor: default; }
.li .li-ic { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #fff; font-size: 12px; font-weight: 700; }
.li .li-ic.round { border-radius: 50%; background: var(--bg-2); }
.li .li-ic svg { width: 18px; height: 18px; }
.li .li-tx { flex: 1 1 auto; min-width: 0; }
.li .li-t { font-weight: 500; display: block; }
.li .li-s { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .li-s.wrap { white-space: normal; }
.li .li-r { font-size: 12px; color: var(--ink-3); flex: 0 0 auto; text-align: right; }
.li .chev { color: var(--ink-3); flex: 0 0 auto; }
.li .chev svg { width: 16px; height: 16px; }

.kv-list { border-top: 1px solid var(--line-2); }
.kv-list .kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.kv-list .kv .k { color: var(--ink-3); flex: 0 0 auto; }
.kv-list .kv .v { text-align: right; }
.kv-list .kv .v small { display: block; color: var(--ink-3); font-size: 11px; }
.kv-list.tight .kv { padding: 7px 0; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; background: #fff; }
.card.muted { background: var(--bg-2); border-color: var(--bg-2); }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card .c-t { font-weight: 600; font-size: 14px; }
.card .c-s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.card.dark .c-s { color: #bdbdbd; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { border-color: var(--ink); }

.btn { display: block; width: 100%; padding: 14px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; }
.btn.secondary { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); font-weight: 500; }
.btn.small { padding: 9px 14px; font-size: 13px; width: auto; display: inline-block; }
.btn.danger { border-color: var(--ink-3); color: var(--ink); background: #fff; }
.btn:disabled { opacity: .35; cursor: default; }
.btn + .btn { margin-top: 8px; }
.actions { padding: 12px 20px 22px; flex: 0 0 auto; background: #fff; border-top: 1px solid transparent; }
.actions.sticky { position: sticky; bottom: 0; }
.actions .fine { font-size: 11px; color: var(--ink-3); text-align: center; margin: 10px 4px 0; line-height: 1.4; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: inherit; }
.text-btn { background: none; border: 0; padding: 8px 0; color: var(--ink); font-weight: 600; cursor: pointer; font-size: 14px; }

.p { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 8px 0; }
.p.strong { color: var(--ink); }
.p.small { font-size: 12px; }
.h2 { font-size: 20px; font-weight: 600; margin: 12px 0 4px; line-height: 1.25; }
.h3 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; }
.muted { color: var(--ink-3); }
.tiny { font-size: 11px; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.center { text-align: center; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; vertical-align: middle; }
.badge.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge.gray { background: var(--bg-3); border-color: var(--bg-3); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tag { font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); }
.tag.done { background: var(--ink); color: #fff; border-color: var(--ink); }
.hr { border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; }
.note-box { border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 10px 12px; font-size: 13px; line-height: 1.4; margin: 12px 0; background: #fff; border-radius: 0 8px 8px 0; }
.note-box.soft { border-left-color: var(--line); background: var(--bg-2); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 6px 0; }
.check-row .ck { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 11px; margin-top: 1px; }
.check-row .ck.on { background: var(--ink); color: #fff; }
.steps { counter-reset: s; margin: 10px 0; }
.steps .st { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.steps .st .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 auto; }
.steps .st.done .n { background: var(--ink); color: #fff; }
.steps .st .t { font-weight: 500; }
.steps .st .s { color: var(--ink-3); font-size: 12px; margin-top: 1px; }

/* avatar & app icon pair (Permission Request pattern) */
.pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 12px; }
.pair .av { width: 64px; height: 64px; border-radius: 14px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; border: 1px solid var(--line); }
.pair .av.person { border-radius: 14px; background: #ddd; }
.pair .lnk { color: var(--ink-3); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #ddd; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.avatar.sq { border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }

/* result screens (Pay pattern) */
.result-ic { width: 108px; height: 108px; border-radius: 50%; border: 8px solid var(--bg-3); display: flex; align-items: center; justify-content: center; margin: 40px auto 20px; }
.result-ic svg { width: 48px; height: 48px; }
.result-ic.fail { border-color: var(--bg-3); }
.spinner { width: 40px; height: 40px; border: 3px solid var(--bg-3); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* home grid */
.search { margin: 6px 20px 12px; height: 40px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 8px; color: var(--ink-3); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 8px 14px 14px; }
.grid button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; color: var(--ink); }
.grid .gi { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.grid .gi svg { width: 24px; height: 24px; }
.banner { margin: 4px 20px 12px; height: 132px; border-radius: 14px; background: repeating-linear-gradient(135deg, #e6e6e6 0 10px, #ececec 10px 20px); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 14px; font-weight: 600; color: var(--ink-2); }
.chips { display: flex; gap: 6px; padding: 4px 20px 10px; overflow-x: auto; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; white-space: nowrap; background: #fff; }
.chips span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.feed-card { margin: 0 20px 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.feed-card .img { height: 90px; background: repeating-linear-gradient(45deg, #ececec 0 8px, #f3f3f3 8px 16px); }
.feed-card .fc-b { padding: 10px 12px; font-size: 13px; }
.feed-card .fc-b small { color: var(--ink-3); display: block; margin-top: 2px; }

/* chat */
.chat-filter { display: flex; gap: 8px; padding: 6px 20px 8px; }
.chat-filter span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.chat-filter span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.thread { flex: 1 1 auto; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.thread .day { align-self: center; font-size: 11px; color: var(--ink-3); background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; margin: 6px 0; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; background: #fff; border: 1px solid var(--line-2); align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.msg .tm { display: block; font-size: 10px; color: var(--ink-3); margin-top: 4px; text-align: right; }
.msg.me .tm { color: #bdbdbd; }
.msg.sys { align-self: center; background: transparent; border: 0; color: var(--ink-3); font-size: 11px; text-align: center; max-width: 90%; }
.rcard { align-self: flex-start; width: 86%; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.rcard .rc-h { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.rcard .rc-h .ic { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.rcard .rc-h .ic svg { width: 16px; height: 16px; }
.rcard .rc-h .t { font-weight: 600; }
.rcard .rc-h .s { font-size: 11px; color: var(--ink-3); }
.rcard .rc-b { padding: 8px 12px; }
.rcard .rc-b .f { margin: 5px 0; }
.rcard .rc-b .f .k { font-size: 11px; color: var(--ink-3); }
.rcard .rc-b .f .v { font-weight: 500; }
.rcard .rc-a { padding: 8px 12px 12px; }
.rcard .rc-st { text-align: center; padding: 8px; font-size: 12px; background: var(--bg-2); color: var(--ink-2); border-top: 1px solid var(--line-2); }
.rcard .rc-st.done { background: var(--ink); color: #fff; }
.composer { display: flex; gap: 8px; align-items: center; padding: 8px 14px 14px; border-top: 1px solid var(--line-2); background: #fff; flex: 0 0 auto; }
.composer .inp { flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 19px; padding: 0 14px; display: flex; align-items: center; color: var(--ink-3); font-size: 13px; }
.composer .icon-btn { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; }
.sender-verified { font-size: 11px; color: var(--ink-3); }

/* pay */
.balance { margin: 8px 20px; padding: 16px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: flex-end; min-height: 120px; }
.balance .amt { font-size: 28px; font-weight: 600; }
.balance .bal-btns { display: flex; flex-direction: column; gap: 6px; }
.balance .bal-btns span { border: 1px solid #777; border-radius: 999px; padding: 5px 10px; font-size: 12px; text-align: center; }
.tx { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.tx .ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.tx .tx-t { flex: 1; }
.tx .tx-t small { display: block; color: var(--ink-3); font-size: 11px; }
.tx .tx-a { font-weight: 600; }

/* mini app container */
.ma-ctrl { position: absolute; top: 6px; right: 12px; z-index: 5; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; height: 32px; padding: 0 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ma-ctrl button { width: 34px; height: 28px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ma-ctrl .sep { width: 1px; height: 16px; background: var(--line); }
.ma-ctrl svg { width: 16px; height: 16px; }
.ma { flex: 1 1 auto; display: flex; flex-direction: column; background: #fff; }
.ma-hdr { padding: 12px 20px 8px; padding-right: 100px; font-size: 12px; color: var(--ink-3); flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.ma-hdr .ma-logo { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--ink); }
.ma-hdr b { color: var(--ink); font-size: 13px; }
.ma-frame { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; }
.ma-owner { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; color: var(--ink-3); text-align: center; padding: 3px; border-top: 1px dashed var(--line); background: #fff; }
.ma-back { border: 0; background: transparent; cursor: pointer; padding: 0; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0; }
.ma-back svg { width: 14px; height: 14px; }

/* external / provider component frames */
.ext-bar { background: var(--bg-dark); color: #fff; padding: 10px 16px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.ext-bar b { font-size: 13px; }
.ext-bar .x { background: transparent; border: 1px solid #777; color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 11px; cursor: pointer; }
.ext-body { flex: 1 1 auto; padding: 16px 20px; background: #fff; }
.ext-body .ext-title { font-size: 18px; font-weight: 600; margin: 4px 0 6px; }
.ext-foot { font-size: 10px; color: var(--ink-3); text-align: center; padding: 8px; border-top: 1px dashed var(--line); background: var(--bg-2); }
.pin { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.pin span { width: 34px; height: 44px; border: 1px solid var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.numpad button { height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 18px; cursor: pointer; }
.nfc { width: 140px; height: 140px; margin: 20px auto; border: 1px dashed var(--ink-3); border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.nfc svg { width: 64px; height: 64px; }
.doc { border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px; padding: 12px; margin: 10px 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); max-height: 190px; overflow-y: auto; }
.doc h4 { margin: 0 0 6px; font-size: 13px; color: var(--ink); }
.doc .pg { background: #fff; border: 1px solid var(--line-2); padding: 10px; margin-bottom: 8px; }
.doc .pg .l { height: 6px; background: var(--bg-3); margin: 5px 0; border-radius: 3px; }
.doc .pg .l.s { width: 60%; }
.sig-box { border: 1px dashed var(--ink-3); height: 90px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: "Brush Script MT", "Snell Roundhand", cursive; font-size: 30px; color: var(--ink-2); margin: 8px 0; background: #fff; }
.sig-box.empty { font-family: var(--font); font-size: 13px; color: var(--ink-3); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; cursor: pointer; background: #fff; width: 100%; text-align: left; font-size: 13px; }
.opt:hover { border-color: var(--ink); }
.opt.rec { border-color: var(--ink); }
.opt .o-t { font-weight: 600; }
.opt .o-s { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.opt .o-ic { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 11px; font-weight: 700; }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); flex: 0 0 auto; margin-top: 2px; }
.opt.rec .radio { background: radial-gradient(circle, var(--ink) 45%, #fff 50%); }

/* overlays inside phone */
.ovl { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.ovl.center { align-items: center; }
.sheet { background: #fff; width: 100%; border-radius: 18px 18px 0 0; padding: 12px 20px 26px; }
.sheet .grab { width: 40px; height: 4px; background: var(--line); border-radius: 2px; margin: 0 auto 12px; }
.sheet h3 { margin: 4px 0 6px; font-size: 16px; text-align: center; }
.dialog { background: #fff; width: 280px; border-radius: 14px; padding: 18px 16px 12px; text-align: center; }
.dialog h4 { margin: 0 0 6px; font-size: 15px; }
.dialog p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.dialog .d-btns { display: flex; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.dialog .d-btns button { flex: 1; background: transparent; border: 0; padding: 8px; font-size: 14px; cursor: pointer; }
.dialog .d-btns button.pri { font-weight: 600; }
.faceid { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); width: 96px; height: 96px; background: var(--ink); border-radius: 24px; display: flex; align-items: center; justify-content: center; z-index: 30; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.faceid svg { width: 54px; height: 54px; color: #fff; }
.faceid-label { position: absolute; top: 162px; left: 0; right: 0; text-align: center; font-size: 12px; color: #fff; z-index: 30; }
.toast { position: absolute; left: 20px; right: 20px; bottom: 90px; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 12px; z-index: 25; }
.push { position: absolute; top: 8px; left: 10px; right: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; z-index: 40; box-shadow: 0 6px 20px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: center; cursor: pointer; }
.push .p-ic { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.push .p-t { font-size: 12px; font-weight: 600; }
.push .p-s { font-size: 12px; color: var(--ink-2); }
.push .p-time { font-size: 10px; color: var(--ink-3); margin-left: auto; align-self: flex-start; }
.mini-menu { background: #fff; width: 100%; border-radius: 18px 18px 0 0; padding: 12px 20px 26px; }
.mini-menu .mm-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mini-menu .mm-btns { display: flex; gap: 8px; margin-bottom: 12px; }
.mini-menu .mm-btns span { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; font-size: 12px; }
.mini-menu .perm { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.mini-menu .perm small { display: block; color: var(--ink-3); font-size: 11px; }
.switch { width: 40px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.switch.on { background: var(--ink); }
.switch.on::after { left: 20px; }

.blocked-ic { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; margin: 30px auto 14px; }
.blocked-ic svg { width: 32px; height: 32px; }

.dim { opacity: .5; }
.ma-owner-strip { font-size: 10px; text-align: center; color: var(--ink-3); padding: 2px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); letter-spacing: .04em; text-transform: uppercase; flex: 0 0 auto; }

@media (max-width: 1180px) { .workbench { grid-template-columns: 260px 1fr 340px; } }
