.tools-page { min-height: 70vh; }
.tools-wrap { max-width: 1180px; margin: 0 auto; padding: 48px 32px 80px; }
.public-site .tools-head h1 { margin: 0 0 12px; font-size: 48px; line-height: 1.12; font-weight: 700; }
.workspace .tools-head h1 { margin: 8px 0 8px; font-size: 28px; line-height: 1.2; }
.tools-head p { color: #b0b3bc; max-width: 640px; font-size: 15px; line-height: 1.7; margin: 0; }
.tools-nav { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border-bottom: 1px solid #36393f; }
.tools-nav-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent;
    background: transparent; color: #c1c5ce; text-decoration: none; font-size: 13px;
}
.tools-nav-link.active, .tools-nav-link:hover { color: #fac0d1; border-bottom-color: #e994ab; }
.tools-panel { padding-top: 28px; }
.tools-card h2 { margin: 0 0 14px; font-size: 18px; }
.tools-muted { color: #b0b3bc; font-size: 13px; line-height: 1.6; }
.tools-board, .tools-clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #36393f; border-left: 1px solid #36393f; }
.tools-clocks .tools-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.workspace .tools-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools-board-card, .tools-tile {
    display: flex; flex-direction: column; gap: 8px; padding: 22px;
    border-right: 1px solid #36393f; border-bottom: 1px solid #36393f;
    color: inherit; text-decoration: none; background: transparent; min-width: 0;
}
.tools-board-card:hover, .tools-tile:hover { background: #1d1f23; }
.tools-board-top { display: flex; justify-content: space-between; color: #9298a5; font-size: 11px; }
.tools-board-top i { color: #efa4ba; font-size: 26px; }
.tools-board-card h2 { margin: 18px 0 0; font-size: 18px; }
.tools-board-card p { margin: 0 0 18px; color: #aeb3bd; font-size: 13px; line-height: 1.7; }
.tools-board-link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #d1d4dc; }
.tools-board-link code { color: #efa4ba; background: #30252b; border-radius: 4px; padding: 2px 6px; }
.tools-form, .tools-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.tools-form label { display: grid; gap: 6px; font-size: 12px; color: #b0b3bc; }
.tools-form input, .tools-form select, .tools-form textarea, .tools-screen input {
    min-height: 44px; border-radius: 6px; border: 1px solid #44474e; background: #191a1d; color: #f4f4f5; padding: 0 12px; font: inherit;
}
.tools-form textarea { min-height: 96px; padding: 12px; width: min(100%, 640px); resize: vertical; }
.tools-form input[type="date"], .tools-form input[type="time"] { width: 180px; }
.tools-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tools-chip, .tools-key {
    min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #44474e;
    background: #191a1d; color: #f4f4f5; cursor: pointer; font: inherit; font-size: 13px;
}
.tools-chip:hover, .tools-key:hover { border-color: #e994ab; }
span.tools-chip { cursor: default; }
.tools-hero-clock { padding: 8px 0 22px; border-bottom: 1px solid #36393f; margin-bottom: 18px; }
.tools-hero-clock p { margin: 0 0 8px; color: #b0b3bc; }
.tools-hero-clock strong, .tools-tile strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.tools-hero-clock strong { display: block; font-size: 56px; line-height: 1.05; letter-spacing: 0; color: #f4f4f5; }
.tools-tile strong { font-size: 22px; }
.tools-tile span { color: #b0b3bc; font-size: 13px; }
.tools-group-label { margin: 22px 0 0; font-size: 13px; color: #efa4ba; }
.tools-code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
.tools-code-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #2e3035; }
.tools-code-row strong { display: block; font-size: 13px; }
.tools-preview { color: #f4f4f5; }
.tools-error { color: #fecaca; }
.tools-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
.tools-dow { text-align: center; color: #8b909a; font-size: 12px; }
.tools-day {
    min-height: 68px; border-radius: 6px; border: 1px solid #2e3035; background: #151618; color: #f4f4f5;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    cursor: pointer; font: inherit; padding: 4px;
}
.tools-day-empty { border-color: transparent; background: transparent; }
.tools-day.is-today { border-color: #e994ab; }
.tools-day.is-selected { background: #382a31; }
.tools-day small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #efa4ba; font-size: 10px; }
.tools-events { display: grid; gap: 0; margin: 8px 0 18px; }
.tools-event { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #2e3035; }
.tools-signin { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid #36393f; }
.tools-signin p { margin: 0; color: #b0b3bc; }
.tools-screen { border: 1px solid #36393f; border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; background: #151618; }
.tools-screen input { width: 100%; border: 0; background: transparent; font-size: 18px; padding: 0; min-height: 32px; }
.tools-screen output { display: block; margin-top: 8px; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tools-keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 440px; margin: 14px 0; }
.tools-key { border-radius: 6px; min-height: 48px; }
.tools-key.is-wide { grid-column: span 2; }
.tools-history { display: grid; gap: 4px; margin-top: 8px; }
.tools-chat { display: grid; gap: 10px; max-height: 420px; overflow: auto; margin-bottom: 14px; min-height: 120px; }
.tools-chat[hidden] { display: none; }
.tools-bubble { border-radius: 8px; padding: 12px 14px; background: #222428; white-space: pre-wrap; max-width: 70ch; }
.tools-bubble.user { background: #382a31; }
.tools-empty { color: #8b909a; font-size: 13px; }
.tools-identity { display: flex; gap: 16px; align-items: center; margin: 8px 0 16px; }
.tools-identity h2 { margin: 0; font-size: 28px; }
.tools-avatar { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.tools-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #36393f; border-left: 1px solid #36393f; margin: 8px 0 16px; }
.tools-stat { padding: 14px 16px; border-right: 1px solid #36393f; border-bottom: 1px solid #36393f; }
.tools-stat span { display: block; color: #8b909a; font-size: 12px; margin-bottom: 4px; }
.tools-stat strong { font-size: 18px; font-weight: 600; }
.tools-form :is(button, input, textarea):disabled { opacity: 0.45; cursor: not-allowed; }
.tools-app :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #efa4ba; outline-offset: 3px; }
@media (max-width: 800px) {
    .tools-wrap { padding: 32px 20px 64px; }
    .public-site .tools-head h1, .tools-hero-clock strong { font-size: 36px; }
    .tools-board, .workspace .tools-board, .tools-stats { grid-template-columns: 1fr; }
    .tools-clocks { grid-template-columns: 1fr 1fr; }
    .tools-form, .tools-row, .tools-signin { display: grid; }
    .tools-form input[type="date"], .tools-form input[type="time"] { width: 100%; }
    .tools-code-row { grid-template-columns: 1fr; }
    .tools-day { min-height: 48px; }
    .tools-day small { display: none; }
}
