/* ===================================================================== Alune · Moonlight Dialogs Dialog component layer (design-draft reference implementation). - Base colours come from apps/web/src/theme.css (Moonlight light/dark) and stay unchanged. - New tokens for this system use the --dlg- / --moon- / --btn- / --field- prefixes. - Animations touch only transform and opacity; backdrop-filter appears only on fixed layers. ===================================================================== */ :root { color-scheme: light; /* ---- theme.css · Moonlight (light, verbatim) ---- */ --content: #f5f7fb; --surface: #ffffff; --surface-muted: #f5f7fb; --surface-hover: #eaf0fc; --code: #fbfcfe; --text: #1b2943; --text-muted: #526076; --line: #d8e0ee; --line-strong: #77859c; --blue: #415ab0; --primary-hover: #354b98; --primary-on: #ffffff; --blue-soft: #eaf0fc; --green: #0f6d56; --green-soft: #e9f7ef; --green-line: #a5cdbb; --orange: #995413; --orange-soft: #fff3e3; --orange-line: #dbc29f; --red: #ad3b49; --red-soft: #fcecef; --red-line: #e1b7bf; --purple: #7046a0; --purple-soft: #f1ebfa; --purple-line: #cdb9e5; --sidebar-bg: #e9eff9; --sidebar-active: #dce5f7; --diff-add: #e9f7ef; --diff-remove: #fcecef; --diff-meta: #eaf0fc; --overlay: rgb(10 14 22 / 48%); --focus-soft: rgb(65 90 176 / 18%); --graph-6: #146c89; /* ---- Moonlight identity colours ---- */ --moon-indigo: #6e86e8; --moon-cyan: #8fe3ee; --cyan: #146c89; --cyan-soft: #e6f4f7; --cyan-line: #a6d2dc; /* ---- Dialog layer (new) ---- */ --hair: rgb(35 52 102 / 10%); --hair-strong: rgb(35 52 102 / 17%); --dlg-scrim: rgb(22 32 62 / 28%); --dlg-halo-a: rgb(110 134 232 / 24%); --dlg-halo-b: rgb(143 227 238 / 16%); --dlg-shell-bg: rgb(255 255 255 / 58%); --dlg-shell-ring: rgb(35 52 102 / 9%); --dlg-shell-hi: rgb(255 255 255 / 95%); --dlg-core-bg: #ffffff; --dlg-core-ring: rgb(35 52 102 / 8%); --dlg-core-hi: rgb(255 255 255 / 100%); --dlg-foot-bg: #f7f9fd; --dlg-shadow: 0 1px 2px rgb(30 45 95 / 5%), 0 14px 32px -14px rgb(30 45 95 / 20%), 0 52px 100px -36px rgb(45 66 140 / 34%); --pop-shadow: 0 1px 2px rgb(30 45 95 / 6%), 0 14px 34px -12px rgb(30 45 95 / 24%); --tone-rim-default: rgb(110 134 232 / 60%); --field-bg: #fbfcfe; --field-ring: #d3dcec; --field-ring-hover: #aebbd4; --field-inset: rgb(30 45 95 / 4%); --chip-bg: rgb(65 90 176 / 6%); --chip-ring: rgb(65 90 176 / 13%); --kbd-bg: #ffffff; --kbd-ring: rgb(35 52 102 / 17%); --seg-bg: rgb(35 52 102 / 5%); --seg-thumb: #ffffff; --card-shell: rgb(35 52 102 / 3.5%); --card-core: #ffffff; --code-bg: #f8fafd; --hover-veil: rgb(65 90 176 / 7%); --btn-ghost-ring: rgb(35 52 102 / 17%); --btn-primary-bg: linear-gradient(180deg, #4d67c1 0%, #415ab0 100%); --btn-primary-hover: linear-gradient(180deg, #4560b8 0%, #354b98 100%); --btn-primary-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 1px 2px rgb(30 45 110 / 22%), 0 8px 18px -8px rgb(65 90 176 / 55%); --btn-danger-bg: linear-gradient(180deg, #bd4a58 0%, #ad3b49 100%); --btn-danger-hover: linear-gradient(180deg, #b04150 0%, #97303e 100%); --btn-danger-on: #ffffff; --btn-danger-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 1px 2px rgb(110 30 45 / 22%), 0 8px 18px -8px rgb(173 59 73 / 50%); --orb-bg: rgb(255 255 255 / 16%); --orb-ring: rgb(255 255 255 / 24%); --sw-off: rgb(35 52 102 / 16%); /* ---- Geometry: concentric radii (inner radius = outer radius - padding) ---- */ --shell-pad: 6px; --r-shell: 22px; --r-core: 16px; --r-card: 12px; --r-field: 10px; --r-chip: 7px; /* ---- Motion ---- */ --ease-spring: cubic-bezier(0.32, 0.72, 0, 1); --ease-glide: cubic-bezier(0.16, 1, 0.3, 1); --ease-enter: cubic-bezier(0.2, 0, 0, 1); --ease-exit: cubic-bezier(0.4, 0, 1, 1); --ease-orbit: cubic-bezier(0.55, 0.12, 0.45, 0.88); --t-hover: 140ms; --t-press: 90ms; --t-scrim: 240ms; --t-enter: 360ms; --t-exit: 160ms; --t-pop: 200ms; --t-stagger: 40ms; /* ---- Type ---- */ --font-sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', ui-sans-serif, system-ui, sans-serif; --font-mono: 'Geist Mono', 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace; } [data-theme='dark'] { color-scheme: dark; /* ---- theme.css · Moonlight (dark, verbatim) ---- */ --content: #151e30; --surface: #202c43; --surface-muted: #151e30; --surface-hover: #253654; --code: #192438; --text: #e8effc; --text-muted: #b7c8ec; --line: #3b4a65; --line-strong: #7c8fab; --blue: #afc6ff; --primary-hover: #c5d5ff; --primary-on: #151e30; --blue-soft: #253654; --green: #b0e5cc; --green-soft: #153328; --green-line: #47765e; --orange: #ffd096; --orange-soft: #3b2d20; --orange-line: #85633d; --red: #ffb7c0; --red-soft: #431d27; --red-line: #8e5460; --purple: #d4baff; --purple-soft: #342644; --purple-line: #71558e; --sidebar-bg: #101a2d; --sidebar-active: #253654; --diff-add: #153328; --diff-remove: #431d27; --diff-meta: #253654; --overlay: rgb(4 8 16 / 65%); --focus-soft: rgb(175 198 255 / 22%); --graph-6: #8fd8ee; --cyan: #8fe3ee; --cyan-soft: #16313b; --cyan-line: #3d6e7b; --hair: rgb(175 198 255 / 10%); --hair-strong: rgb(175 198 255 / 17%); --dlg-scrim: rgb(4 8 20 / 52%); --dlg-halo-a: rgb(110 134 232 / 22%); --dlg-halo-b: rgb(143 227 238 / 9%); --dlg-shell-bg: rgb(175 198 255 / 6%); --dlg-shell-ring: rgb(175 198 255 / 14%); --dlg-shell-hi: rgb(214 228 255 / 16%); --dlg-core-bg: linear-gradient(180deg, #223049 0%, #1c273d 100%); --dlg-core-ring: rgb(175 198 255 / 10%); --dlg-core-hi: rgb(214 228 255 / 9%); --dlg-foot-bg: rgb(10 16 30 / 34%); --dlg-shadow: 0 1px 2px rgb(2 6 18 / 40%), 0 22px 48px -18px rgb(2 6 18 / 72%), 0 64px 120px -40px rgb(46 66 150 / 42%); --pop-shadow: 0 1px 2px rgb(2 6 18 / 40%), 0 18px 44px -16px rgb(2 6 18 / 72%); --tone-rim-default: rgb(143 227 238 / 50%); --field-bg: rgb(9 15 29 / 42%); --field-ring: rgb(175 198 255 / 17%); --field-ring-hover: rgb(175 198 255 / 30%); --field-inset: rgb(0 0 0 / 14%); --chip-bg: rgb(175 198 255 / 8%); --chip-ring: rgb(175 198 255 / 15%); --kbd-bg: rgb(175 198 255 / 7%); --kbd-ring: rgb(175 198 255 / 19%); --seg-bg: rgb(9 15 29 / 45%); --seg-thumb: #2b3a58; --card-shell: rgb(175 198 255 / 4%); --card-core: rgb(9 15 29 / 32%); --code-bg: rgb(9 15 29 / 48%); --hover-veil: rgb(175 198 255 / 8%); --btn-ghost-ring: rgb(175 198 255 / 21%); --btn-primary-bg: linear-gradient(180deg, #c6d6ff 0%, #a9c1ff 100%); --btn-primary-hover: linear-gradient(180deg, #d6e2ff 0%, #bdd0ff 100%); --btn-primary-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 0 0 1px rgb(175 198 255 / 30%), 0 10px 28px -10px rgb(110 134 232 / 75%); --btn-danger-bg: linear-gradient(180deg, #ffc8cf 0%, #ffb0ba 100%); --btn-danger-hover: linear-gradient(180deg, #ffd6db 0%, #ffc0c8 100%); --btn-danger-on: #3b1019; --btn-danger-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 0 0 1px rgb(255 183 192 / 28%), 0 10px 28px -10px rgb(255 120 140 / 45%); --orb-bg: rgb(21 30 48 / 10%); --orb-ring: rgb(21 30 48 / 16%); --sw-off: rgb(175 198 255 / 18%); } /* --------------------------------------------------------------------- Tones: default (moonlight blue) · info (moon cyan) · success · warning · danger --------------------------------------------------------------------- */ .dlg, .pop, .tone, .note, .fb-item { --tone-fg: var(--blue); --tone-soft: var(--blue-soft); --tone-line: var(--chip-ring); --tone-glow: var(--dlg-halo-a); --tone-rim: var(--tone-rim-default); } [data-tone='info'] { --tone-fg: var(--cyan); --tone-soft: var(--cyan-soft); --tone-line: var(--cyan-line); --tone-glow: rgb(143 227 238 / 22%); --tone-rim: rgb(143 227 238 / 70%); } [data-tone='success'] { --tone-fg: var(--green); --tone-soft: var(--green-soft); --tone-line: var(--green-line); --tone-glow: rgb(15 109 86 / 12%); --tone-rim: rgb(15 109 86 / 45%); } [data-tone='warning'] { --tone-fg: var(--orange); --tone-soft: var(--orange-soft); --tone-line: var(--orange-line); --tone-glow: rgb(214 140 50 / 14%); --tone-rim: rgb(214 140 50 / 55%); } [data-tone='danger'] { --tone-fg: var(--red); --tone-soft: var(--red-soft); --tone-line: var(--red-line); --tone-glow: rgb(173 59 73 / 13%); --tone-rim: rgb(173 59 73 / 50%); } [data-theme='dark'] [data-tone='success'] { --tone-glow: rgb(176 229 204 / 9%); --tone-rim: rgb(176 229 204 / 45%); } [data-theme='dark'] [data-tone='warning'] { --tone-glow: rgb(255 208 150 / 9%); --tone-rim: rgb(255 208 150 / 50%); } [data-theme='dark'] [data-tone='danger'] { --tone-glow: rgb(255 183 192 / 10%); --tone-rim: rgb(255 183 192 / 55%); } [data-theme='dark'] [data-tone='info'] { --tone-glow: rgb(143 227 238 / 11%); } /* --------------------------------------------------------------------- Base --------------------------------------------------------------------- */ .dlg, .pop, .tray { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--text); -webkit-font-smoothing: antialiased; text-align: left; } .dlg *, .pop *, .tray * { box-sizing: border-box; } .dlg :where(p, h3, h4, ul, ol, dl, dd, figure, pre), .pop :where(p, h3, h4, ul, ol, dl, dd, pre) { margin: 0; } .dlg :where(ul, ol), .pop :where(ul, ol) { padding: 0; list-style: none; } .dlg :where(button, input, select, textarea), .pop :where(button, input, select, textarea), .tray :where(button) { font: inherit; color: inherit; } .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; } .mono, .dlg code, .pop code { font-family: var(--font-mono); font-size: 0.94em; letter-spacing: 0; } [hidden] { display: none !important; } /* --------------------------------------------------------------------- Dialog: double-bezel shell + core --------------------------------------------------------------------- */ .dlg { --w: 520px; position: relative; width: min(calc(var(--w) + var(--shell-pad) * 2), 100%); } .dlg[data-size='sm'] { --w: 400px; } .dlg[data-size='lg'] { --w: 680px; } .dlg[data-size='xl'] { --w: 880px; } .dlg-shell { position: relative; padding: var(--shell-pad); border-radius: var(--r-shell); background: var(--dlg-shell-bg); box-shadow: inset 0 0 0 1px var(--dlg-shell-ring), inset 0 1px 0 var(--dlg-shell-hi), var(--dlg-shadow); } .dlg-core { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-core); background: var(--dlg-core-bg); box-shadow: 0 0 0 1px var(--dlg-core-ring), inset 0 1px 0 var(--dlg-core-hi); } /* Moonlight rim: a gradient light along the top edge of the core */ .dlg-core::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 3; height: 1px; background: linear-gradient(90deg, transparent 6%, var(--tone-rim) 50%, transparent 94%); pointer-events: none; } /* Tone halo: a touch of colour spreading out from the glyph */ .dlg-core::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(460px 200px at 40px -60px, var(--tone-glow), transparent 72%); pointer-events: none; } /* ---- Header ---- */ .dlg-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; align-items: start; padding: 20px 14px 16px 20px; } .dlg-head.is-plain { grid-template-columns: minmax(0, 1fr) auto; } .dlg-glyph { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--tone-fg); background: var(--tone-soft); box-shadow: inset 0 0 0 1px var(--tone-line), inset 0 1px 0 var(--dlg-core-hi); } .dlg-glyph .ic { width: 20px; height: 20px; } .dlg-titles { min-width: 0; } .dlg-eyebrow { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 20px; margin: 0 0 7px; padding: 0 8px 0 7px; overflow: hidden; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 20px; letter-spacing: 0.01em; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--chip-ring); } .dlg-eyebrow::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--tone-fg); box-shadow: 0 0 0 3px var(--tone-soft); } .dlg-eyebrow b { font-weight: 500; color: var(--text); } .dlg-eyebrow .lvl { margin-left: 2px; padding-left: 7px; color: var(--tone-fg); box-shadow: inset 1px 0 0 var(--hair-strong); } .dlg-title { font-size: 17px; font-weight: 600; line-height: 1.38; letter-spacing: -0.012em; color: var(--text); text-wrap: balance; } .dlg-title code { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 6px; font-size: 13.5px; font-weight: 500; line-height: 22px; vertical-align: 1px; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--chip-ring); } .dlg-desc { margin-top: 6px; font-size: 13px; line-height: 1.62; color: var(--text-muted); text-wrap: pretty; } /* ---- Circular icon buttons (close / inline actions) ---- */ .dlg-close, .icon-btn { position: relative; isolation: isolate; display: grid; flex: none; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; color: var(--text-muted); background: transparent; cursor: pointer; transition: transform var(--t-press) var(--ease-enter), color var(--t-hover) var(--ease-enter); } .dlg-close { margin: -4px 0 0; } .dlg-close::before, .icon-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--hover-veil); box-shadow: inset 0 0 0 1px var(--hair); opacity: 0; transition: opacity var(--t-hover) var(--ease-enter); } .dlg-close:hover, .icon-btn:hover { color: var(--text); } .dlg-close:hover::before, .icon-btn:hover::before { opacity: 1; } .dlg-close:active, .icon-btn:active { transform: scale(0.92); } .dlg-close .ic { width: 16px; height: 16px; } .dlg-close[disabled] { opacity: 0.35; pointer-events: none; } .icon-btn.is-sm { width: 26px; height: 26px; } .icon-btn .ic { width: 16px; height: 16px; } /* ---- Body ---- */ .dlg-body { display: grid; gap: 16px; padding: 2px 20px 20px; } .dlg-body.is-flush { padding: 0; gap: 0; } .dlg-body.is-tight { gap: 12px; } .dlg-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); } .dlg-sub::after { content: ''; flex: 1; height: 1px; background: var(--hair); } .dlg-sub > span { order: -1; } .dlg-sub > small { order: 2; font-size: 11px; letter-spacing: 0; text-transform: none; } .dlg-text { font-size: 13px; line-height: 1.65; color: var(--text); } .dlg-text.is-muted { color: var(--text-muted); } .dlg-text strong { font-weight: 600; } /* ---- Footer ---- */ .dlg-foot { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 12px 12px 20px; background: var(--dlg-foot-bg); box-shadow: inset 0 1px 0 var(--hair); } .dlg-hints { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; } .dlg-hints i { width: 3px; height: 3px; margin: 0 5px; border-radius: 50%; background: currentColor; opacity: 0.45; } .dlg-hints.is-warn { color: var(--tone-fg); } .dlg-hints .ic { flex: none; width: 14px; height: 14px; } .dlg-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; } kbd, .kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; line-height: 1; color: var(--text-muted); background: var(--kbd-bg); box-shadow: inset 0 0 0 1px var(--kbd-ring), 0 1px 0 var(--kbd-ring); } /* --------------------------------------------------------------------- Buttons: pills + button-in-button orb --------------------------------------------------------------------- */ .btn { position: relative; isolation: isolate; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform var(--t-press) var(--ease-enter), opacity var(--t-hover) var(--ease-enter); } .btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity var(--t-hover) var(--ease-enter); } .btn:hover::before { opacity: 1; } .btn:active { transform: scale(0.98); } .btn > .ic { width: 16px; height: 16px; } .btn-ghost { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--btn-ghost-ring); } .btn-ghost::before { background: var(--hover-veil); } .btn-text { padding: 0 10px; color: var(--text-muted); background: transparent; } .btn-text::before { background: var(--hover-veil); } .btn-text:hover { color: var(--text); } .btn-primary { padding-right: 4px; color: var(--primary-on); background: var(--btn-primary-bg); box-shadow: var(--btn-primary-shadow); } .btn-primary::before { background: var(--btn-primary-hover); } .btn-primary.no-orb, .btn-danger.no-orb { padding-right: 16px; } .btn-danger { padding-right: 4px; color: var(--btn-danger-on); background: var(--btn-danger-bg); box-shadow: var(--btn-danger-shadow); } .btn-danger::before { background: var(--btn-danger-hover); } /* L1 recoverable destructive action: soft danger */ .btn-danger-soft { color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-line); } .btn-danger-soft::before { background: color-mix(in srgb, var(--red) 10%, transparent); } .btn-orb { display: grid; flex: none; place-items: center; width: 28px; height: 28px; margin-left: 2px; border-radius: 999px; background: var(--orb-bg); box-shadow: inset 0 0 0 1px var(--orb-ring); transition: transform 320ms var(--ease-spring); } .btn-orb .ic { width: 15px; height: 15px; stroke-width: 1.6; } .btn:hover .btn-orb { transform: translate(2px, -1px) scale(1.06); } .btn[disabled], .btn[aria-disabled='true'] { opacity: 0.42; cursor: not-allowed; pointer-events: none; } .btn.is-busy { pointer-events: none; } .btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; } .btn-sm.btn-primary, .btn-sm.btn-danger { padding-right: 3px; } .btn-sm .btn-orb { width: 24px; height: 24px; } .btn-sm .btn-orb .ic { width: 13px; height: 13px; } .btn-xs { height: 26px; padding: 0 10px; font-size: 12px; } .btn-block { width: 100%; } /* Moon-phase loader: the lit edge circles once with a custom curve */ .moonload { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -2.5px 0 0 0 currentColor, inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); animation: moon-orbit 900ms var(--ease-orbit) infinite; } .btn-orb .moonload { width: 13px; height: 13px; } @keyframes moon-orbit { to { transform: rotate(360deg); } } /* --------------------------------------------------------------------- Form fields --------------------------------------------------------------------- */ .fld { display: grid; gap: 7px; min-width: 0; } .fld-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; } .fld-row.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fld-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text); } .fld-label small { font-size: 11.5px; font-weight: 400; color: var(--text-muted); } .fld-hint { font-size: 12px; line-height: 1.55; color: var(--text-muted); } .fld-hint.is-error { color: var(--red); } .fld-hint.is-ok { color: var(--green); } .fld-hint .ic { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; } .inp { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 12px; border-radius: var(--r-field); background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--field-ring), inset 0 1px 2px var(--field-inset); } /* Focus = outer bezel ring + inner accent line, faded in via opacity */ .inp::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px var(--focus-soft); opacity: 0; pointer-events: none; transition: opacity var(--t-hover) var(--ease-enter); } .inp::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--field-ring-hover); opacity: 0; pointer-events: none; transition: opacity var(--t-hover) var(--ease-enter); } .inp:hover::after { opacity: 1; } .inp:focus-within::before, .inp.is-focus::before { opacity: 1; } .inp.is-error { box-shadow: inset 0 0 0 1px var(--red-line), inset 0 1px 2px var(--field-inset); } .inp.is-error::before { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 4px color-mix(in srgb, var(--red) 16%, transparent); } .inp > .ic { width: 16px; height: 16px; color: var(--text-muted); } .inp input, .inp select, .inp .inp-value { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font-size: 13px; color: var(--text); appearance: none; } .inp input::placeholder { color: var(--text-muted); opacity: 0.7; } .inp.is-mono input, .inp.is-mono .inp-value { font-family: var(--font-mono); font-size: 12.5px; } .inp .inp-value { display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .inp.is-disabled { opacity: 0.6; } .inp.is-select::after { opacity: 0; } .inp.is-select .caret { width: 14px; height: 14px; color: var(--text-muted); } .inp-btn { position: relative; isolation: isolate; display: inline-flex; flex: none; align-items: center; gap: 6px; height: 28px; margin-right: -7px; padding: 0 10px; border: 0; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--text); background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--chip-ring); cursor: pointer; transition: transform var(--t-press) var(--ease-enter); } .inp-btn:active { transform: scale(0.96); } .inp-btn .ic { width: 14px; height: 14px; } .inp .inp-suffix { font-size: 11.5px; color: var(--text-muted); } .inp-group { display: flex; gap: 8px; } .inp-group > .inp { flex: 1; } /* Segmented control: the thumb slides via transform */ .seg { --n: 2; --i: 0; position: relative; isolation: isolate; display: inline-grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; padding: 3px; border-radius: 11px; background: var(--seg-bg); box-shadow: inset 0 0 0 1px var(--hair); } .seg::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; z-index: -1; width: calc((100% - 6px) / var(--n)); border-radius: 8px; background: var(--seg-thumb); box-shadow: 0 1px 2px rgb(20 30 60 / 10%), inset 0 0 0 1px var(--hair), inset 0 1px 0 var(--dlg-core-hi); transform: translateX(calc(100% * var(--i))); transition: transform 300ms var(--ease-spring); } .seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border: 0; border-radius: 8px; font-size: 12.5px; color: var(--text-muted); background: transparent; cursor: pointer; transition: color var(--t-hover) var(--ease-enter); } .seg button[aria-pressed='true'] { color: var(--text); font-weight: 500; } .seg button .ic { width: 15px; height: 15px; } .seg.is-block { display: grid; width: 100%; } /* Option cards (e.g. auth method) */ .opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .opt { position: relative; isolation: isolate; display: grid; gap: 3px; align-content: start; padding: 11px 12px 12px; border: 0; border-radius: 12px; text-align: left; background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--field-ring); cursor: pointer; transition: transform var(--t-press) var(--ease-enter); } .opt:active { transform: scale(0.985); } .opt::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--focus-soft); opacity: 0; transition: opacity 180ms var(--ease-enter); } .opt[aria-checked='true']::before { opacity: 1; } .opt .ic { width: 18px; height: 18px; margin-bottom: 6px; color: var(--text-muted); transition: color var(--t-hover) var(--ease-enter); } .opt[aria-checked='true'] .ic { color: var(--blue); } .opt strong { font-size: 12.5px; font-weight: 600; } .opt small { font-size: 11.5px; line-height: 1.45; color: var(--text-muted); } .opt .opt-dot { position: absolute; top: 11px; right: 11px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.25px var(--line-strong); } .opt .opt-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); transform: scale(0.2); opacity: 0; transition: transform 260ms var(--ease-spring), opacity 140ms var(--ease-enter); } .opt[aria-checked='true'] .opt-dot { box-shadow: inset 0 0 0 1.25px var(--blue); } .opt[aria-checked='true'] .opt-dot::after { transform: scale(1); opacity: 1; } /* Checkbox card */ .check { position: relative; isolation: isolate; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--field-ring); cursor: pointer; } .check::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--tone-soft, var(--blue-soft)); box-shadow: inset 0 0 0 1px var(--tone-line, var(--blue)); opacity: 0; transition: opacity 180ms var(--ease-enter); } .check:has(input:checked)::before { opacity: 1; } .check input { position: absolute; opacity: 0; pointer-events: none; } .check-box { position: relative; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px; color: var(--primary-on); background: var(--surface); box-shadow: inset 0 0 0 1.25px var(--line-strong); } .check-box::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--tone-fg, var(--blue)); opacity: 0; transform: scale(0.6); transition: transform 240ms var(--ease-spring), opacity 140ms var(--ease-enter); } .check-box .ic { position: relative; width: 13px; height: 13px; stroke-width: 2; opacity: 0; transform: scale(0.4); transition: transform 280ms var(--ease-spring), opacity 140ms var(--ease-enter); } .check input:checked + .check-box::before, .check input:checked + .check-box .ic { opacity: 1; transform: none; } .check input:focus-visible + .check-box { outline: 2px solid var(--blue); outline-offset: 2px; } .check-text { display: grid; gap: 3px; } .check-text strong { font-size: 13px; font-weight: 500; } .check-text small { font-size: 12px; line-height: 1.55; color: var(--text-muted); } .check.is-plain { padding: 0; background: none; box-shadow: none; } .check.is-plain::before { display: none; } .check[data-tone='danger'] .check-box { color: var(--btn-danger-on); } .dlg[data-tone='danger'] .check .check-box, .check[data-tone] .check-box { --tone-fg: inherit; } .check[data-tone='danger'] .check-box::before { background: var(--red); } /* Switch */ .sw { position: relative; isolation: isolate; flex: none; width: 36px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: var(--sw-off); cursor: pointer; } .sw::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--btn-primary-bg); opacity: 0; transition: opacity 180ms var(--ease-enter); } .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(10 20 50 / 25%); transition: transform 300ms var(--ease-spring); } .sw[aria-checked='true']::before { opacity: 1; } .sw[aria-checked='true']::after { transform: translateX(14px); } [data-theme='dark'] .sw::after { background: #f4f7ff; } [data-theme='dark'] .sw[aria-checked='true']::after { background: #151e30; } /* Range slider */ .range { width: 100%; height: 22px; margin: 0; background: transparent; appearance: none; cursor: pointer; } .range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--moon-indigo) 0 var(--fill, 50%), var(--sw-off) var(--fill, 50%) 100%); } .range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--hair-strong), 0 2px 6px rgb(20 30 70 / 25%); appearance: none; transition: transform 200ms var(--ease-spring); } .range:active::-webkit-slider-thumb { transform: scale(1.15); } /* Chips / badges */ .badge { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--chip-ring); } .badge .ic { width: 13px; height: 13px; } .badge[data-tone] { color: var(--tone-fg); background: var(--tone-soft); box-shadow: inset 0 0 0 1px var(--tone-line); } .badge.is-mono { font-family: var(--font-mono); font-size: 11px; } .badges { display: flex; flex-wrap: wrap; gap: 6px; } .chip-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 0; border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--hair-strong); cursor: pointer; transition: transform var(--t-press) var(--ease-enter), color var(--t-hover) var(--ease-enter); } .chip-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); opacity: 0; transition: opacity var(--t-hover) var(--ease-enter); } .chip-btn:hover { color: var(--text); } .chip-btn[aria-pressed='true'] { color: var(--blue); } .chip-btn[aria-pressed='true']::before { opacity: 1; } .chip-btn:active { transform: scale(0.95); } /* Paths and code */ .path { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: var(--text-muted); overflow-wrap: anywhere; } .path b { font-weight: 500; color: var(--text); } /* Callouts */ .note { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 12px 11px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.58; color: var(--text); background: var(--tone-soft); box-shadow: inset 0 0 0 1px var(--tone-line); } .note > .ic { width: 18px; height: 18px; color: var(--tone-fg); } .note strong { display: block; font-weight: 600; } .note p + p, .note strong + p { margin-top: 2px; } .note .note-sub { color: var(--text-muted); } .note .btn { margin: -3px -4px -3px 0; } .note.is-quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-strong); } /* Double-bezel info card */ .card { padding: 4px; border-radius: 15px; background: var(--card-shell); box-shadow: inset 0 0 0 1px var(--hair); } .card-core { position: relative; overflow: hidden; border-radius: 11px; background: var(--card-core); box-shadow: 0 0 0 1px var(--hair), inset 0 1px 0 var(--dlg-core-hi); } .card-pad { padding: 12px 14px; } .card-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; } .card-row + .card-row, .card-core > * + .card-divide { box-shadow: inset 0 1px 0 var(--hair); } .card-divide { box-shadow: inset 0 1px 0 var(--hair); } .repo-tile { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--chip-ring); } .repo-tile .ic { width: 18px; height: 18px; } .repo-meta { display: grid; min-width: 0; gap: 1px; } .repo-meta strong { font-size: 14px; font-weight: 600; } /* Impact stats */ .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat { display: grid; gap: 2px; padding: 11px 14px 12px; } .stat + .stat { box-shadow: inset 1px 0 0 var(--hair); } .stat b { font-family: var(--font-mono); font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; } .stat span { font-size: 11.5px; color: var(--text-muted); word-break: keep-all; } .stat em { justify-self: start; margin-top: 4px; font-size: 11px; font-style: normal; } .stat[data-tone] b, .stat.tone b { color: var(--tone-fg); } .stat.is-off b { color: var(--text-muted); opacity: 0.55; } .stats.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat b small { margin-left: 2px; font-size: 13px; color: var(--text-muted); } /* Switch rows (layout settings) */ .sw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; } .sw-row + .sw-row { box-shadow: inset 0 1px 0 var(--hair); } .sw-row > span { display: grid; gap: 1px; min-width: 0; font-size: 13px; font-weight: 500; } .sw-row small { font-size: 11.5px; font-weight: 400; color: var(--text-muted); } /* Release notes */ .rel { display: grid; gap: 7px; padding: 12px 14px 13px; font-size: 12.5px; line-height: 1.55; } .rel li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: baseline; } .rel li > b { justify-self: start; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--tone-fg); } /* Ledger: will change vs will keep */ .ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ledger > div { display: grid; align-content: start; gap: 8px; padding: 12px 14px; } .ledger > div + div { box-shadow: inset 1px 0 0 var(--hair); } .ledger h4 { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tone-fg); } .ledger h4::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .ledger li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; } .ledger li .ic { width: 15px; height: 15px; color: var(--text-muted); } /* Key/value */ .kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; font-size: 12.5px; } .kv dt { color: var(--text-muted); } .kv dd { min-width: 0; overflow-wrap: anywhere; } /* Empty state: small moon + orbit */ .empty { display: grid; justify-items: center; gap: 10px; padding: 30px 20px 32px; text-align: center; color: var(--text-muted); } .empty-moon { position: relative; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-strong); } .empty-moon::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 65%, var(--moon-cyan), var(--moon-indigo) 70%); -webkit-mask: radial-gradient(circle at 72% 30%, transparent 46%, #000 48%); mask: radial-gradient(circle at 72% 30%, transparent 46%, #000 48%); opacity: 0.85; } .empty-moon::after { content: ''; position: absolute; top: 4px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--moon-cyan); box-shadow: 0 0 10px var(--moon-cyan); } .empty p { font-size: 12.5px; } /* Progress: translateX instead of changing width */ .progress { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--chip-ring); } .progress i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--moon-indigo), var(--moon-cyan)); transform: translateX(calc((var(--p, 0.4) - 1) * 100%)); transition: transform 700ms var(--ease-spring); } .progress i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent); transform: translateX(-100%); animation: sheen 1600ms var(--ease-orbit) infinite; } @keyframes sheen { to { transform: translateX(100%); } } /* Lists (scan results, associations, etc.) */ .list { display: grid; } .list-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 14px; } .list-item + .list-item { box-shadow: inset 0 1px 0 var(--hair); } .list-item > .ic { width: 18px; height: 18px; color: var(--text-muted); } .list-main { display: grid; flex: 1; min-width: 0; gap: 1px; } .list-main strong { overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; } .list-main .path { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .list-item.is-done { opacity: 0.66; } /* Diff (stash diff) */ .diff { font-family: var(--font-mono); font-size: 12px; line-height: 21px; background: var(--code-bg); } .diff-file { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-family: var(--font-sans); font-size: 12.5px; background: var(--surface); box-shadow: inset 0 -1px 0 var(--hair), inset 0 1px 0 var(--hair); } [data-theme='dark'] .diff-file { background: rgb(175 198 255 / 4%); } .diff-file .ic { width: 15px; height: 15px; color: var(--text-muted); } .diff-file .path { flex: 1; color: var(--text); } .diff-file .adds { color: var(--green); font-family: var(--font-mono); font-size: 11.5px; } .diff-file .dels { color: var(--red); font-family: var(--font-mono); font-size: 11.5px; } .diff-row { display: grid; grid-template-columns: 42px 42px 18px minmax(0, 1fr); white-space: pre; } .diff-row .ln { padding-right: 10px; text-align: right; color: var(--text-muted); opacity: 0.55; user-select: none; } .diff-row .sg { color: var(--text-muted); user-select: none; } .diff-row code { overflow: hidden; font-size: 12px; text-overflow: ellipsis; } .diff-row.add { background: var(--diff-add); } .diff-row.add .sg, .diff-row.add code { color: var(--green); } .diff-row.del { background: var(--diff-remove); } .diff-row.del .sg, .diff-row.del code { color: var(--red); } .diff-row.hunk { color: var(--blue); background: var(--diff-meta); } .diff-row.hunk code { color: var(--blue); } /* --------------------------------------------------------------------- Floating surfaces: popconfirm / popover / menu (same double-bezel, smaller radii) --------------------------------------------------------------------- */ .pop { --pw: 320px; position: relative; width: min(var(--pw), 100%); padding: 5px; border-radius: 17px; background: var(--dlg-shell-bg); box-shadow: inset 0 0 0 1px var(--dlg-shell-ring), inset 0 1px 0 var(--dlg-shell-hi), var(--pop-shadow); } .pop-core { position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; background: var(--dlg-core-bg); box-shadow: 0 0 0 1px var(--dlg-core-ring), inset 0 1px 0 var(--dlg-core-hi); } .pop-core::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 3; height: 1px; background: linear-gradient(90deg, transparent 10%, var(--tone-rim) 50%, transparent 90%); } /* Popconfirm */ .pc { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; padding: 14px 14px 12px; } .pc-glyph { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--tone-fg); background: var(--tone-soft); box-shadow: inset 0 0 0 1px var(--tone-line); } .pc-glyph .ic { width: 16px; height: 16px; } .pc-title { padding-top: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.4; } .pc-desc { margin-top: 4px !important; font-size: 12.5px; line-height: 1.58; color: var(--text-muted); } .pc-extra { display: grid; gap: 10px; margin-top: 10px; } .pc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 10px 10px 14px; background: var(--dlg-foot-bg); box-shadow: inset 0 1px 0 var(--hair); } .pc-actions .dlg-hints { margin-right: auto; } /* Menu */ .menu { display: grid; padding: 5px; } .menu-label { padding: 8px 10px 5px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); } .menu-item { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; font-size: 13px; text-align: left; color: var(--text); background: transparent; cursor: pointer; } .menu-item::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--hover-veil); opacity: 0; transition: opacity 110ms var(--ease-enter); } .menu-item:hover::before, .menu-item.is-hover::before { opacity: 1; } .menu-item > .ic { width: 16px; height: 16px; color: var(--text-muted); } .menu-item .menu-main { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .menu-item .menu-aside { margin-left: auto; font-size: 11.5px; color: var(--text-muted); } .menu-item.is-danger, .menu-item.is-danger > .ic { color: var(--red); } .menu-item.is-danger::before { background: var(--red-soft); } .menu-item.is-current { font-weight: 500; } .menu-item.is-current > .check-ic { color: var(--blue); } .menu-item.is-disabled { opacity: 0.45; pointer-events: none; } .menu-sep { height: 1px; margin: 4px 8px; background: var(--hair); } .menu > [role='group'][hidden] + .menu-sep, .menu > .menu-sep:has(+ [role='group'][hidden]) { display: none; } .pop-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; box-shadow: inset 0 -1px 0 var(--hair); } .pop-search .ic { width: 16px; height: 16px; color: var(--text-muted); } .pop-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font-size: 13px; } .pop-search input::placeholder { color: var(--text-muted); opacity: 0.7; } .pop-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 14px; } .pop-head strong { flex: 1; font-size: 13px; font-weight: 600; } .pop-lead { padding: 0 14px 10px; font-size: 12px; line-height: 1.55; color: var(--text-muted); } .pop-foot { display: flex; align-items: center; gap: 8px; padding: 5px; background: var(--dlg-foot-bg); box-shadow: inset 0 1px 0 var(--hair); } .pop-foot .menu-item { flex: 1; } .pop-status { display: flex; align-items: center; gap: 8px; padding: 16px 14px; font-size: 12.5px; color: var(--text-muted); } .behind { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange-line); } /* Worktree rows */ .wt { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border-radius: 10px; } .wt + .wt { box-shadow: inset 0 1px 0 var(--hair); border-radius: 0 0 10px 10px; } .wt-tile { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--text-muted); background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--chip-ring); } .wt-tile .ic { width: 16px; height: 16px; } .wt.is-current .wt-tile { color: var(--blue); background: var(--blue-soft); } .wt-main { display: grid; gap: 2px; min-width: 0; } .wt-main .top { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 500; } .wt-main .top span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .wt-main .path { overflow: hidden; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; } .wt-main small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); } .wt-main small .ic { width: 12px; height: 12px; } .wt-main small[data-tone] { color: var(--tone-fg); } /* --------------------------------------------------------------------- Feedback centre --------------------------------------------------------------------- */ .fb-block { position: relative; padding: 12px 14px 12px 17px; border-radius: 12px; font-size: 12.5px; line-height: 1.62; color: var(--text); white-space: pre-wrap; background: var(--tone-soft); box-shadow: inset 0 0 0 1px var(--tone-line); } .fb-block::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: 7px; width: 3px; border-radius: 999px; background: var(--tone-fg); opacity: 0.8; } .fb-block.is-mono { max-height: 176px; overflow: auto; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; } .fb-context { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); } .fb-copied .ic { color: var(--green); } .inbox { display: grid; gap: 6px; padding: 0 12px 12px; } .fb-item { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 11px 12px; border-radius: 12px; background: var(--card-core); box-shadow: inset 0 0 0 1px var(--hair); } .fb-item .pc-glyph { width: 30px; height: 30px; } .fb-item-head { display: flex; align-items: baseline; gap: 8px; } .fb-item-head strong { flex: 1; font-size: 13px; font-weight: 600; } .fb-item-head time { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; } .fb-item p { margin-top: 2px; font-size: 12px; line-height: 1.55; color: var(--text-muted); } .fb-item .fb-item-actions { display: flex; gap: 6px; margin-top: 9px; } .fb-item.is-new::after { content: ''; position: absolute; top: 14px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--tone-fg); box-shadow: 0 0 0 3px var(--tone-soft); } .fb-item.is-new .fb-item-head time { margin-right: 14px; } /* Tray: fixed in the product (the only floating layer allowed backdrop-filter) */ .tray { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 13px; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text); background: var(--dlg-shell-bg); box-shadow: inset 0 0 0 1px var(--dlg-shell-ring), inset 0 1px 0 var(--dlg-shell-hi), var(--pop-shadow); cursor: pointer; transition: transform var(--t-press) var(--ease-enter); } .tray:active { transform: scale(0.97); } .tray > .ic { width: 16px; height: 16px; color: var(--text-muted); } .tray-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; color: var(--primary-on); background: var(--btn-primary-bg); box-shadow: var(--btn-primary-shadow); } .tray[data-tone='danger'] .tray-count { color: var(--btn-danger-on); background: var(--btn-danger-bg); box-shadow: var(--btn-danger-shadow); } .tray-dots { display: flex; gap: 3px; } .tray-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tone-fg); } /* --------------------------------------------------------------------- Live layer (the fixed overlay in the product): scrim + halo + motion choreography --------------------------------------------------------------------- */ .mn-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 32px 16px; overflow-y: auto; } .mn-scrim { position: fixed; inset: 0; background: var(--dlg-scrim); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); opacity: 0; transition: opacity var(--t-scrim) var(--ease-spring); } .mn-scrim::before { content: ''; position: absolute; top: 46%; left: 50%; width: min(1100px, 150vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--dlg-halo-a), var(--dlg-halo-b) 48%, transparent 72%); transform: translate(-50%, -50%) scale(0.92); transition: transform 900ms var(--ease-glide); } .mn-scrim::after { content: ''; position: absolute; top: 46%; left: 50%; width: min(760px, 110vw); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(143 227 238 / 14%), 0 0 60px rgb(110 134 232 / 10%); transform: translate(-50%, -50%) scale(0.96); opacity: 0; transition: opacity 600ms var(--ease-enter), transform 900ms var(--ease-glide); } [data-theme='dark'] .mn-layer.is-open .mn-scrim::after { opacity: 1; } .mn-layer.is-open .mn-scrim { opacity: 1; } .mn-layer.is-open .mn-scrim::before, .mn-layer.is-open .mn-scrim::after { transform: translate(-50%, -50%) scale(1); } .mn-layer .dlg, .mn-layer .pop { position: relative; opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity 240ms var(--ease-enter), transform var(--t-enter) var(--ease-spring); } .mn-layer.is-open .dlg, .mn-layer.is-open .pop { opacity: 1; transform: none; } .mn-layer .dlg-head, .mn-layer .dlg-body, .mn-layer .dlg-foot { opacity: 0; transform: translateY(6px); transition: opacity 260ms var(--ease-enter), transform 420ms var(--ease-spring); } .mn-layer.is-open .dlg-head, .mn-layer.is-open .dlg-body, .mn-layer.is-open .dlg-foot { opacity: 1; transform: none; } .mn-layer.is-open .dlg-head { transition-delay: calc(var(--t-stagger) * 1); } .mn-layer.is-open .dlg-body { transition-delay: calc(var(--t-stagger) * 2); } .mn-layer.is-open .dlg-foot { transition-delay: calc(var(--t-stagger) * 3); } .mn-layer.is-closing .mn-scrim { opacity: 0; transition: opacity 200ms var(--ease-exit); } .mn-layer.is-closing .dlg, .mn-layer.is-closing .pop { opacity: 0; transform: translateY(6px) scale(0.985); transition: opacity var(--t-exit) var(--ease-exit), transform var(--t-exit) var(--ease-exit); } .mn-layer.is-closing .dlg-head, .mn-layer.is-closing .dlg-body, .mn-layer.is-closing .dlg-foot { transition: none; } /* Confirm feedback: the primary button gives a tiny press and the dialog lifts away */ .mn-layer.is-confirmed .dlg { opacity: 0; transform: translateY(-8px) scale(0.985); transition: opacity 200ms var(--ease-exit), transform 260ms var(--ease-exit); } /* Narrow windows: collapse into a bottom sheet */ @media (max-width: 560px) { .mn-layer { place-items: end stretch; padding: 0; } .mn-layer .dlg { width: 100%; transform: translateY(100%); transition: opacity 200ms var(--ease-enter), transform 460ms var(--ease-spring); } .mn-layer.is-closing .dlg { transform: translateY(100%); transition: transform 220ms var(--ease-exit), opacity 220ms var(--ease-exit); } .mn-layer .dlg-shell, .dlg.is-sheet .dlg-shell { padding-bottom: 0; border-radius: 26px 26px 0 0; } .mn-layer .dlg-core, .dlg.is-sheet .dlg-core { border-radius: 20px 20px 0 0; } .mn-layer .dlg-hints { display: none; } .mn-layer .dlg-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); } .mn-layer .dlg-actions { flex-direction: column-reverse; width: 100%; } .mn-layer .dlg-actions .btn { width: 100%; height: 44px; } .mn-layer .opt-grid { grid-template-columns: 1fr; } /* Context pill may wrap instead of clipping the level tag */ .dlg-eyebrow { flex-wrap: wrap; row-gap: 1px; height: auto; padding-block: 2px; border-radius: 11px; } .dlg-eyebrow .lvl { margin-left: 0; padding-left: 0; box-shadow: none; } } /* Bottom-sheet variant (used by the responsive section of the board) */ .dlg.is-sheet { width: 100%; } .dlg.is-sheet .dlg-shell { padding-bottom: 0; border-radius: 26px 26px 0 0; } .dlg.is-sheet .dlg-core { border-radius: 20px 20px 0 0; } .sheet-grabber { width: 36px; height: 4px; margin: 8px auto 0; border-radius: 999px; background: var(--hair-strong); } .dlg.is-sheet .dlg-foot { flex-direction: column; align-items: stretch; padding: 12px 14px 18px; } .dlg.is-sheet .dlg-actions { flex-direction: column-reverse; width: 100%; margin: 0; } .dlg.is-sheet .dlg-actions .btn { width: 100%; height: 44px; } .dlg.is-sheet .dlg-actions .btn-primary { justify-content: center; } /* Reduced motion: keep only the opacity fade */ [data-reduced-motion='true'] .mn-layer .dlg, [data-reduced-motion='true'] .mn-layer .pop, [data-reduced-motion='true'] .mn-layer .dlg-head, [data-reduced-motion='true'] .mn-layer .dlg-body, [data-reduced-motion='true'] .mn-layer .dlg-foot, [data-reduced-motion='true'] .mn-scrim::before, [data-reduced-motion='true'] .mn-scrim::after { transform: none !important; transition-property: opacity !important; transition-duration: 120ms !important; transition-delay: 0ms !important; } [data-reduced-motion='true'] .moonload, [data-reduced-motion='true'] .progress i::after { animation: none; } @media (prefers-reduced-motion: reduce) { .mn-layer .dlg, .mn-layer .pop, .mn-layer .dlg-head, .mn-layer .dlg-body, .mn-layer .dlg-foot { transform: none !important; transition-property: opacity !important; transition-duration: 120ms !important; transition-delay: 0ms !important; } .moonload, .progress i::after { animation: none; } }