/* BerryOS app contents (shared by computer windows and phone sheets). */
.pad { padding: 22px 26px 28px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.lede { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.body { color: var(--ink-2); line-height: 1.6; margin-top: 8px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.win h4, .sheet h4 { margin: 26px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.actions.center { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); border: .5px solid #d9d9df; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 16px; border-radius: 9px; border: .5px solid transparent; font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: linear-gradient(180deg, #f0344f, #d81b36); color: #fff; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(150, 10, 30, .35); }
.btn-primary:hover { background: linear-gradient(180deg, #f5455f, #e0223d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfcfd6; box-shadow: 0 1px 1.5px rgba(0, 0, 0, .06); }
.btn-ghost:hover { background: var(--bg-2); }
.btn.sm { min-height: 26px; padding: 3px 10px; font-size: 12.5px; }

input, textarea { width: 100%; font: 14px var(--sans); color: var(--ink); background: #fff; border: .5px solid #c9c9d0; border-radius: 8px; padding: 9px 11px; min-height: 36px; box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, .05); }
input:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3.5px rgba(227, 32, 63, .18); }
textarea { resize: vertical; }
label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.row-form { display: flex; gap: 8px; }
.row-form input { flex: 1; }
.stack-form { display: grid; gap: 12px; margin-top: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 12.5px; color: var(--muted); min-height: 1em; }
.form-note.ok { color: var(--ok); } .form-note.err { color: var(--bad); }
.out:not(:empty) { margin-top: 18px; }
.thinking { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.orbit { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #e5e5ea; border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { background: #fdeeee; color: var(--bad); border-radius: 9px; padding: 10px 13px; font-size: 13.5px; }
.advice { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border-left: 3px solid var(--acc); color: var(--ink-2); }
.advice h5 { font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.side { background: rgba(240, 240, 244, .9); border-right: .5px solid #dcdce2; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.side-h { font-size: 11px; font-weight: 700; color: #9a9aa2; padding: 4px 10px 6px; }
.side-i { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: 13px; cursor: default; color: var(--ink); }
.side-i svg { width: 18px; height: 18px; flex: none; }
.side-i:hover { background: rgba(0, 0, 0, .05); }
.side-i.is-on { background: rgba(0, 0, 0, .085); font-weight: 600; }
.avatar { margin: 0; width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #ff7a8a, #c8102e); box-shadow: 0 0 0 4px #fff, 0 10px 24px -8px rgba(200, 16, 46, .55); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font: italic 400 44px/1 var(--serif); color: #fff; }
.avatar.sm { width: 40px; height: 40px; box-shadow: none; }
.avatar.sm span { font-size: 20px; }

/* ---------- About Me ---------- */
.about-banner { height: 110px; background: radial-gradient(120% 140% at 80% 0%,
  color-mix(in srgb, var(--acc-2) 55%, #fff),
  var(--acc) 45%,
  color-mix(in srgb, var(--acc) 45%, #140a12)); }
.about-card { display: flex; align-items: flex-start; gap: 16px; padding: 0 26px; margin-top: -48px; }
.about-id { padding-top: 56px; min-width: 0; }
.about-id h3 { font: 400 32px/1.05 var(--serif); }
.about-id p { color: var(--muted); font-size: 13px; }
.now { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12.5px; color: var(--ink-2) !important; }
.headline { font: 400 clamp(26px, 3.4vw, 34px)/1.1 var(--serif); margin: 6px 0 10px; letter-spacing: -.005em; }
.headline em { color: var(--acc); }
.loves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: l; }
.loves li { counter-increment: l; display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: 13px; }
.loves li::before { content: '0' counter(l); font: italic 400 18px var(--serif); color: var(--acc); }
.loves b { font-weight: 600; }
.loves span { color: var(--muted); }

/* ---------- Projects ---------- */
.finder { display: grid; grid-template-columns: 180px 1fr; height: 100%; }
.finder-main { display: flex; flex-direction: column; min-width: 0; }
.finder-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: .5px solid var(--line); }
.finder-title { font-size: 14px; }
.finder-bar .muted { font-size: 12px; margin-right: auto; }
.finder-body { padding: 18px; overflow: auto; }
.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.file { width: 100%; display: grid; justify-items: center; gap: 3px; padding: 12px 6px 10px; border: 0; border-radius: 10px; background: none; cursor: default; text-align: center; }
.file .ic svg { width: 72px; height: 72px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .18)); }
.file b { font-size: 13px; font-weight: 600; margin-top: 4px; }
.file small { font-size: 11.5px; color: var(--muted); }
.file:hover { background: var(--bg-2); }
.file.is-sel { background: rgba(227, 32, 63, .1); }
.file.is-sel b { color: var(--acc); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 11px 18px; border-bottom: .5px solid var(--line); font-size: 13px; }
.rows li:nth-child(even) { background: #fafafc; }
.rows li span { grid-column: 1; color: var(--muted); }
.rows li .link { grid-row: 1 / span 2; grid-column: 2; border: 0; background: none; color: var(--acc); font-weight: 600; cursor: pointer; }
.trash .finder-main { grid-column: 1 / -1; }
.trash .rows li { grid-template-columns: 1fr auto; }
.trash .rows li span { grid-column: 2; grid-row: 1; }

.project .shot { margin: -4px 0 18px; }
.project .shot img, .project .shot .scr { border-radius: 12px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 20px 40px -22px rgba(0, 0, 0, .5); }
.project h3 { font: 400 40px/1 var(--serif); margin: 6px 0 8px; }
.ai-box { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border-left: 3px solid var(--c, var(--acc)); }
.ai-box h5 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.ai-box p { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

/* drawn project screens (visuals.js) */
.scr { aspect-ratio: 16/10; overflow: hidden; text-align: left; font: 13px/1.4 var(--sans); }
.scr-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: rgba(0, 0, 0, .08); }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .18); }
.scr-body { padding: 14px 16px; height: calc(100% - 26px); }
.scr .k { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .08em; display: block; }
.scr-bean { background: linear-gradient(160deg, #3a2414, #1c120a); color: #ffe6c2; }
.scr-bean .scr-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.scr-bean .chart { background: rgba(0, 0, 0, .22); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.scr-bean .chart svg { flex: 1; width: 100%; }
.scr-bean .v { font: 700 22px var(--sans); color: #ffc14d; }
.scr-bean .side { display: grid; gap: 8px; background: none; border: 0; padding: 0; }
.scr-bean .side div { background: rgba(0, 0, 0, .22); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; }
.scr-card { background: linear-gradient(160deg, #fff, #f4eef0); color: #2a1016; }
.scr-card .scr-body { display: flex; flex-direction: column; gap: 7px; }
.scr-card .tag { font-size: 10px; font-weight: 700; color: #e0364f; letter-spacing: .1em; text-transform: uppercase; }
.scr-card .msg { max-width: 76%; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; }
.scr-card .in { background: #efe5e8; }
.scr-card .out { background: #e0364f; color: #fff; align-self: flex-end; margin: 0; }
.scr-chexi { background: linear-gradient(160deg, #071824, #04101a); color: #cdefff; }
.scr-chexi .scr-body { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 10px; }
.scr-chexi .t { background: rgba(255, 255, 255, .04); border: 1px solid rgba(77, 225, 255, .15); border-radius: 8px; padding: 10px; font-size: 11px; display: flex; flex-direction: column; }
.scr-chexi .t b { font-size: 28px; color: #4de1ff; margin: auto 0 0; text-shadow: 0 0 18px #4de1ff; }
.scr-chexi .hot { border-color: rgba(77, 225, 255, .5); }
.scr-chexi .bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; margin-top: 6px; }
.scr-chexi .bars i { flex: 1; background: #4de1ff; opacity: .7; border-radius: 2px; }
.scr-chexi .bars.dim i { background: #6b7c88; opacity: .5; }
.scr-chexi .wide { grid-column: span 3; }
.scr-chexi .wide svg { flex: 1; width: 100%; }

/* ---------- Browser ---------- */
.br { display: flex; flex-direction: column; height: 100%; }
.br-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f3f3f6; border-bottom: .5px solid #dcdce2; }
.br-nav { display: flex; gap: 2px; }
.br-bar button { width: 30px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: #4a4a50; cursor: default; }
.br-bar button:hover:not(:disabled) { background: rgba(0, 0, 0, .07); }
.br-bar button:disabled { color: #c0c0c6; }
.br-bar svg { width: 15px; height: 15px; }
.br-url { flex: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; background: #fff; border: .5px solid #d2d2d8; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .04); }
.br-url:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(227, 32, 63, .16); }
.br-url input { border: 0; padding: 0; min-height: 0; height: 100%; background: none; box-shadow: none !important; font-size: 13.5px; }
.br-lock { color: #7a7a82; display: inline-flex; }
.br-lock svg { width: 10px; height: 12px; }
.br-books { display: flex; gap: 4px; padding: 5px 10px; background: #f3f3f6; border-bottom: .5px solid #dcdce2; overflow-x: auto; scrollbar-width: none; }
.br-books button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border: 0; border-radius: 6px; background: none; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; cursor: default; }
.br-books button:hover { background: rgba(0, 0, 0, .07); }
.br-books i, .br-tiles i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: #fff; font: italic 600 11px var(--serif); font-style: normal; }
.br-view { position: relative; flex: 1; min-height: 0; background: #fff; }
.br-progress { position: absolute; inset: 0 0 auto; height: 2.5px; z-index: 2; background: linear-gradient(90deg, var(--acc), #ff8aa0); transform-origin: left; transform: scaleX(0); opacity: 0; }
.br-progress.is-on { opacity: 1; animation: load 2.2s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes load { from { transform: scaleX(.05); } to { transform: scaleX(.85); } }
.br-page { position: absolute; inset: 0; overflow: auto; }
.br-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.br-start { min-height: 100%; display: grid; justify-items: center; align-content: center; gap: 14px; padding: 30px 20px; background: radial-gradient(80% 60% at 50% 0%, #fff0f2, #fff 70%); text-align: center; }
.br-start h3 { font: 400 34px var(--serif); }
.br-search { width: min(460px, 100%); }
.br-search input { height: 42px; border-radius: 12px; padding: 0 16px; font-size: 15px; text-align: center; }
.br-tiles { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; width: min(560px, 100%); }
.br-tiles button { width: 100%; display: grid; justify-items: center; gap: 7px; padding: 12px 6px; border: 0; border-radius: 12px; background: none; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.br-tiles button:hover { background: var(--bg-2); }
.br-tiles i { width: 48px; height: 48px; border-radius: 13px; font-size: 22px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.br-notice { min-height: 100%; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 30px; text-align: center; color: var(--ink-2); }
.br-notice h3 { font: 400 32px/1.1 var(--serif); color: var(--ink); max-width: 18ch; }
.br-notice p { max-width: 44ch; line-height: 1.55; }
.br-notice.is-caught { background: radial-gradient(70% 60% at 50% 30%, #fff3d6, #fff 70%); }
.br-ico svg { width: 72px; height: 72px; }
.caught-art { width: 220px; height: 200px; animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* ---------- Mail ---------- */
.mail { display: grid; grid-template-columns: 200px 1fr; height: 100%; }
.mail-side { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px; background: rgba(240, 240, 244, .9); border-right: .5px solid #dcdce2; }
.mail-new { justify-content: flex-start; }
.mail-side nav { display: grid; gap: 2px; }
.mail-side nav button { display: flex; justify-content: space-between; padding: 6px 10px; border: 0; border-radius: 7px; background: none; font-size: 13px; text-align: left; cursor: default; }
.mail-side nav button:hover { background: rgba(0, 0, 0, .05); }
.mail-side nav button.is-on { background: rgba(0, 0, 0, .085); font-weight: 600; }
.badge { min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.count { color: var(--muted); }
.mail-main { min-width: 0; overflow: auto; }
.msg { padding: 22px 28px; }
.msg-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: .5px solid var(--line); }
.msg-head div { flex: 1; display: grid; font-size: 13px; }
.msg h3 { font-size: 20px; margin: 18px 0 12px; }
.msg p { color: var(--ink-2); line-height: 1.65; margin-bottom: 12px; max-width: 60ch; }
.compose { display: flex; flex-direction: column; min-height: 100%; }
.c-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border-bottom: .5px solid var(--line); font-size: 13.5px; font-weight: 400; color: var(--ink); }
.c-row > span { width: 62px; flex: none; color: var(--muted); }
.c-row input { border: 0; padding: 8px 0; box-shadow: none !important; background: none; }
.c-msg { flex: 1; display: flex; padding: 14px 22px; }
.c-msg textarea { flex: 1; min-height: 160px; border: 0; padding: 0; resize: none; box-shadow: none !important; font-size: 14.5px; line-height: 1.6; }
.c-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 22px; border-top: .5px solid var(--line); }
.c-foot .form-note { flex: 1; }
.studio-note { padding: 4px 22px 14px; font-size: 12px; color: var(--muted); }
.sent { list-style: none; margin: 0; padding: 0; }
.sent li { display: grid; gap: 2px; padding: 14px 22px; border-bottom: .5px solid var(--line); font-size: 13px; }
.sent li span { color: var(--ink-2); }
.sent li small { color: var(--muted); }
.empty { display: grid; justify-items: center; gap: 12px; padding: 60px 20px; color: var(--muted); }

/* ---------- Site Inspector ---------- */
.agent { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; font-size: 12.5px; color: var(--muted); }
.pipeline { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pipeline li { counter-increment: s; position: relative; padding: 10px 12px 10px 34px; border-radius: 10px; background: var(--bg-2); font-size: 12.5px; color: var(--ink-2); }
.pipeline li::before { content: counter(s); position: absolute; left: 12px; top: 8px; font: italic 400 20px/1 var(--serif); color: var(--acc); }
.pipeline b { color: var(--ink); }
.report-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.report-top .meta { display: grid; gap: 1px; min-width: 0; }
.report-top h3 { font: 400 24px var(--serif); }
.report-top a { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.report-top .muted { font-size: 12.5px; }
.gauge { --v: 0; --c: var(--ok); position: relative; width: 78px; height: 78px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), #ececf0 0); }
.gauge::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.gauge b { position: relative; font: 400 28px var(--serif); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; border: .5px solid #dcdce2; background: #fff; font-size: 13px; }
.check .i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.check.pass .i { background: #e1f4e8; color: var(--ok); }
.check.fail .i { background: #fde6e6; color: var(--bad); }
.check .g { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.check b { display: block; }
.check small { display: block; color: var(--muted); word-break: break-word; }
.passed { margin-top: 12px; }
.passed summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.passed .checks { margin-top: 10px; }
.followup { display: grid; gap: 8px; margin-top: 18px; font-size: 13px; }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 180px 1fr; height: 100%; }
.set-main { overflow: auto; }
.set-main h3 { font-size: 20px; margin-bottom: 4px; }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.wall-opt { display: grid; gap: 8px; justify-items: center; padding: 8px; border: 0; border-radius: 14px; background: none; font-size: 13px; cursor: pointer; }
.wall-sw { width: 100%; aspect-ratio: 16/10; border-radius: 10px; display: grid; place-items: center; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 8px 18px -10px rgba(0, 0, 0, .5); }
.wall-opt.is-on .wall-sw { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--acc); }
.wall-opt.is-on { font-weight: 600; }
.srows { list-style: none; margin: 18px 0 0; padding: 0; border-radius: 12px; overflow: hidden; border: .5px solid #dcdce2; }
.srows li { display: flex; justify-content: space-between; padding: 12px 14px; font-size: 13.5px; border-bottom: .5px solid var(--line); }
.srows li:last-child { border-bottom: 0; }
.st { color: var(--muted); }
.st.on { color: var(--ok); }
.sys { text-align: center; display: grid; justify-items: center; }
.sys h3 { font: 400 34px/1 var(--serif) !important; margin-top: 6px; }
.sys dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; text-align: left; font-size: 13px; }
.sys dt { color: var(--muted); }
.sys dd { margin: 0; }

/* ---------- Terminal ---------- */
.app-terminal .win-body, .app-terminal .sheet-body { background: #16131b; }
.app-terminal .win-bar { background: linear-gradient(180deg, #2c2833, #221f28); border-bottom-color: #0d0b10; }
.app-terminal .win-title { color: #d8d3df; }
.app-terminal .win-ctl button { color: #b8b3c0; }
.app-terminal .win-ctl button:hover { background: rgba(255, 255, 255, .1); }
.term { height: 100%; overflow: auto; padding: 12px 16px 16px; font: 13px/1.6 var(--mono); color: #e8e3ee; cursor: text; }
.term .ln { white-space: pre-wrap; word-break: break-word; }
.term .err { color: #ff8b8b; }
.term .ok { color: #6dffa0; }
.term .ps { color: #ff7a95; margin-right: 8px; }
.term .dir { color: #7fd6ff; }
.term-line label { display: flex; align-items: center; font: inherit; color: inherit; }
.term-line input { flex: 1; border: 0; padding: 0; min-height: 0; background: none; color: #fff; font: inherit; box-shadow: none !important; caret-color: #6dffa0; }
.neo { display: flex; gap: 18px; align-items: center; }
.neo .berry { margin: 0; color: #ff4d6a; font: inherit; line-height: 1.25; }

/* ---------- phone adjustments ---------- */
.os-phone .pad { padding: 18px 18px 24px; }
.os-phone .finder, .os-phone .settings, .os-phone .mail { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.os-phone .side, .os-phone .mail-side { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: .5px solid #dcdce2; padding: 8px 10px; }
.os-phone .side-h { display: none; }
.os-phone .side-i { white-space: nowrap; }
.os-phone .mail-side nav { display: flex; }
.os-phone .loves, .os-phone .two, .os-phone .pipeline { grid-template-columns: 1fr; }
.os-phone .row-form { flex-direction: column; }
.os-phone .files { grid-template-columns: repeat(3, 1fr); }
.os-phone .file .ic svg { width: 60px; height: 60px; }
.os-phone .msg { padding: 18px; }
.os-phone .c-row, .os-phone .c-msg { padding-left: 16px; padding-right: 16px; }
.os-phone .c-foot { flex-wrap: wrap; }
.os-phone .c-foot .form-note { flex-basis: 100%; }
.os-phone .br-books { display: none; }
.os-phone .br-bar { padding: 6px 8px; }
.os-phone .br-nav button:nth-child(3), .os-phone .br-home { display: none; }
.os-phone .scr { font-size: 11px; }
.os-phone .scr-card .msg { font-size: 11px; padding: 6px 10px; }
.os-phone .about-card { padding: 0 18px; }
.os-phone input, .os-phone textarea { font-size: 16px; }

/* =====================================================================
   Each app has its own look. The phone sheet (and the desktop window body) reads these variables:
   --app-bg, --app-ink, --app-bar, --app-line, --app-chip, --app-acc, --app-title.
   ===================================================================== */
.win[class*='app-'] .win-body { background: var(--app-bg, var(--bg)); color: var(--app-ink, var(--ink)); }
[class*='app-'] .btn-primary { background: var(--app-acc, var(--acc)); color: var(--app-on-acc, #fff); box-shadow: 0 6px 16px -8px var(--app-acc, var(--acc)); }
[class*='app-'] .btn-primary:hover { filter: brightness(1.06); background: var(--app-acc, var(--acc)); }
[class*='app-'] input:focus, [class*='app-'] textarea:focus { border-color: var(--app-acc, var(--acc)); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--app-acc, var(--acc)) 22%, transparent); }

/* ---------- About Me: an editorial page. Warm paper, big serif, a real photo ---------- */
.app-about { --app-bg: #f6efe4; --app-bar: #f6efe4; --app-ink: #2a1712; --app-acc: var(--acc); --app-line: rgba(42, 23, 18, .12); --app-chip: color-mix(in srgb, var(--acc) 10%, transparent); --app-title: italic 400 30px/1 var(--serif); --muted: #7a6458; --ink-2: #4a342b; }
.app-about .about-banner { height: 96px; background:
  repeating-linear-gradient(-45deg,
    color-mix(in srgb, var(--acc) 90%, transparent) 0 14px,
    color-mix(in srgb, var(--acc) 72%, transparent) 14px 28px); }
.app-about .avatar { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 5px #f6efe4, 0 14px 30px -12px rgba(42, 23, 18, .6); background: #e9dccb; }
.app-about .about-id h3 { font-size: 34px; }
.app-about .about-id p { font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--muted); }
.app-about .headline { font-size: clamp(30px, 8vw, 38px); }
.app-about h4 { font: italic 400 26px/1.1 var(--serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--app-acc) !important; margin: 30px 0 10px !important; padding-top: 14px; border-top: 1px solid var(--app-line); }
.app-about .loves { grid-template-columns: 1fr; gap: 0; }
.app-about .loves li { grid-template-columns: 46px 1fr; grid-template-rows: auto auto; gap: 2px 8px; padding: 12px 0; border-radius: 0; background: none; border-bottom: 1px dashed var(--app-line); }
.app-about .loves li::before { grid-row: span 2; font-size: 30px; line-height: 1; color: var(--app-acc); }
.app-about .loves b { font: 600 15px var(--sans); }
.app-about .chips span { background: none; border: 1px solid var(--app-ink); color: var(--app-ink); font: 500 12px var(--mono); border-radius: 6px; }
.app-about .btn-ghost { background: transparent; border: 1px solid var(--app-ink); color: var(--app-ink); box-shadow: none; }

/* ---------- Projects: a dark gallery of real logos ---------- */
.app-projects { --app-bg: #121016; --app-bar: #121016; --app-ink: #f3eef6; --app-acc: var(--acc-2); --app-line: rgba(255, 255, 255, .08); --app-chip: rgba(255, 255, 255, .08); --app-title: 600 19px/1.1 var(--mono); --muted: #9c93a6; --ink-2: #d8d0de; --line: rgba(255, 255, 255, .08); --bg-2: rgba(255, 255, 255, .05); }
.app-projects .side { background: #19161e; border-color: var(--app-line); }
.app-projects .side-i { color: var(--app-ink); }
.app-projects .side-i:hover, .app-projects .side-i.is-on { background: rgba(255, 255, 255, .08); }
.app-projects .finder-bar { border-color: var(--app-line); font-family: var(--mono); }
.app-projects .file { color: var(--app-ink); border-radius: 18px; }
.app-projects .file:hover { background: rgba(255, 255, 255, .05); }
.app-projects .file.is-sel { background: rgba(255, 90, 114, .14); }
.app-projects .file small { font-family: var(--mono); }
.app-projects .file-t { display: grid; gap: 2px; }
.app-projects .file-go { display: none; }
.app-projects .rows li:nth-child(even) { background: rgba(255, 255, 255, .025); }
.app-projects .rows li span { color: var(--muted); }
.app-projects .hint { color: var(--muted); }

/* ---------- One project: its own colour, its logo up top ---------- */
.app-project { --app-bg: #faf7f2; --app-bar: color-mix(in srgb, var(--c, var(--acc)) 22%, #faf7f2); --app-ink: #1c1820; --app-acc: #1c1820; --app-on-acc: #fff; --app-line: rgba(0, 0, 0, .06); --app-chip: rgba(255, 255, 255, .7); --app-title: 400 28px/1 var(--serif); }
.proj-hero { display: grid; place-items: center; padding: 26px 0 30px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 34%, #faf7f2), #faf7f2 75%); }
.proj-logo { width: 132px; height: 132px; display: block; border-radius: 30px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 40px -18px rgba(0, 0, 0, .55); background: #fff; }
.proj-logo svg { width: 100%; height: 100%; display: block; }
.app-project .project { padding-top: 4px; }
.app-project .kicker { color: color-mix(in srgb, var(--c) 70%, #1c1820); font-family: var(--mono); }
.app-project .ai-box { background: #fff; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-left-width: 4px; }
.app-project .chips span { background: color-mix(in srgb, var(--c) 16%, #fff); border-color: color-mix(in srgb, var(--c) 40%, transparent); font-family: var(--mono); font-size: 12px; }
.shot-img { margin: 0; }
.shot-img figcaption { margin-top: 8px; font: 500 11.5px var(--mono); color: var(--muted); }

/* ---------- Site Inspector: a scanner. Deep navy, mint, monospace, a grid ---------- */
.app-lab { --app-bg: #08111f; --app-bar: #08111f; --app-ink: #d8f5ec; --app-acc: #2fe0a5; --app-on-acc: #04201a; --app-line: rgba(47, 224, 165, .18); --app-chip: rgba(47, 224, 165, .12); --app-title: 600 17px/1.1 var(--mono); --muted: #7fa69a; --ink-2: #bfe3d7; --ink: #e8fff7; --bg-2: rgba(47, 224, 165, .06); }
.app-lab .sheet-body, .win.app-lab .win-body { background-color: #08111f; background-image: linear-gradient(rgba(47, 224, 165, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 224, 165, .06) 1px, transparent 1px); background-size: 22px 22px; }
.app-lab .lede { font-family: var(--mono); font-size: 13.5px; line-height: 1.65; }
.app-lab .agent { font-family: var(--mono); }
.app-lab .pipeline li { background: rgba(8, 17, 31, .8); border: 1px solid var(--app-line); border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.app-lab .pipeline li::before { content: '0' counter(s); font: 700 12px var(--mono); color: var(--app-acc); top: 11px; }
.app-lab .pipeline b { color: var(--app-acc); }
.app-lab input { background: #0d1a2c; border: 1px solid var(--app-line); color: var(--app-ink); font-family: var(--mono); border-radius: 4px; box-shadow: none; }
.app-lab input::placeholder { color: #4f7268; }
.app-lab .btn { border-radius: 4px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.app-lab .btn-ghost { background: transparent; color: var(--app-acc); border: 1px solid var(--app-acc); box-shadow: none; }
.app-lab .check { background: rgba(13, 26, 44, .9); border: 1px solid var(--app-line); border-radius: 4px; }
.app-lab .check.pass .i { background: rgba(47, 224, 165, .16); color: var(--app-acc); }
.app-lab .check.fail .i { background: rgba(255, 107, 107, .16); color: #ff8b8b; }
.app-lab .gauge::before { background: #08111f; }
.app-lab .gauge { background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .08) 0); }
.app-lab .gauge b, .app-lab .report-top h3 { font-family: var(--mono); font-size: 22px; }
.app-lab .orbit { border-color: rgba(47, 224, 165, .2); border-top-color: var(--app-acc); }
.app-lab .err-box { background: rgba(255, 107, 107, .12); color: #ff9b9b; }

/* ---------- Fit Letter: stationery. Cream paper, ruled lines, violet ink ---------- */
.app-hiring { --app-bg: #f7f2e7; --app-bar: #f7f2e7; --app-ink: #1f2340; --app-acc: #5b34e0; --app-line: rgba(31, 35, 64, .12); --app-chip: rgba(91, 52, 224, .1); --app-title: italic 400 30px/1 var(--serif); --muted: #6c6a7e; --ink-2: #3a3d5c; }
.app-hiring .lede { font: 400 21px/1.35 var(--serif); color: var(--app-ink); }
.app-hiring .stack-form { position: relative; padding: 18px 16px 16px; background: #fffdf8; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 20px 40px -26px rgba(31, 35, 64, .5); border-top: 6px solid transparent; border-image: repeating-linear-gradient(90deg, #c8102e 0 14px, #fffdf8 14px 20px, #2346d6 20px 34px, #fffdf8 34px 40px) 6; }
.app-hiring label { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app-hiring input, .app-hiring textarea { background: transparent; border: 0; border-bottom: 1.5px solid var(--app-line); border-radius: 0; box-shadow: none; font: 400 16px var(--sans); color: var(--app-ink); padding-left: 2px; letter-spacing: 0; text-transform: none; }
.app-hiring textarea { border: 0; line-height: 28px; padding-top: 2px; background: repeating-linear-gradient(transparent 0 27px, rgba(91, 52, 224, .18) 27px 28px); background-attachment: local; }
.app-hiring input:focus, .app-hiring textarea:focus { box-shadow: none; border-color: var(--app-acc); }
.app-hiring .btn-primary { border-radius: 999px; padding: 10px 22px; }
.app-hiring .advice { background: #fffdf8; border-left-color: var(--app-acc); font-family: var(--serif); font-size: 18px; }

/* ---------- Settings: grouped cards on cool grey, a segmented switch ---------- */
.app-settings { --app-bg: #eceff3; --app-bar: #eceff3; --app-ink: #1c2230; --app-acc: #3b5bdb; --app-line: rgba(28, 34, 48, .08); --app-chip: #fff; --app-title: 800 26px/1 var(--sans); }
.app-settings .set-main h3 { font: 800 22px var(--sans); letter-spacing: -.01em; }
.app-settings .srows { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.app-settings .sys { background: #fff; border-radius: 20px; padding: 20px; }
.app-settings .wall-opt { background: #fff; border-radius: 16px; }
.app-settings .wall-opt.is-on .wall-sw { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--app-acc); }
.app-settings .st.on { color: #138a4a; font-weight: 700; }
.os-phone .app-settings .side { margin: 4px 16px 0; padding: 4px; gap: 4px; border: 0; border-radius: 14px; background: #dde2e9; }
.os-phone .app-settings .side-i { flex: 1; justify-content: center; border-radius: 10px; font-weight: 600; color: #4d5664; }
.os-phone .app-settings .side-i.is-on { background: #fff; color: var(--app-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* ---------- Mail: bright, blue, pill tabs ---------- */
.app-mail { --app-bg: #ffffff; --app-bar: #eef3ff; --app-ink: #10172a; --app-acc: #2346d6; --app-line: rgba(35, 70, 214, .12); --app-chip: #fff; --app-title: 800 24px/1 var(--sans); }
.app-mail .badge { background: var(--app-acc); }
.app-mail .msg-head { border-color: var(--app-line); }
.app-mail .msg h3 { font: 800 22px/1.2 var(--sans); letter-spacing: -.01em; }
.app-mail .avatar { background: #2346d6; box-shadow: none; }
.os-phone .app-mail .mail-side { background: #eef3ff; border-color: var(--app-line); gap: 8px; }
.os-phone .app-mail .mail-side nav button { border-radius: 999px; padding: 6px 12px; background: #fff; }
.os-phone .app-mail .mail-side nav button.is-on { background: var(--app-acc); color: #fff; }
.os-phone .app-mail .mail-new { border-radius: 999px; }

/* ---------- Terminal: a green phosphor screen ---------- */
.app-terminal { --app-bg: #0b120e; --app-bar: #0b120e; --app-ink: #b8ffd0; --app-acc: #57f29a; --app-line: rgba(87, 242, 154, .18); --app-chip: rgba(87, 242, 154, .1); --app-title: 600 16px/1 var(--mono); }
.app-terminal .sheet-body, .win.app-terminal .win-body { background: #0b120e; }
.os-phone .app-terminal .term { color: #b8ffd0; text-shadow: 0 0 6px rgba(87, 242, 154, .35); background-image: repeating-linear-gradient(rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); min-height: 100%; }
.os-phone .app-terminal .term .ps { color: #57f29a; }

/* ---------- Browser: warm and plain, so the sites inside stand out ---------- */
.app-browser { --app-bg: #fff; --app-bar: #fff1e6; --app-ink: #2b1a12; --app-acc: #ff5f3d; --app-line: rgba(255, 95, 61, .18); --app-chip: #fff; --app-title: 700 20px/1 var(--sans); }
.os-phone .app-browser .br-bar { background: #fff1e6; border-color: var(--app-line); }
.os-phone .app-browser .br-url { border-radius: 999px; }
.app-browser .br-start { background: radial-gradient(80% 60% at 50% 0%, #ffe6d8, #fff 70%); }

/* ---------- phone: Projects as a list of big cards ---------- */
.os-phone .app-projects .files { grid-template-columns: 1fr; gap: 10px; }
.os-phone .app-projects .file { grid-template-columns: 64px 1fr auto; justify-items: start; align-items: center; gap: 14px; padding: 12px; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid var(--app-line); }
.os-phone .app-projects .file .ic svg { width: 64px; height: 64px; }
.os-phone .app-projects .file b { font-size: 16px; margin: 0; }
.os-phone .app-projects .file-go { display: block; font-style: normal; color: var(--app-acc); font-size: 18px; }
.br-books i.has-logo, .br-tiles i.has-logo { overflow: hidden; background: #fff; }
.has-logo img { width: 100%; height: 100%; object-fit: cover; }
