.toolbox-content {
    --ink: #101a30;
    --muted: #465d7a;
    --line: #dce5f2;
    color: var(--ink);
    background: #f3f7fd;
    font: 15px/1.45 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
.toolbox-content * { box-sizing: border-box; }
.toolbox-content a { color: inherit; text-decoration: none; }
.toolbox-content button, .toolbox-content textarea { font: inherit; }
.toolbox-content a:focus-visible, .toolbox-content button:focus-visible, .toolbox-content textarea:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.toolbox-content [hidden] { display: none !important; }
.toolbox-wrap { width: min(90%, 1296px); margin-inline: auto; }
.toolbox-languages { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.toolbox-languages a { padding: 5px 10px; border-radius: 28px; }
.toolbox-languages a[aria-current] { background: #e4edfb; color: #125cce; font-weight: 700; }
.toolbox-main { padding: 16px 0 36px; }
.toolbox-hero {
    min-height: 203px; border-radius: 30px; padding: 34px; color: white;
    background: linear-gradient(123deg, #0e1727 0%, #186ee9 48%, #6c92c5 100%);
    box-shadow: 0 23px 49px #1027492b;
    display: flex; gap: 22px; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.toolbox-hero-generator { min-height: 196px; background: linear-gradient(123deg, #10182b, #204cce 52%, #1ba854 100%); }
.toolbox-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.1vw, 46px); font-weight: 820; line-height: 1.13; overflow-wrap: anywhere; }
.toolbox-hero p { margin: 0; max-width: 850px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; }
.toolbox-hero a:focus-visible { outline-color: #fff; }
.toolbox-pill { display: inline-block; background: #ffffff30; padding: 6px 13px; border-radius: 99px; font-size: 13px; margin-bottom: 13px; }
.toolbox-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.toolbox-card, .toolbox-panel {
    border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 30px #152e5410;
    border-radius: 24px;
}
.toolbox-card { display: flex; min-height: 134px; gap: 16px; align-items: flex-start; padding: 22px; transition: border-color .2s, transform .2s; }
.toolbox-card:hover { border-color: #8bb8fa; transform: translateY(-2px); }
.toolbox-card strong { display: block; margin-bottom: 6px; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.toolbox-card strong + span { display: block; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.toolbox-icon { display: grid; place-items: center; width: 66px; height: 66px; flex: 0 0 66px; border-radius: 21px; background: #e1f1fc; font-size: 26px; box-shadow: 0 14px 23px #146f611f; }
.toolbox-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,300px); gap: 24px; align-items: start; }
.toolbox-panel { padding: 26px; }
.toolbox-panel h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.toolbox-intro { color: var(--muted); line-height: 1.6; margin: 0 0 22px; white-space: pre-line; }
.toolbox-generator-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.toolbox-well { min-width: 0; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: #f5f8fc; }
.toolbox-well label, .toolbox-clock strong { display: block; font-size: 14px; font-weight: 750; }
.toolbox-well textarea {
    width: 100%; min-height: 160px; margin: 9px 0 12px; resize: vertical; padding: 13px 15px;
    border: 1px solid #cad9ef; border-radius: 16px; color: #162b48; background: white; line-height: 1.5;
}
.toolbox-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbox-button {
    display: inline-flex; justify-content: center; align-items: center; width: max-content;
    border: 0; border-radius: 26px; padding: 11px 17px; min-height: 42px; color: var(--ink);
    font-size: 14px; font-weight: 650; background: transparent; cursor: pointer; white-space: nowrap;
}
.toolbox-button:hover { filter: brightness(.95); background-color: #ebf1f9; }
.toolbox-button-primary, .toolbox-button-primary:hover { background: #2563eb; color: white; }
.toolbox-button-soft, .toolbox-button-soft:hover { color: #1d4ed8; background: #eaf2ff; }
.toolbox-button-white, .toolbox-button-white:hover { background: white; }
.toolbox-content a.toolbox-button-white { color: var(--ink); }
.toolbox-button:disabled { opacity: .5; cursor: default; }
.toolbox-note, .toolbox-status { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 9px 0 0; }
.toolbox-status { color: #126c51; }
.toolbox-status:empty { margin: 0; }
.toolbox-status.is-problem { color: #a52132; }
.toolbox-clock { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.toolbox-clock span { border-radius: 20px; padding: 5px 10px; color: #06705d; background: #e5faf8; font: 700 13px ui-monospace, monospace; }
.toolbox-empty { color: var(--muted); text-align: center; padding: 22px 10px; border: 1px solid var(--line); border-radius: 18px; margin: 0; line-height: 1.55; }
.toolbox-detail-totp { grid-template-columns: minmax(0,1fr); }
.toolbox-detail-totp .toolbox-more {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: 8px;
}
.toolbox-detail-totp .toolbox-more h2 { grid-column: 1 / -1; }
.toolbox-detail-totp .toolbox-more a { margin-top: 0; }
[data-toolbox-totp] { padding: clamp(18px, 2.8vw, 30px); }
[data-toolbox-totp] h2 { font-size: clamp(23px, 2.8vw, 30px); }
[data-toolbox-totp] .toolbox-generator-grid { gap: clamp(12px, 1.6vw, 18px); }
[data-toolbox-totp] .toolbox-well { background: #f5f7fa; }
[data-toolbox-totp] textarea:focus { outline: 2px solid #66a5ff; outline-offset: 0; box-shadow: 0 0 0 5px #dbeafe; }
[data-toolbox-totp] .toolbox-clock { margin-bottom: 20px; }
[data-toolbox-totp] [data-results] {
    display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,188px),220px)); gap: 12px;
}
.toolbox-result { border: 1px solid var(--line); border-radius: 20px; min-width: 0; padding: 15px 16px; }
.toolbox-result-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.toolbox-result-label { min-width: 0; overflow-wrap: anywhere; }
.toolbox-code {
    display: block; margin: 6px 0 12px; font: 800 clamp(24px,3.1vw,35px)/1.2 ui-monospace, monospace;
    font-variant-numeric: tabular-nums; letter-spacing: .08em;
}
.toolbox-code[data-digits="8"] { font-size: clamp(22px,2.1vw,28px); letter-spacing: .04em; }
.toolbox-result-time { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.toolbox-result .toolbox-button { min-height: 34px; padding: 5px 12px; font-size: 14px; }
.toolbox-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #d9e7fb; }
.toolbox-progress-fill {
    display: block; height: 100%; background: linear-gradient(90deg,#2563eb,#19c56b);
    transform: scaleX(0); transform-origin: left;
}
.toolbox-more { padding: 22px; }
.toolbox-more h2 { font-size: 19px; }
.toolbox-more a { display: block; margin-top: 8px; padding: 12px 14px; background: #f5f8fc; border-radius: 15px; font-size: 14px; overflow-wrap: anywhere; }
.toolbox-more a:hover, .toolbox-more a[aria-current] { background: #dbeafe; color: #1749c2; }
.toolbox-more a[aria-current] { font-weight: 700; }
@media (max-width: 1120px) {
    .toolbox-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .toolbox-detail { grid-template-columns: minmax(0,1fr) 230px; gap: 16px; }
    .toolbox-detail-totp { grid-template-columns: minmax(0,1fr); }
    .toolbox-panel { padding: 18px; }
}
@media (max-width: 860px) {
    .toolbox-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .toolbox-detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .toolbox-main { padding-top: 15px; }
    .toolbox-hero { padding: 22px; min-height: 0; border-radius: 20px; margin-bottom: 17px; flex-direction: column; align-items: flex-start; }
    .toolbox-cards, .toolbox-generator-grid { grid-template-columns: 1fr; gap: 13px; }
    .toolbox-card { padding: 17px; min-height: 100px; }
    .toolbox-icon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 17px; }
    .toolbox-panel, .toolbox-well { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .toolbox-card { transition: none; }
    .toolbox-card:hover { transform: none; }
}
