:root {
    color-scheme: light;
    --accent: #007aff;
    --accent-dark: #0066d6;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: #e7e7ea;
    --danger: #c9342f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }

:focus-visible {
    outline: 3px solid rgb(0 122 255 / 25%);
    outline-offset: 2px;
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 25px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.5px;
    text-decoration: none;
}

.brand:hover { color: var(--ink); }
.brand-mark, .account-logo {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 10px;
}
.brand-mark { width: 32px; height: 32px; }
.brand-mark svg { width: 16px; height: 16px; }
.brand-mark path, .account-logo path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-actions, .profile-link { display: flex; align-items: center; }
.header-link {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.profile-link { gap: 9px; color: var(--ink); text-decoration: none; }
.profile-link:hover { color: var(--ink); }
.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #62aaff, #7468e8);
    font-size: 13px;
    font-weight: 700;
}
.profile-copy { display: grid; line-height: 1.25; }
.profile-copy strong { max-width: 240px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 11px; }

.account-page {
    min-height: calc(100vh - 65px);
    padding: 52px 24px 72px;
    background: radial-gradient(ellipse at 50% 0%, #eef5ff 0, #fff 64%);
}
.account-panel {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}
.account-logo {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
    border-radius: 16px;
}
.account-logo svg { width: 16px; height: 16px; }
.account-panel h1 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.8px;
}
.account-panel h2 { margin: 24px 0 10px; font-size: 18px; }
.account-panel > p, .account-panel form + p { color: var(--muted); text-align: center; }
.account-panel .auth-intro {
    max-width: 300px;
    margin: 0 auto 24px;
    font-size: 13px;
}
.account-panel .auth-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.account-panel form { display: grid; gap: 14px; margin-top: 24px; }
.account-panel form p { display: grid; gap: 7px; margin: 0; }
.account-panel .form-field { display: grid; gap: 7px; }
.account-panel form p:has(> input[type="checkbox"]),
.account-panel form p:has(> input[type="radio"]) {
    display: flex;
    align-items: center;
    gap: 9px;
}
.account-panel label { color: #65656f; font-size: 12px; font-weight: 400; }
.account-panel input[type="checkbox"],
.account-panel input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
}
.account-panel .checkbox-field {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 9px;
    cursor: pointer;
}
.account-panel input:not([type="checkbox"]):not([type="radio"]),
.account-panel select,
.account-panel textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7d9df;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
    font-size: 13px;
}
.account-panel input:focus, .account-panel select:focus, .account-panel textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgb(0 122 255 / 12%);
}
.account-panel button {
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--accent);
    font-weight: 500;
    cursor: pointer;
}
.account-panel button:hover { background: var(--accent-dark); }
.account-panel form a { font-size: 13px; }
.auth-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
    font-size: 13px;
}
.auth-links a { text-decoration: none; }
.account-panel ul { padding-left: 20px; }
.account-panel .helptext { color: var(--muted); font-size: 12px; }
.account-panel .password-help {
    color: var(--muted);
    font-size: 12px;
}
.account-panel .password-help ul { margin: 0; }
.account-panel .password-help:empty { display: none; }
.account-panel .errorlist { margin: 0; color: var(--danger); font-size: 12px; }
.account-panel table { width: 100%; border-collapse: collapse; }
.account-panel th, .account-panel td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.account-panel th { color: var(--muted); font-size: 12px; }
.messages { margin-bottom: 18px; }
.message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #315f3c;
    background: #edf8ef;
    font-size: 13px;
}
.message.error { color: #8a2c28; background: #fff0ef; }

.workspace {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    min-height: calc(100vh - 67px);
}
.sidebar { padding: 24px 13px; border-right: 1px solid #eeeef2; background: #fafafa; }
.sidebar nav { display: flex; min-height: 100%; flex-direction: column; gap: 6px; }
.nav-heading { margin: 21px 13px 6px; color: #86868b; font-size: 10px; font-weight: 500; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-radius: 10px;
    color: #55555e;
    background: transparent;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
}
.nav-item:hover { background: #f0f0f3; }
.nav-item.active { color: #0064ce; background: #eaf3ff; }
.nav-item svg,
.tool-icon svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-item.disabled { color: #8b8b93; cursor: default; }
.nav-item.disabled:hover { color: #8b8b93; background: transparent; }
.nav-button { cursor: pointer; }
.sidebar form { margin: 0; }
.sidefoot { display: grid; gap: 5px; margin-top: auto; padding-top: 23px; }
.dashboard { width: 100%; max-width: 1060px; padding: 34px 32px 60px; }
.eyebrow { margin: 0 0 14px; color: #87878f; font-size: 12px; font-weight: 400; }
.dashboard h1 { margin: 0; font-size: 29px; font-weight: 500; line-height: 1.15; letter-spacing: -1px; }
.lead { max-width: 480px; margin: 13px 0 0; color: #777780; font-size: 14px; line-height: 1.65; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 25px; }
.section-title { grid-column: 1 / -1; margin: 0 0 4px; font-size: 17px; letter-spacing: -.3px; }
.tool-card { display: flex; min-width: 0; min-height: 210px; flex-direction: column; align-items: flex-start; padding: 17px 14px; border: 1px solid #e7e7ec; border-radius: 22px; background: #fff; }
.tool-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; letter-spacing: -.3px; }
.tool-card p { margin: 0; color: #777780; font-size: 12px; line-height: 1.65; }
.tool-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border-radius: 12px; color: #0070eb; background: #ebf3ff; }
.tool-icon svg { width: 16px; height: 16px; }
.tool-icon.violet { color: #684bb1; background: #f0ebff; }
.tool-icon.amber { color: #9b6200; background: #fff3d9; }
.tool-icon.rose { color: #b85069; background: #fff0f2; }
.tool-icon.green { color: #227c58; background: #eaf7f0; }
.tool-action { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 16px; color: var(--accent); font-size: 12px; text-decoration: none; }
.tool-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recent-section { margin-top: 29px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 500; }
.section-head span { color: var(--accent); font-size: 12px; }
.empty-materials { padding: 22px; border: 1px solid #e9e9ed; border-radius: 17px; color: #85858f; background: #fff; font-size: 12px; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.profile-page { max-width: 840px; }
.profile-page .messages { margin-top: 24px; }
.profile-card { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; }
.profile-card h2 { margin: 0; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.profile-summary { display: flex; align-items: center; gap: 15px; margin-bottom: 23px; }
.profile-summary .avatar { width: 52px; height: 52px; flex: 0 0 52px; font-size: 19px; }
.profile-summary p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.profile-card dl { margin: 0; }
.profile-card dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; overflow-wrap: anywhere; }
.profile-form { display: grid; gap: 10px; margin-top: 20px; }
.profile-form label { color: var(--muted); font-size: 13px; }
.profile-form input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.profile-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile-form button { justify-self: start; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
.profile-form button:hover { background: var(--accent-dark); }
.profile-form .errorlist { margin: 0; padding-left: 20px; color: var(--danger); font-size: 13px; }
.profile-actions { display: grid; gap: 6px; margin-top: 16px; }

.account-manage { max-width: 840px; }
.account-manage .messages { margin-top: 0; }
.manage-card { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; overflow-x: auto; }
.manage-card h1 { margin: 0 0 10px; font-size: 24px; font-weight: 500; letter-spacing: -.7px; }
.manage-card h2 { margin: 28px 0 10px; font-size: 17px; font-weight: 500; }
.manage-card > p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.manage-card form { display: grid; gap: 14px; margin-top: 20px; }
.manage-card form p { display: grid; gap: 7px; margin: 0; }
.manage-card form p:has(> input[type="radio"]),
.manage-card form p:has(> input[type="checkbox"]) {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}
.manage-card label { color: #65656f; font-size: 12px; }
.manage-card input[type="radio"],
.manage-card input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.manage-card input:not([type="radio"]):not([type="checkbox"]),
.manage-card select,
.manage-card textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7d9df;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
    font-size: 13px;
}
.manage-card input:focus, .manage-card select:focus, .manage-card textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgb(0 122 255 / 12%);
}
.manage-card button {
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--accent);
    font-weight: 500;
    cursor: pointer;
}
.manage-card button:hover { background: var(--accent-dark); }
.manage-card form p > span { color: var(--muted); font-size: 12px; }
.manage-card form p > span button { min-height: auto; margin: 8px 8px 0 0; padding: 7px 10px; }
.manage-card .errorlist { margin: 0; padding-left: 20px; color: var(--danger); font-size: 12px; }
.manage-card table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13px; }
.manage-card th, .manage-card td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.manage-card th { color: var(--muted); font-size: 12px; font-weight: 500; }
.manage-card td { overflow-wrap: anywhere; }
.manage-card strong { display: inline-block; padding: 3px 7px; border-radius: 7px; background: #edf6ff; color: #0064ce; font-size: 11px; }
.manage-card .sessions-form { gap: 20px; }
.manage-card .sessions-table { min-width: 0; table-layout: fixed; }
.sessions-started-column { width: 18%; }
.sessions-ip-column { width: 17%; }
.sessions-browser-column { width: auto; }
.sessions-seen-column { width: 18%; }
.sessions-status-column { width: 11%; }
.sessions-table .session-time,
.sessions-table .session-ip,
.sessions-table .session-status { white-space: nowrap; }
.sessions-table .session-ip { overflow: hidden; text-overflow: ellipsis; }
.sessions-table .session-browser { overflow-wrap: anywhere; word-break: break-word; }
.sessions-form > button { justify-self: start; }

.notes-page .messages,
.note-editor-page .messages { margin-top: 24px; }
.notes-heading,
.note-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.primary-action,
.secondary-action,
.danger-action,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.primary-action { min-height: 42px; padding: 10px 16px; border: 0; color: #fff; background: var(--accent); cursor: pointer; }
.primary-action:hover { color: #fff; background: var(--accent-dark); }
.secondary-action { min-height: 42px; padding: 10px 16px; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.secondary-action:hover { color: var(--ink); background: #f6f6f8; }
.danger-action { min-height: 42px; padding: 10px 14px; color: var(--danger); }
.danger-action:hover { color: #a51f1b; background: #fff0ef; }
.primary-action svg,
.danger-action svg,
.back-link svg,
.delete-icon svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.note-card { display: flex; min-height: 190px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.note-card:hover { color: var(--ink); border-color: #cfd8e7; box-shadow: 0 8px 28px rgb(39 62 94 / 8%); }
.note-card h2 { margin: 0 0 10px; overflow-wrap: anywhere; font-size: 16px; font-weight: 500; }
.note-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; white-space: pre-line; }
.note-card time { margin-top: auto; padding-top: 18px; color: #8a8a92; font-size: 11px; }
.notes-empty { display: grid; justify-items: center; margin-top: 28px; padding: 54px 24px; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.notes-empty .tool-icon { margin-bottom: 16px; }
.notes-empty h2 { margin: 0; font-size: 18px; font-weight: 500; }
.notes-empty p { max-width: 380px; margin: 10px 0 22px; color: var(--muted); font-size: 13px; }
.note-editor-page { max-width: 900px; }
.back-link { justify-content: flex-start; margin-bottom: 24px; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.note-editor-heading { align-items: center; }
.save-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: var(--muted); background: #f4f4f6; font-size: 12px; white-space: nowrap; }
.save-status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.save-status.saved { color: #337247; background: #edf8ef; }
.save-status.saving { color: #76651d; background: #fff8df; }
.save-status.error { color: #9c302b; background: #fff0ef; }
.note-editor { display: grid; gap: 20px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; }
.note-field { display: grid; gap: 8px; }
.note-field label { color: var(--muted); font-size: 12px; }
.note-field input,
.note-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #d7d9df; border-radius: 11px; color: var(--ink); background: #fff; }
.note-field input { min-height: 46px; font-size: 16px; font-weight: 500; }
.note-field textarea { min-height: 360px; resize: vertical; font-size: 14px; line-height: 1.65; }
.note-field input:focus,
.note-field textarea:focus { border-color: var(--accent); outline: 3px solid rgb(0 122 255 / 12%); }
.note-field .errorlist,
.note-editor > .errorlist { margin: 0; padding-left: 20px; color: var(--danger); font-size: 12px; }
.note-editor-actions { display: flex; align-items: center; gap: 8px; }
.note-editor-actions .save-status { margin-left: auto; }
.note-delete-page { max-width: 720px; }
.delete-card { margin-top: 8px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; }
.delete-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 12px; color: var(--danger); background: #fff0ef; }
.delete-card h1 { font-size: 25px; }
.delete-card > p:not(.eyebrow) { color: var(--muted); overflow-wrap: anywhere; }
.delete-card form { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.danger-button { min-height: 42px; padding: 10px 16px; border: 0; border-radius: 10px; color: #fff; background: var(--danger); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.danger-button:hover { background: #ad2824; }
.attachments-card { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; }
.attachments-card .section-head { margin-bottom: 16px; }
.attachments-card h2 { margin: 0; font-size: 17px; font-weight: 500; }
.attachments-card .section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.attachment-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.attachment-upload label { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.attachment-upload input[type="file"] { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; }
.attachment-list { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.attachment-list li > div { min-width: 0; }
.attachment-list a { display: block; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.attachment-list form { margin: 0; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { background: #f2f2f4; }
.icon-button.danger:hover { color: var(--danger); background: #fff0ef; }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attachments-empty { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.base64-page { max-width: 900px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.base64-workspace { margin-top: 28px; }
.base64-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.base64-segment { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f0f1f4; }
.base64-segment button { min-height: 36px; padding: 7px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.base64-segment button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgb(30 36 48 / 5%); }
.base64-operation { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.base64-operation select { min-height: 36px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: #343943; background: #fff; }
.base64-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.base64-pane { display: flex; min-width: 0; min-height: 360px; flex-direction: column; }
.base64-output-pane { border-left: 1px solid var(--line); background: #fbfbfc; }
.base64-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 11px 15px; border-bottom: 1px solid var(--line); color: #656a75; font-size: 12px; }
.base64-pane-actions { display: flex; align-items: center; gap: 5px; }
.base64-icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; color: #737985; background: transparent; cursor: pointer; }
.base64-icon-button:hover:not(:disabled) { color: #303641; background: #eef1f6; }
.base64-icon-button:disabled { opacity: .45; cursor: default; }
.base64-icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.base64-text-source { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.base64-text-source textarea,
.base64-output { flex: 1; width: 100%; min-height: 270px; margin: 0; padding: 17px 15px; border: 0; border-radius: 0; color: #38404c; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.base64-text-source textarea { resize: vertical; }
.base64-output { overflow: auto; resize: none; }
.base64-text-source textarea:focus,
.base64-output:focus { outline: 3px solid rgb(0 122 255 / 12%); outline-offset: -3px; }
.base64-text-source .errorlist { margin: 0; padding: 10px 15px; border-top: 1px solid #f1d1cf; color: var(--danger); background: #fff6f5; font-size: 12px; }
.base64-file-source { position: relative; display: grid; flex: 1; place-items: center; align-content: center; gap: 12px; min-height: 270px; padding: 26px; text-align: center; color: var(--muted); }
.base64-file-source[hidden] { display: none; }
.base64-file-source.is-dragging { background: #f3f7ff; box-shadow: inset 0 0 0 2px rgb(0 122 255 / 24%); }
.base64-file-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #747f94; background: #f0f2f7; }
.base64-file-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.base64-file-source > div { min-width: 0; max-width: 100%; }
.base64-file-source p { max-width: 100%; margin: 0; color: #4f5560; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.base64-file-source small { color: #858a94; font-size: 11px; }
.base64-file-label { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: #3c424c; background: #fff; font-size: 12px; cursor: pointer; }
.base64-file-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.base64-file-label input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.base64-file-label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.base64-file-source .errorlist { margin: 0; padding-left: 18px; color: var(--danger); font-size: 12px; text-align: left; }
.base64-output::placeholder { color: #9398a1; }
.base64-preview { display: block; max-width: calc(100% - 30px); max-height: 210px; margin: 0 auto 16px; border-radius: 12px; object-fit: contain; }
.base64-result-meta { padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.base64-options { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.base64-fields { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.checkbox-field { display: inline-flex; align-items: center; align-self: center; gap: 8px; color: var(--muted); font-size: 12px; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.base64-workspace .base64-text-source[hidden],
.base64-workspace .base64-file-source[hidden],
.base64-workspace [data-base64-data-url][hidden] { display: none; }
.base64-output-name { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.base64-output-name input { width: 150px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: #343943; background: #fff; }
.base64-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.base64-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.base64-status { display: flex; align-items: center; gap: 7px; min-height: 22px; color: #45715c; font-size: 11px; }
.base64-status.error { color: #a43b3b; }
.base64-alert { margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; color: var(--danger); background: #fff2f1; font-size: 12px; }
.base64-alert .errorlist { margin: 0; padding-left: 18px; }
.base64-workspace > .errorlist { margin: 12px 0 0; padding-left: 20px; color: var(--danger); font-size: 12px; }
.base64-transient-note { display: flex; align-items: center; gap: 7px; margin: 17px 0 0; color: var(--muted); font-size: 11px; }
.base64-transient-note svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
    .site-header { padding: 0 16px; }
    .profile-copy { display: none; }
    .workspace { display: block; }
    .sidebar { padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-heading { display: none; }
    .sidefoot { display: contents; }
    .dashboard { padding: 36px 20px 56px; }
    .tool-grid { grid-template-columns: 1fr; margin-top: 36px; }
    .tool-card { min-height: auto; }
    .notes-grid { grid-template-columns: 1fr; }
    .notes-heading { align-items: stretch; flex-direction: column; }
    .notes-heading .primary-action { align-self: flex-start; }
    .note-editor-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .base64-grid { grid-template-columns: 1fr; }
    .base64-output-pane { border-top: 1px solid var(--line); border-left: 0; }
    .base64-pane { min-height: 300px; }
    .manage-card .sessions-table,
    .sessions-table tbody,
    .sessions-table tr,
    .sessions-table td { display: block; width: 100%; }
    .sessions-table colgroup,
    .sessions-table thead { display: none; }
    .sessions-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
    .sessions-table tr:last-child { border-bottom: 0; }
    .manage-card .sessions-table td {
        display: grid;
        grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr);
        gap: 14px;
        padding: 8px 0;
        border: 0;
        white-space: normal;
    }
    .sessions-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
    .sessions-table .session-ip,
    .sessions-table .session-time,
    .sessions-table .session-status { white-space: nowrap; }
    .sessions-table .session-ip { overflow: visible; text-overflow: clip; }
}

@media (max-width: 460px) {
    .account-page { padding: 30px 14px 50px; }
    .manage-card { padding: 20px 16px; }
    .manage-card .sessions-table td { grid-template-columns: 1fr; gap: 3px; }
    .note-editor { padding: 18px 14px; }
    .note-editor-actions,
    .delete-card form { align-items: stretch; flex-direction: column; }
    .note-editor-actions > *,
    .delete-card form > * { width: 100%; }
    .attachment-upload { grid-template-columns: 1fr; }
    .attachment-upload label { grid-column: auto; }
    .base64-toolbar,
    .base64-options { align-items: stretch; flex-direction: column; }
    .base64-operation { justify-content: space-between; }
    .base64-fields,
    .base64-actions { align-items: stretch; flex-direction: column; }
    .base64-output-name { justify-content: space-between; }
    .base64-output-name input,
    .base64-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
