:root {
  color-scheme: dark;
  --bg: #101113; --card: #191b1e; --ink: #f0efec; --muted: #95989f;
  --line: #2c2e33; --crimson: #eb3153; --cyan: #5cd9ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
.page-shell { width: min(1216px, calc(100% - 80px)); margin: 0 auto; }
.topbar { height: 90px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; color: #101113; background: #eeede8; font: 800 25px "Barlow Condensed", sans-serif; letter-spacing: -3px; padding-right: 3px; transform: skew(-8deg); }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.brand small { color: #8a8c93; font-size: 9px; letter-spacing: .15em; }
.topbar-right { display: flex; align-items: center; gap: 28px; }
.secure-note { display: flex; align-items: center; gap: 8px; color: #a8aaa7; font-size: 9px; letter-spacing: .09em; }
.secure-dot, .live-dot { width: 5px; height: 5px; border-radius: 50%; background: #a9ccab; box-shadow: 0 0 8px #a9ccab33; }
.text-button { border: 0; padding: 10px 0; color: #92959b; background: none; font-size: 11px; }
.text-button:hover { color: white; }
.eyebrow { color: #979a9f; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.dashboard { padding: 42px 0 24px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.welcome-row h1 { margin: 9px 0 6px; font: 800 clamp(36px, 5vw, 60px)/.98 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.01em; }
.welcome-row h1 > span { color: var(--crimson); }
.welcome-copy { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.date-chip { display: flex; align-items: center; gap: 11px; border-left: 1px solid #36383b; padding: 4px 0 4px 19px; }
.date-chip > span:last-child { display: grid; gap: 5px; }
.date-chip small { color: #858a92; font-size: 8px; letter-spacing: .12em; }
.date-chip strong { font-size: 12px; font-weight: 500; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.section-heading > span, .section-heading p { margin: 5px 0 0; color: #8f929a; font-size: 10px; }
.timer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.timer-card { --cursor-x: 50%; --cursor-y: 50%; isolation: isolate; position: relative; min-width: 0; overflow: hidden; padding: 23px 25px 0; }
.timer-card > :not(.world-art, .nen-aura, .ink-stroke, .mechanism, .armor) { position: relative; z-index: 2; }
.world-art { position: absolute; pointer-events: none; z-index: -1; }
.world-art svg { width: 100%; height: 100%; }
.world-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: .1em; font-weight: 600; }
.world-identity { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.world-kicker { font-size: 8px; letter-spacing: .22em; font-weight: 600; }
.world-name { margin: 1px 0 0; text-transform: uppercase; }
.world-seal { flex: 0 0 auto; }
.world-seal svg { width: 100%; height: 100%; }
.world-caption { font-size: 11px; }
.timer-display { margin-top: 26px; }
.display-heading, .display-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.display-heading { font-size: 8px; letter-spacing: .12em; }
.person-status { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .04em; }
.person-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; }
.person-status .person-dot { background: #7d7f86; }
.person-status.is-running .person-dot { background: #8de7ac; box-shadow: 0 0 8px #8de7ac88; animation: signal-pulse 2s ease-in-out infinite; }
.person-status.is-running { color: #a7efbc; }
.timer-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.display-bottom { font-size: 9px; }
.today-total { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.today-total strong { color: #eee; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.timer-actions { display: flex; gap: 10px; margin: 20px 0 24px; }
.action-button { min-width: 0; flex: 1; min-height: 45px; border: 1px solid transparent; padding: 10px 12px; font-size: 11px; font-weight: 700; transition: transform .25s, box-shadow .25s, background .25s; }
.action-button:active { transform: translateY(2px); }
.world-footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; font-size: 7px; letter-spacing: .12em; font-weight: 600; }
/* Matteo: printed manga panel, ink, spider and Nen. */
.matteo.timer-card { border: 1px solid #60303d; border-radius: 2px; color: #eee6e7; background: radial-gradient(ellipse at 90% 10%, #50122266, transparent 65%), #170e13; box-shadow: inset 5px 0 #ca2544; animation: manga-reveal .8s cubic-bezier(.2,.65,.2,1) both; }
.matteo.timer-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(#d7c4c422 .7px, transparent .7px); background-size: 5px 5px; mask-image: linear-gradient(125deg, transparent 38%, #000); }
.matteo.timer-card::after { content: ""; position: absolute; pointer-events: none; inset: 7px; z-index: 4; border: 1px solid #e8b7c015; clip-path: polygon(0 0, 55% 0, 55% 1%, 1% 1%, 1% 100%, 0 100%, 0 0, 100% 80%, 100% 100%, 65% 100%, 65% 99%, 99% 99%, 99% 80%); }
.matteo .world-art { width: 270px; height: 320px; top: 8px; right: -44px; color: #af1e3c; opacity: .17; transform: rotate(16deg); }
.matteo .world-topline { color: #e0667b; border-bottom: 1px solid #90324760; padding-bottom: 13px; }
.matteo .world-topline > span:last-child { font-size: 18px; line-height: 1; }
.matteo .world-kicker { color: #d46a7d; }
.matteo .world-name { color: #f5f0e9; font: 800 clamp(60px, 7vw, 88px)/.95 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.025em; transform: skew(-6deg); text-shadow: 3px 3px 0 #b71e3d; }
.matteo .world-seal { width: 51px; height: 67px; color: #ee4463; transform: rotate(-8deg); }
.matteo .world-caption { display: inline-block; margin: 10px 0 0; padding: 5px 11px; color: #e8e0dc; background: #e1d1cc0c; border-left: 2px solid var(--crimson); font-style: italic; transform: skew(-4deg); }
.matteo .timer-display { padding: 18px 16px; border: 1px solid #623142; background: #100b10c4; box-shadow: 4px 4px 0 #b71e3d22; transform: rotate(-.65deg); }
.matteo .display-heading { color: #b58e9b; }
.matteo .timer-value { margin: 9px 0 12px; color: #f5eeee; font: 700 clamp(43px, 5.8vw, 68px)/1.04 "Barlow Condensed", Impact, sans-serif; letter-spacing: .025em; }
.matteo .display-bottom { color: #b693a0; }
.matteo .action-button { position: relative; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; transform: skew(-5deg); }
.matteo .action-button.primary { color: #fff5f4; background: #cb2849; border-color: #eb4b68; box-shadow: 4px 4px 0 #080709; }
.matteo .action-button.primary:hover { background: #ed355b; box-shadow: 6px 6px 0 #080709, 0 0 24px #df285433; transform: skew(-5deg) translate(-1px, -1px); }
.matteo .action-button.secondary { background: #35202b; border-color: #754254; color: #f3d6de; }
.matteo .action-button.finish { background: #190d14; border-color: #754254; color: #e993a7; }
.matteo .world-footer { color: #a97082; border-top: 1px solid #613043; font-family: "Barlow Condensed", sans-serif; font-size: 10px; letter-spacing: .1em; }
.nen-aura { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; background: radial-gradient(180px circle at var(--cursor-x) var(--cursor-y), #ff245834, #b9003a13 45%, transparent 72%); transition: opacity .5s; mix-blend-mode: screen; }
.matteo:hover .nen-aura { opacity: 1; }
.ink-stroke { position: absolute; height: 12px; width: 73%; top: 166px; left: 0; z-index: -1; background: #ab183b; transform: rotate(-5deg); clip-path: polygon(0 24%, 79% 0, 100% 24%, 91% 46%, 100% 61%, 60% 90%, 0 100%); animation: ink-draw 1.2s .2s both; opacity: .55; }
.matteo.state-running { box-shadow: inset 5px 0 #ee3155, 0 0 30px #da234b0c; }
.matteo.state-running .world-seal { animation: nen-breathe 3s ease-in-out infinite; }
@media (hover: hover) {
  .matteo .world-identity:hover .world-name { animation: manga-glitch .45s steps(2, end) 1; }
}
/* Sam: layered metallic chassis, blue optics, mechanical movements. */
.sam.timer-card { color: #e1edf6; border: 1px solid #52606c; border-radius: 13px 2px 13px 2px; background: repeating-linear-gradient(0deg, #c6e5fa03 0, #c6e5fa03 1px, transparent 1px, transparent 3px), linear-gradient(145deg, #38434d 0, #202932 34%, #182029 71%, #29353e); box-shadow: inset 0 2px 0 #b7d1e71c, inset 0 -3px 0 #0b1018, 0 5px 16px #0002; font-family: "Chakra Petch", "Trebuchet MS", sans-serif; animation: chassis-assemble .85s cubic-bezier(.16,.75,.25,1) .12s both; }
.sam.timer-card::before { content: ""; position: absolute; inset: 9px; pointer-events: none; border: 1px solid #a2c1dc16; border-radius: 6px 0 6px 0; background: radial-gradient(circle at 3px 3px, #91a4b3 0 1px, #0f1923 1.5px 3px, transparent 3.5px) top left / 8px 8px no-repeat, radial-gradient(circle at 5px 3px, #91a4b3 0 1px, #0f1923 1.5px 3px, transparent 3.5px) top right / 8px 8px no-repeat, radial-gradient(circle at 3px 5px, #91a4b3 0 1px, #0f1923 1.5px 3px, transparent 3.5px) bottom left / 8px 8px no-repeat, radial-gradient(circle at 5px 5px, #91a4b3 0 1px, #0f1923 1.5px 3px, transparent 3.5px) bottom right / 8px 8px no-repeat; }
.sam .world-topline { color: #a5b9ca; font-size: 8px; padding: 1px 0 13px; border-bottom: 1px solid #91c8ec36; }
.sam .world-topline > span:last-child { color: #68d6f8; font-size: 10px; }
.sam .world-identity { margin-top: 27px; }
.sam .world-kicker { color: #65caed; font-size: 8px; letter-spacing: .11em; }
.sam .world-name { margin-top: 3px; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: clamp(51px, 6vw, 72px); line-height: 1.06; letter-spacing: -.06em; color: #e1eaf0; text-shadow: 0 2px 0 #8999a8, 0 4px 0 #0e1822; }
.sam .world-seal { width: 67px; height: 70px; color: #78dcff; filter: drop-shadow(0 0 8px #50cfff44); transition: transform .5s, filter .5s; }
.sam:hover .world-seal { transform: translateY(-3px); filter: drop-shadow(0 0 12px #50cfff88); }
.sam .world-caption { color: #9eb6c7; font-size: 10px; margin-top: 12px; letter-spacing: .02em; }
.sam .world-art { top: -14px; right: 8px; width: 230px; height: 260px; color: #86c7e5; opacity: .045; }
.sam .timer-display { position: relative; padding: 18px 16px; border: 1px solid #437087; background: #09141de8; box-shadow: inset 0 0 24px #071019, 0 1px 0 #93b2c82b; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.sam .timer-display::after { content: ""; position: absolute; pointer-events: none; left: 0; right: 0; top: -20%; height: 15%; background: linear-gradient(transparent, #67d8ff0b, transparent); animation: scan-line 7s linear infinite; }
.sam .display-heading { color: #73c8e7; font-size: 8px; letter-spacing: .09em; }
.sam .timer-value { margin: 15px 0 14px; color: #b2ecff; font-size: clamp(34px, 4.6vw, 53px); line-height: 1.07; font-weight: 500; letter-spacing: .015em; text-shadow: 0 0 20px #67d8ff30; }
.sam .display-bottom { color: #8ba8b9; font-size: 8px; }
.sam .today-total strong { color: #b9eaff; font-size: 10px; }
.sam .action-button { font-family: "Chakra Petch", sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 1px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.sam .action-button.primary { background: linear-gradient(175deg, #82dcf4, #3ea6cc); border-color: #9aecff; color: #0c2938; box-shadow: inset 0 1px 0 #e7fbff; }
.sam .action-button.primary:hover { background: linear-gradient(175deg, #b3efff, #63c6e7); transform: translateY(-2px); }
.sam .action-button.secondary { background: linear-gradient(#3a505e, #263744); border-color: #668899; color: #d5effa; }
.sam .action-button.finish { background: #15232d; border-color: #627d8c; color: #b1ccdc; }
.sam .action-button.secondary:hover, .sam .action-button.finish:hover { background: #40596c; }
.sam .world-footer { color: #8fa9b9; border-top: 1px solid #94c5df2b; font-size: 7px; padding-top: 14px; }
.sam .world-footer > span:first-child { color: #9ac5d8; font-weight: 700; letter-spacing: .1em; }
.mechanism { position: absolute; pointer-events: none; width: 100px; height: 100px; right: -30px; top: 165px; opacity: .13; color: #98bad0; }
.gear { position: absolute; width: 100px; height: 100px; animation: gear-turn 36s linear infinite; }
.gear + .gear { width: 67px; height: 67px; top: 78px; right: 55px; animation-direction: reverse; animation-duration: 24s; }
.sam.state-running .gear { animation-duration: 14s; }.sam.state-running .gear + .gear { animation-duration: 9.4s; }
.armor { position: absolute; pointer-events: none; top: 68px; width: 18px; height: 90px; border: 1px solid #a7c5dc29; background: linear-gradient(90deg, #576979, #29333d); transition: transform .7s cubic-bezier(.15,.7,.2,1); }
.armor-left { left: -12px; transform: skewY(-25deg); }.armor-right { right: -12px; transform: skewY(25deg); }
.sam.state-running .armor-left { animation: armor-left-open .85s cubic-bezier(.15,.7,.2,1) both; }.sam.state-running .armor-right { animation: armor-right-open .85s cubic-bezier(.15,.7,.2,1) both; }
.sam.state-running .timer-display { border-color: #61c9ed; box-shadow: inset 0 0 24px #071019, 0 0 15px #3ea6cc18; }
.status-message { min-height: 16px; margin: 10px 0 0; color: #aaaeb3; font-size: 11px; }
.error-message { color: #ff8198; }
/* Shared ledger: calm and legible against the two worlds. */
.summary-section { margin-top: 30px; }
.summary-heading-row { margin-bottom: 19px; }
.summary-heading-row h2 { margin-top: 7px; font-size: 21px; font-weight: 600; letter-spacing: -.035em; }
.date-filter { display: flex; align-items: center; gap: 10px; color: #b8bac0; font-size: 10px; }
.date-filter input { height: 37px; border: 1px solid #41444a; border-radius: 5px; background: #1a1c20; padding: 0 10px; color: #e6e8eb; font-size: 11px; outline: none; }
.date-filter input:focus { border-color: #76bfd7; box-shadow: 0 0 0 3px #76bfd71a; }
.summary-stats { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 13px; margin-bottom: 17px; }
.summary-stat { display: flex; flex-direction: column; align-items: flex-start; min-height: 121px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #191b1e; }
.summary-stat.stat-total { background: #e5e4df; border-color: #e5e4df; color: #1b1d1f; }
.stat-label { display: flex; align-items: center; gap: 7px; color: #a0a2aa; font-size: 9px; font-weight: 650; letter-spacing: .07em; }
.stat-total .stat-label { color: #5d6162; }
.summary-stat > strong { margin-top: 12px; font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-stat > small { margin-top: 7px; color: #82868c; font-size: 9px; }
.stat-total > small { color: #686c6b; }
.stat-matteo { border-top: 2px solid #a82843; }.stat-sam { border-top: 2px solid #3b94b4; }
.dot-m { background: var(--crimson); }.dot-s { background: var(--cyan); }
.activity-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #17191c; }
.activity-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.activity-header h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; }.activity-header p { margin: 0; color: #8d9098; font-size: 10px; }
.subtle-label { color: #747982; font-size: 8px; letter-spacing: .1em; }
table { width: 100%; border-collapse: collapse; }
thead { background: #1c1e22; }
th { height: 35px; color: #838791; font-size: 8px; font-weight: 600; letter-spacing: .06em; text-align: left; }
td, th { padding: 0 20px; } td { height: 44px; border-top: 1px solid #292c31; color: #b5b8bf; font-size: 11px; font-variant-numeric: tabular-nums; }
td:first-child { color: #dfe0e3; }td:last-child { color: #eae9e4; font-weight: 650; }
.empty-state { min-height: 132px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding: 25px; text-align: center; }
.empty-state strong { color: #dddfe3; font-size: 12px; font-weight: 500; }.empty-state span { color: #8d929a; font-size: 10px; line-height: 1.6; }
.session-section { margin-top: 32px; }
.log-heading { align-items: center; }.log-heading h2 { font-size: 17px; }
.log-filters { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); background: #16181b; border-radius: 6px; }
.log-filters button { border: 0; border-radius: 3px; padding: 7px 10px; color: #969ba4; background: none; font-size: 10px; transition: background .2s, color .2s; }
.log-filters button:hover { color: #fff; }.log-filters button.is-active { background: #34373c; color: #f3f2ee; }
.session-list { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #17191c; }
.session-entry + .session-entry { border-top: 1px solid #2b2e33; }
.session-entry > summary { list-style: none; display: grid; grid-template-columns: 90px 1fr 75px 110px 15px; gap: 13px; align-items: center; min-height: 65px; padding: 15px 20px; cursor: pointer; transition: background .2s; }
.session-entry > summary::-webkit-details-marker { display: none; }
.session-entry > summary:hover { background: #202328; }
.session-person { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; }
.session-dates { color: #b5bac3; font-size: 10px; line-height: 1.6; }.session-dates > span { color: #848c98; }
.session-state { width: fit-content; padding: 3px 6px; color: #a3acb6; background: #292f36; border-radius: 3px; font-size: 9px; }
.session-state.state-running { color: #a6dfba; background: #20372a; }.session-state.state-paused { color: #e4c891; background: #3a3223; }
.session-duration { text-align: right; color: #e1e5eb; font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.expand-icon { color: #8f97a3; text-align: center; font-size: 18px; transition: transform .2s; }
.session-entry[open] .expand-icon { transform: rotate(45deg); }
.session-detail { padding: 4px 20px 20px; border-top: 1px solid #25292f; background: #131518; animation: details-reveal .25s ease-out both; }
.session-detail-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 0; font-size: 10px; color: #949ca8; }
.interval-list { padding: 0; margin: 0; list-style: none; }
.interval-list li { display: grid; grid-template-columns: 65px 1fr 110px; gap: 12px; align-items: center; padding: 9px 0; font-size: 10px; color: #b5bdc9; }
.interval-list li + li { border-top: 1px solid #252930; }
.interval-kind { color: #d1e1d7; }.interval-break { color: #8c909b !important; }.interval-break .interval-kind { color: #af9a76; }
.interval-list strong { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }.range-note { margin: 12px 0 0; color: #c1ad89; font-size: 10px; line-height: 1.6; }
.load-more { display: block; margin: 15px auto 0; background: #25292e; border: 1px solid #42474f; border-radius: 4px; color: #d2d7df; padding: 9px 15px; font-size: 11px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: #6e747e; font-size: 8px; letter-spacing: .07em; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: calc(100% - 40px); padding: 13px 18px; border: 1px solid #505761; border-radius: 5px; background: #292f38; color: #f1f3f6; box-shadow: 0 10px 25px #0005; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
/* Login blends the two worlds. */
.login-view { display: grid; place-items: center; min-height: calc(100vh - 90px); padding: 60px 0; }
.login-card { position: relative; overflow: hidden; width: min(510px, 100%); padding: 35px; border: 1px solid #34383f; background: linear-gradient(110deg, #32131e77, #162f3c55), #17191d; }
.login-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--crimson) 50%, var(--cyan) 50%); }
.login-worlds { display: flex; justify-content: space-between; margin-bottom: 30px; padding-bottom: 17px; border-bottom: 1px solid #ffffff13; color: #bd7185; font: 700 14px "Barlow Condensed", sans-serif; letter-spacing: .1em; }.login-worlds > span:last-child { color: #75c5df; font: 500 11px "Chakra Petch", sans-serif; }
.login-card h1 { margin: 15px 0; font: 800 56px/.95 "Barlow Condensed", Impact, sans-serif; }
.login-intro { color: #a0a1aa; font-size: 12px; line-height: 1.7; margin-bottom: 28px; }
#login-form label { display: block; margin-bottom: 8px; color: #c4c5cc; font-size: 11px; }
.password-row { display: flex; gap: 8px; }.password-row input { width: 100%; min-width: 0; flex: 1; height: 43px; padding: 0 11px; border: 1px solid #4a4c57; border-radius: 3px; outline: none; background: #0d1017; color: #fff; }
.password-row input:focus { border-color: #87c5df; box-shadow: 0 0 0 3px #87c5df19; }
.button { border: 1px solid #f5f0e2; border-radius: 3px; padding: 11px 13px; background: #e6e4dc; color: #1c1e24; font-size: 11px; font-weight: 650; }.button span { margin-left: 8px; }.button:hover { background: #fff; }
.form-message { min-height: 16px; margin: 8px 0 0; color: #ff8b9e; font-size: 11px; }
@keyframes manga-reveal { from { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transform: translateY(8px); } to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translateY(0); } }
@keyframes chassis-assemble { from { opacity: 0; transform: perspective(800px) rotateY(-6deg) translateY(12px); } to { opacity: 1; transform: perspective(800px) rotateY(0) translateY(0); } }
@keyframes ink-draw { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } to { clip-path: polygon(0 24%, 79% 0, 100% 24%, 91% 46%, 100% 61%, 60% 90%, 0 100%); } }
@keyframes manga-glitch { 0%,100% { transform: skew(-6deg); text-shadow: 3px 3px #b71e3d; } 25% { transform: skew(-9deg) translateX(-2px); text-shadow: 5px 0 #ff335a, -2px 0 #fff5; } 50% { transform: skew(-4deg) translateX(2px); text-shadow: -4px 2px #b71e3d; } }
@keyframes nen-breathe { 0%,100% { filter: drop-shadow(0 0 2px #e62d54); opacity: .8; } 50% { filter: drop-shadow(0 0 11px #e62d5488); opacity: 1; } }
@keyframes gear-turn { to { transform: rotate(360deg); } }
@keyframes armor-left-open { from { transform: translateX(12px) skewY(-25deg); } to { transform: translateX(-5px) skewY(-12deg); } }
@keyframes armor-right-open { from { transform: translateX(-12px) skewY(25deg); } to { transform: translateX(5px) skewY(12deg); } }
@keyframes scan-line { from { top: -20%; } to { top: 110%; } }
@keyframes signal-pulse { 50% { opacity: .5; } }
@keyframes details-reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 880px) { .timer-card { display: flex; flex-direction: column; }.timer-display { margin-top: auto; }.world-caption { margin-bottom: 24px !important; }.world-footer { margin-top: auto; } }
@media (max-width: 1050px) { .page-shell { width: calc(100% - 48px); }.timer-grid { gap: 16px; }.timer-card { padding: 21px 20px 0; }.world-seal { transform: scale(.85); }.world-topline { font-size: 8px; }.display-bottom { font-size: 8px; }.sam .display-bottom { font-size: 7px; } }
@media (max-width: 879px) { .page-shell { width: min(650px, calc(100% - 40px)); }.topbar { height: 76px; }.dashboard { padding-top: 30px; }.timer-grid { grid-template-columns: 1fr; gap: 22px; }.timer-card { padding: 24px 25px 0; }.world-identity { margin-top: 25px; }.matteo .world-name { font-size: 88px; }.sam .world-name { font-size: 76px; }.matteo .timer-value { font-size: 68px; }.sam .timer-value { font-size: 55px; }.sam .world-caption { margin-top: 15px; }.sam .display-bottom { font-size: 9px; }.world-caption { margin-bottom: 0; }.world-topline { font-size: 9px; }.sam .world-topline { font-size: 9px; }.timer-display { margin-top: 24px; }.world-seal { transform: none; }.matteo .world-seal { width: 61px; height: 77px; }.sam .world-seal { width: 75px; height: 75px; }.session-entry > summary { grid-template-columns: 75px 1fr 65px 105px 12px; gap: 8px; padding: 15px; }.session-detail { padding-right: 15px; padding-left: 15px; }.session-dates > span { display: block; } }
@media (max-width: 560px) { .page-shell { width: calc(100% - 30px); }.topbar-right { gap: 14px; }.secure-note { font-size: 0; gap: 0; }.brand strong { font-size: 11px; }.brand small { font-size: 8px; }.welcome-row { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 27px; }.welcome-row h1 { font-size: 47px; }.date-chip { padding: 0; border: 0; }.date-chip > span:last-child { display: flex; align-items: center; gap: 10px; }.date-chip small { font-size: 7px; }.date-chip strong { font-size: 10px; }.section-heading > span { max-width: 140px; margin: 0; font-size: 9px; text-align: right; line-height: 1.5; }.timer-card { padding: 21px 19px 0; }.matteo .world-name { font-size: 77px; }.sam .world-name { font-size: 66px; }.matteo .timer-value { font-size: 58px; }.sam .timer-value { font-size: 45px; }.display-bottom { font-size: 8px; }.sam .display-bottom { font-size: 7px; }.timer-actions { margin-top: 17px; }.world-footer { font-size: 6px; }.summary-heading-row { align-items: flex-start; }.summary-heading-row h2 { max-width: 200px; font-size: 19px; }.date-filter { flex-direction: column; align-items: flex-end; gap: 5px; font-size: 9px; }.date-filter input { width: 130px; font-size: 10px; }.summary-stats { grid-template-columns: 1fr 1fr; gap: 9px; }.summary-stat.stat-total { grid-column: 1 / -1; min-height: 100px; }.summary-stat { min-height: 107px; padding: 16px; }.summary-stat > strong { font-size: 25px; }.activity-header { padding: 0 14px; }.subtle-label { font-size: 6px; }td, th { padding: 0 11px; }td { font-size: 10px; }.log-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.log-filters { width: 100%; }.log-filters button { flex: 1; }.session-entry > summary { grid-template-columns: 1fr auto 15px; gap: 7px; padding: 13px; }.session-person { grid-column: 1; grid-row: 1; }.session-dates { grid-column: 1; grid-row: 2; font-size: 9px; }.session-dates > span { display: block; }.session-state { grid-column: 2; grid-row: 1; justify-self: end; }.session-duration { grid-column: 2; grid-row: 2; font-size: 11px; }.expand-icon { grid-column: 3; grid-row: 1 / 3; }.session-detail-heading { font-size: 9px; }.interval-list li { grid-template-columns: 40px 1fr; gap: 6px; font-size: 9px; }.interval-list strong { grid-column: 2; text-align: left; color: #ddd; }.page-footer { flex-direction: column; gap: 8px; font-size: 7px; }.login-card { padding: 26px 22px; }.login-card h1 { font-size: 50px; }.password-row { flex-direction: column; } }
@media (max-width: 360px) { .timer-card { padding: 18px 14px 0; }.world-topline, .sam .world-topline { font-size: 7px; }.matteo .world-name { font-size: 66px; }.sam .world-name { font-size: 57px; }.world-kicker, .sam .world-kicker { font-size: 7px; }.matteo .world-seal { width: 45px; height: 62px; }.sam .world-seal { width: 58px; height: 65px; }.timer-display { padding: 15px 12px !important; }.matteo .timer-value { font-size: 51px; }.sam .timer-value { font-size: 39px; }.display-bottom { align-items: flex-start; gap: 8px; }.display-bottom > span:first-child { max-width: 120px; }.today-total { gap: 4px; }.today-total strong { font-size: 10px; }.sam .world-footer { font-size: 6px; }.summary-heading-row h2 { max-width: 150px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }.nen-aura { display: none; } }

/* Compact personal workspace. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.topbar { height: 62px; }
.header-date { color: #a4a9b1; font-size: 12px; }
.dashboard { padding: 24px 0 36px; }
.timer-card { padding-bottom: 20px; }
.world-identity, .sam .world-identity { margin-top: 0; margin-bottom: 22px; }
.matteo .world-name { font-size: 68px; }
.sam .world-name { font-size: 60px; }
.matteo .world-seal { width: 46px; height: 60px; }
.sam .world-seal { width: 62px; height: 62px; }
.timer-display, .matteo .timer-display, .sam .timer-display { margin-top: 0; }
.display-heading { justify-content: flex-end; }
.display-bottom { justify-content: flex-end; }
.timer-actions { margin-bottom: 0; }
.ink-stroke { top: 82px; }
.mechanism { top: 100px; }
.armor { top: 30px; }
.status-message:empty { display: none; }
.summary-section { margin-top: 26px; }
.summary-heading-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.date-filter { flex-direction: row; align-items: center; }
.summary-stat, .summary-stat.stat-total { min-height: 90px; padding: 16px 19px; }
.activity-header { min-height: 45px; }
.activity-header h2 { margin: 0; font-size: 13px; font-weight: 600; }
.session-section { margin-top: 24px; }
.log-heading { flex-direction: row; align-items: center; }
.log-heading h2 { font-size: 14px; }
.log-filters { width: auto; }
.empty-state { min-height: 80px; }
.login-view { min-height: calc(100vh - 62px); }
.login-card { max-width: 410px; }
.login-card h1 { margin: 0 0 24px; font-size: 40px; }
/* Matteo's tattoo and printed manga panel. */
.matteo.timer-card {
  background: linear-gradient(145deg, #251017 0 43%, #100c10 43% 100%);
  border: 2px solid #080709;
  box-shadow: inset 4px 0 #d22b4b, 0 0 0 1px #79404b;
}
.matteo.timer-card::before {
  background-image: radial-gradient(#e7c8c02e 1px, transparent 1.2px);
  background-size: 4px 4px;
  mask-image: linear-gradient(125deg, transparent 30%, #000 75%);
}
.matteo.timer-card::after {
  inset: 8px;
  border: 1px solid #d6b8ae35;
  clip-path: polygon(0 0, 100% 0, 100% 22%, 99.5% 22%, 99.5% .5%, .5% .5%, .5% 100%, 0 100%, 0 0);
}
.matteo .world-seal {
  width: 73px;
  height: 82px;
  margin: -10px -3px -10px 0;
  color: #ee3152;
  transform: rotate(-9deg);
  filter: drop-shadow(2px 3px 0 #070609);
}
.matteo .world-art {
  width: 244px;
  height: 279px;
  top: -30px;
  right: 10px;
  opacity: .15;
  color: #d13751;
  transform: rotate(12deg);
}
.matteo .world-name {
  text-shadow: 3px 3px #a51d37, -1px -1px #0b080a;
  -webkit-text-stroke: .6px #100b0e;
}
.matteo .timer-display {
  background: linear-gradient(165deg, #f1e8dc 0, #e0d5c6 100%);
  border: 3px solid #080709;
  box-shadow: 5px 5px 0 #070608;
  transform: rotate(-1deg);
}
.matteo .timer-value { color: #150d12; text-shadow: 1px 1px #fff8; }
.matteo .display-heading, .matteo .display-bottom { color: #5f3d47; }
.matteo .today-total strong { color: #27131c; }
.matteo .person-status.is-running { color: #7e1932; }
.matteo .person-status.is-running .person-dot { background: #ba2340; box-shadow: 0 0 6px #ba234044; }
.matteo .ink-stroke { top: 87px; height: 10px; opacity: .85; }
.matteo .action-button { border: 2px solid #080709; box-shadow: 3px 3px 0 #070608; }
@media (max-width: 360px) {
  .matteo .world-name { font-size: 59px; }
  .sam .world-name { font-size: 53px; }
  .matteo .world-seal { width: 63px; height: 74px; }
}
