:root {
    --bg: #f5f6f8;
    --surface: #fff;
    --ink: #172034;
    --muted: #6f7788;
    --line: #e5e8ef;
    --brand: #6d56e8;
    --brand-dark: #5941d1;
    --brand-soft: #efecff;
    --danger: #dd4b5b;
    --success: #159466;
    --sidebar: #171929;
    --shadow: 0 1px 2px rgba(19, 28, 50, .04), 0 10px 30px rgba(25, 33, 55, .04);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body, input, button, textarea, select { font: 15px/1.5 "DM Sans", system-ui, sans-serif; }
button, input, textarea, select { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: 0 0 auto; }
[hidden] { display: none !important; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; margin-bottom: 10px; }
h2 { font-size: 19px; line-height: 1.3; }
p { color: var(--muted); }

.app-body { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    width: 246px; padding: 28px 18px 20px;
    display: flex; flex-direction: column;
    color: #c7c9d6; background: var(--sidebar);
}
.brand {
    display: flex; align-items: center; gap: 11px;
    padding: 0 10px 30px;
    color: #fff; font: 700 17px/1 "Manrope", sans-serif; letter-spacing: -.025em;
}
.brand-mark {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 33px; height: 33px; border-radius: 10px;
    color: #fff; background: linear-gradient(145deg, #8b77f3, #6046dc);
    box-shadow: 0 7px 20px rgba(101, 73, 225, .35);
}
.brand-mark svg { width: 22px; height: 22px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
    display: flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 12px; border-radius: 10px;
    color: #a9acbc; font-weight: 500; transition: .18s ease;
}
.side-nav a svg { width: 20px; opacity: .75; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.side-nav a.active { color: #fff; background: rgba(125, 102, 240, .18); }
.side-nav a.active svg { color: #9a87fb; opacity: 1; }
.nav-label {
    padding: 0 12px 8px; color: #686b7b;
    font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.nav-label-spaced { margin-top: 23px; }
.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    margin-top: auto; padding: 16px 6px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.avatar, .mini-avatar {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 36px; height: 36px; border-radius: 11px;
    color: #654ad9; background: #e9e4ff; font-weight: 700;
}
.user-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-copy strong { color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { color: #777a8b; font-size: 11px; }
.icon-btn {
    width: 38px; height: 38px; border: 0; border-radius: 10px;
    display: inline-grid; place-items: center; background: #fff; cursor: pointer;
}
.icon-btn.ghost { color: #777a8b; background: transparent; }
.icon-btn.ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.mobile-topbar { display: none; }
.main-content { margin-left: 246px; min-height: 100vh; padding: 46px clamp(28px, 4vw, 60px) 70px; }
.main-content > * { max-width: 1380px; margin-left: auto; margin-right: auto; }

.page-header, .detail-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-bottom: 30px;
}
.page-header p { margin: 0; font-size: 15px; }
.page-header.compact { align-items: flex-start; }
.eyebrow {
    display: block; margin-bottom: 8px;
    color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow.light { color: #b8adff; }
.wave { font-size: .75em; }
.btn {
    min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 8px 18px rgba(105, 80, 225, .18); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px rgba(105, 80, 225, .24); }
.btn-secondary { color: #464f61; border-color: var(--line); background: #fff; }
.btn-secondary:hover { border-color: #cfd3dc; background: #fafafd; }
.btn-danger { color: #fff; background: var(--danger); }
.btn-large { min-height: 50px; font-size: 15px; border-radius: 12px; }
.btn-full { width: 100%; }

.panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
    position: relative; min-height: 145px; padding: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow);
}
.stat-icon {
    position: absolute; top: 19px; right: 19px;
    width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px;
}
.stat-icon.purple { color: #6d56e8; background: #eeebff; }
.stat-icon.blue { color: #3983dc; background: #e8f3ff; }
.stat-icon.green { color: #139868; background: #e5f8f1; }
.stat-icon.orange { color: #d78532; background: #fff1df; }
.stat-card > div { display: flex; flex-direction: column; }
.stat-card strong { font: 700 27px/1.2 "Manrope", sans-serif; letter-spacing: -.04em; }
.stat-card span { margin-top: 2px; color: #515a6c; font-weight: 500; }
.stat-card small { position: absolute; bottom: 20px; color: #9a9fad; font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 22px; }
.dashboard-grid > .panel { overflow: hidden; }
.panel-header {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 24px 17px;
}
.panel-header h2 { margin: 0 0 3px; }
.panel-header p { margin: 0; font-size: 12px; }
.text-link { color: var(--brand); font-size: 13px; font-weight: 600; }
.group-list { padding: 0 10px 10px; }
.group-row {
    display: flex; align-items: center; gap: 13px; padding: 13px;
    border-top: 1px solid #f0f1f4; border-radius: 10px; transition: .15s ease;
}
.group-row:hover { background: #f9f9fc; }
.folder-icon {
    width: 42px; height: 42px; border-radius: 11px; display: inline-grid; place-items: center;
    color: #7560df; background: #eeebff; flex: 0 0 auto;
}
.folder-icon svg { width: 22px; }
.group-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.group-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.group-main small { color: #979ca9; font-size: 11px; }
.group-count { color: #777e8e; font-size: 12px; }
.row-arrow { padding: 0 4px; color: #a7abb6; font-size: 21px; }
.mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 0 20px 20px; }
.mini-gallery a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #eee; }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mini-gallery a:hover img { transform: scale(1.06); }
.mini-gallery span {
    position: absolute; inset: auto 0 0; padding: 14px 6px 5px;
    color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.62));
    font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.empty-compact { min-height: 240px; display: grid; place-content: center; justify-items: center; color: #9398a6; }
.empty-compact span { font-size: 26px; }
.empty-compact p { margin: 8px 0 2px; }
.empty-compact a { color: var(--brand); font-size: 13px; font-weight: 600; }

.toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 20px;
}
.search-form { position: relative; width: min(440px, 100%); }
.search-form svg {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 18px; color: #9ba0ac;
}
.search-form input {
    width: 100%; height: 44px; padding: 0 15px 0 43px;
    border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fff;
}
.search-form input:focus { border-color: #a798f0; box-shadow: 0 0 0 3px rgba(109,86,232,.1); }
.result-count { color: #8e94a0; font-size: 13px; }
.groups-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.group-card {
    min-width: 0; padding: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.group-card:hover { transform: translateY(-3px); border-color: #d9d4f5; box-shadow: 0 15px 35px rgba(26, 33, 52, .08); }
.group-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.folder-icon.tone-2 { color: #3387ce; background: #e5f3ff; }
.folder-icon.tone-3 { color: #dd7a2b; background: #fff0df; }
.folder-icon.tone-4 { color: #15996b; background: #e5f8f1; }
.code-pill {
    display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 99px;
    color: #868c99; background: #f4f5f7; font: 600 10px/1 "DM Sans", sans-serif; letter-spacing: .04em;
}
.group-card h2 { margin: 0 0 7px; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-card > p { height: 38px; margin: 0 0 20px; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-card-meta { display: flex; gap: 14px; padding-bottom: 17px; color: #737a89; font-size: 12px; }
.group-card-meta span + span::before { content: "·"; margin-right: 14px; color: #c0c3ca; }
.group-card-meta b { color: #333d50; }
.group-card-footer { display: flex; align-items: center; gap: 7px; padding-top: 15px; border-top: 1px solid #eff0f3; color: #8c919d; font-size: 11px; }
.group-card-footer .mini-avatar { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.group-card-footer time { margin-left: auto; }
.empty-state { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: var(--brand); background: var(--brand-soft); }
.empty-icon svg { width: 28px; }
.empty-state h2 { margin: 18px 0 7px; }
.empty-state p { max-width: 430px; margin-bottom: 20px; }

.back-link { display: inline-block; margin-bottom: 16px; color: #838997; font-size: 13px; font-weight: 500; }
.back-link:hover { color: var(--brand); }
.form-layout { display: grid; grid-template-columns: minmax(0, 700px) 280px; align-items: start; gap: 22px; }
.form-card { padding: 30px; }
.form-section { display: flex; gap: 15px; padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-step { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-weight: 700; font-size: 11px; }
.form-section h2 { margin: 0 0 4px; }
.form-section p { margin: 0; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 21px; }
.field > span:first-child { color: #3e4758; font-size: 13px; font-weight: 600; }
.field > span b { color: var(--danger); }
.field > span em { float: right; color: #a2a6b0; font-size: 10px; font-style: normal; font-weight: 500; }
.field > input, .field textarea, .field select {
    width: 100%; border: 1px solid #dfe2e8; border-radius: 10px; background: #fff; outline: 0;
}
.field > input, .field > select { height: 44px; padding: 0 13px; }
.field textarea { padding: 12px 13px; resize: vertical; }
.field > input:focus, .field textarea:focus, .field select:focus { border-color: #9f90eb; box-shadow: 0 0 0 3px rgba(109,86,232,.09); }
.field small { color: #979ca8; font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.form-tip { padding: 24px; color: #fff; background: linear-gradient(150deg, #26283d, #1b1d2d); border-radius: 15px; box-shadow: var(--shadow); }
.tip-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #c5bbff; background: rgba(133,110,244,.18); }
.form-tip h3 { margin: 18px 0 7px; font-size: 16px; }
.form-tip p { color: #9295a7; font-size: 12px; line-height: 1.65; }
.tip-example { padding: 12px; margin-top: 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); }
.tip-example small, .tip-example strong { display: block; }
.tip-example small { color: #74788b; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.tip-example strong { margin-top: 4px; font-size: 11px; }

.detail-header { align-items: flex-start; margin-bottom: 20px; }
.title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.title-line h1 { margin-bottom: 5px; }
.detail-header > div:first-child > p { max-width: 720px; margin-bottom: 12px; font-size: 13px; }
.detail-meta { display: flex; align-items: center; gap: 20px; color: #9398a5; font-size: 11px; }
.detail-meta span { display: flex; align-items: center; gap: 6px; }
.detail-meta .mini-avatar { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; font-style: normal; }
.detail-actions { display: flex; gap: 8px; margin-top: 28px; }
.danger-outline { color: var(--danger); border: 1px solid #f0d5d9; }
.danger-outline:hover { background: #fff4f5; }
.detail-stats {
    display: flex; align-items: center; gap: 18px; margin-bottom: 22px;
    color: #858b98; font-size: 12px;
}
.detail-stats strong { color: #3e4656; }
.detail-stats i { width: 3px; height: 3px; border-radius: 50%; background: #c5c8cf; }
.upload-panel { padding: 25px; margin-bottom: 30px; }
.upload-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.upload-head .eyebrow { margin-bottom: 4px; }
.upload-head h2 { margin: 0 0 3px; }
.upload-head p { margin: 0; font-size: 11px; }
.queue-limit { align-self: center; padding: 6px 10px; color: #747b89; background: #f4f5f7; border-radius: 99px; font-size: 10px; font-weight: 600; }
.drop-zone {
    min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1.5px dashed #c9c4ed; border-radius: 14px;
    background: linear-gradient(180deg, #fbfaff, #f8f7fd); cursor: pointer; transition: .2s ease;
}
.drop-zone:hover, .drop-zone.dragging { border-color: var(--brand); background: #f5f2ff; transform: translateY(-1px); }
.upload-orbit {
    width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 13px;
    color: var(--brand); border: 1px solid #d9d3fa; border-radius: 50%; background: #fff; box-shadow: 0 7px 18px rgba(88, 67, 190, .1);
}
.upload-orbit svg { width: 25px; }
.drop-zone strong { font-family: "Manrope", sans-serif; font-size: 15px; }
.drop-zone > span:not(.upload-orbit) { margin-top: 4px; color: #858b98; font-size: 12px; }
.drop-zone > span b { color: var(--brand); }
.drop-zone small { margin-top: 13px; color: #a2a6b0; font-size: 10px; }
.upload-queue { padding-top: 22px; }
.queue-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.queue-summary > div { display: flex; align-items: baseline; gap: 10px; }
.queue-summary strong { font-size: 13px; }
.queue-summary span { color: #8e94a0; font-size: 11px; }
#queue-percent { color: var(--brand); font-weight: 700; }
.progress-track { height: 5px; overflow: hidden; background: #ebeaf1; border-radius: 99px; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brand), #9d8cf1); border-radius: inherit; transition: width .25s ease; }
.queue-items { max-height: 260px; overflow: auto; margin-top: 13px; }
.queue-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 8px 2px; border-top: 1px solid #f0f1f4; }
.queue-thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #eee; }
.queue-file { min-width: 0; }
.queue-file strong, .queue-file span { display: block; }
.queue-file strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.queue-file span { color: #989da8; font-size: 9px; }
.queue-status { font-size: 10px; color: #8e94a0; }
.queue-status.success { color: var(--success); }
.queue-status.error { max-width: 230px; color: var(--danger); text-align: right; }

.r10-composer {
    overflow: hidden; padding: 0; margin-bottom: 34px;
    border-color: #dedaf3; box-shadow: 0 16px 45px rgba(39, 31, 83, .07);
}
.composer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 24px 26px; border-bottom: 1px solid #e7e3f7;
    background:
        radial-gradient(circle at 88% 20%, rgba(109,86,232,.12), transparent 28%),
        linear-gradient(135deg, #fbfaff, #f5f2ff);
}
.composer-head h2 { margin: 2px 0 5px; font-size: 21px; }
.composer-head p { max-width: 690px; margin: 0; color: #74798a; font-size: 12px; }
.layout-presets {
    flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px;
    border: 1px solid #e0dcf3; border-radius: 11px; background: rgba(255,255,255,.8);
}
.layout-presets > span { padding: 0 6px; color: #8c889d; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.layout-presets button {
    height: 31px; padding: 0 10px; border: 0; border-radius: 7px;
    color: #5f6170; background: transparent; font-size: 10px; cursor: pointer;
}
.layout-presets button:hover { color: var(--brand); background: var(--brand-soft); }
.layout-presets button:disabled { opacity: .45; cursor: default; }
.composer-workspace { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(370px, .98fr); min-height: 450px; }
.composer-builder { padding: 22px; border-right: 1px solid var(--line); background: #fcfcfe; }
.builder-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.builder-bar > div { display: flex; flex-direction: column; }
.builder-bar strong { font-size: 12px; }
.builder-bar small { color: #9a9eaa; font-size: 9px; }
.layout-save-state {
    display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 0 9px;
    color: #258262; background: #eaf8f2; border-radius: 99px; font-size: 9px; font-weight: 700;
}
.layout-save-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.layout-save-state.saving { color: #806b23; background: #fff8df; }
.layout-save-state.error { color: #aa3f4d; background: #fff0f2; }
.composer-rows { display: flex; flex-direction: column; gap: 9px; }
.composer-row {
    display: grid; grid-template-columns: 42px minmax(0, 1fr); min-height: 76px;
    border: 1px solid #e3e5eb; border-radius: 12px; background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.composer-row:focus-within { border-color: #b8adef; box-shadow: 0 0 0 3px rgba(109,86,232,.07); }
.composer-row.drag-target { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109,86,232,.1); }
.composer-row-rail {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    border-right: 1px solid #eceef2; border-radius: 11px 0 0 11px; color: #8d92a0; background: #f7f7fa;
}
.row-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #6e647f; background: #ece9f7; font: 700 9px "Manrope"; }
.row-move-actions { display: flex; gap: 2px; }
.row-move-actions button {
    width: 16px; height: 17px; padding: 0; border: 0; border-radius: 4px;
    color: #9b9faa; background: transparent; font-size: 9px; line-height: 1; cursor: pointer;
}
.row-move-actions button:hover:not(:disabled) { color: var(--brand); background: #eae6ff; }
.row-move-actions button:disabled { opacity: .25; cursor: default; }
.composer-row-items {
    min-width: 0; padding: 8px; display: flex; align-items: stretch; gap: 7px;
}
.composer-row-items:empty::after {
    content: "Görseli buraya sürükleyin"; min-height: 58px; flex: 1; display: grid; place-items: center;
    border: 1px dashed #d9dbe3; border-radius: 9px; color: #a4a8b2; background: #fafafd; font-size: 9px;
}
.composer-item {
    position: relative; min-width: 0; flex: 1 1 0; height: 58px;
    display: grid; grid-template-columns: 14px 44px minmax(52px, 1fr) auto; align-items: center; gap: 7px; padding: 6px;
    border: 1px solid #e5e7ec; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgba(27,32,46,.04);
    cursor: grab; user-select: none;
}
.composer-item:active { cursor: grabbing; }
.composer-item.dragging { opacity: .35; transform: scale(.98); }
.item-drag-handle { color: #bbbfc8; font-size: 15px; line-height: 1; }
.composer-item img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; background: #eceef2; }
.composer-item-copy { min-width: 0; }
.composer-item-copy strong, .composer-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-item-copy strong { font-size: 9px; }
.composer-item-copy small { margin-top: 2px; color: #a0a4ae; font-size: 8px; }
.composer-item [data-item-new-row] {
    height: 30px; padding: 0 7px; border: 0; border-radius: 7px;
    color: #7c748d; background: #f3f1f8; font-size: 8px; white-space: nowrap; cursor: pointer;
}
.composer-item [data-item-new-row] span { font-size: 12px; }
.composer-item [data-item-new-row]:hover { color: var(--brand); background: var(--brand-soft); }
.composer-empty {
    min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px dashed #daddE4; border-radius: 12px; color: #a0a4ae; background: #fafafd; text-align: center;
}
.composer-empty > span { color: #b5addd; font-size: 30px; }
.composer-empty strong { margin-top: 5px; color: #686e7c; font-size: 11px; }
.composer-empty small { margin-top: 3px; font-size: 9px; }
.add-layout-row {
    width: 100%; height: 37px; margin-top: 9px; border: 1px dashed #d6d8e0; border-radius: 9px;
    color: #7f8490; background: #fff; font-size: 10px; cursor: pointer;
}
.add-layout-row:hover:not(:disabled) { color: var(--brand); border-color: #afa3eb; background: #faf9ff; }
.add-layout-row:disabled { opacity: .45; cursor: default; }
.r10-preview-panel { min-width: 0; display: flex; flex-direction: column; padding: 22px; background: #f3f4f6; }
.r10-preview-head {
    display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px;
    padding: 9px 11px; border: 1px solid #dbdde2; border-bottom: 0; border-radius: 10px 10px 0 0; background: #e8e9ec;
}
.r10-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #f7c65a; background: #20232a; font: 800 10px "Manrope"; }
.r10-preview-head div:nth-child(2) { display: flex; flex-direction: column; }
.r10-preview-head strong { color: #353841; font-size: 10px; }
.r10-preview-head small { color: #8c9098; font-size: 8px; }
.r10-preview-head > span { padding: 4px 7px; border-radius: 99px; color: #777b84; background: #dfe0e3; font-size: 8px; }
.r10-preview-body {
    min-height: 315px; max-height: 570px; overflow: auto; padding: 18px;
    border: 1px solid #dbdde2; background: #fff;
}
.preview-placeholder { min-height: 270px; display: grid; place-items: center; align-content: center; color: #a4a7ae; text-align: center; }
.preview-placeholder span { color: #c4c0dd; font-size: 30px; }
.preview-placeholder p { margin: 5px 0 0; font-size: 10px; }
.preview-image-row { display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; margin-bottom: 15px; }
.preview-image-row:last-child { margin-bottom: 0; }
.preview-image-row figure { min-width: 0; max-width: 100%; flex: 0 1 auto; margin: 0; }
.preview-image-row.is-multi figure { flex: 1 1 0; }
.preview-image-row img { display: block; max-width: 100%; height: auto; border: 0; }
.preview-image-row.is-multi img { width: 100%; object-fit: contain; object-position: left top; }
.preview-note { margin: 9px 2px 0; color: #90949e; font-size: 8px; line-height: 1.45; }
.bbcode-output { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #fff; }
.bbcode-output-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.bbcode-output-head > div { display: flex; flex-direction: column; }
.bbcode-output-head strong { font-size: 11px; }
.bbcode-output-head small { color: #989ca7; font-size: 9px; }
.btn-small { min-height: 32px; padding: 7px 12px; font-size: 9px; }
#layout-bbcode {
    width: 100%; min-height: 108px; resize: vertical; padding: 12px 14px;
    border: 1px solid #dedfe5; border-radius: 10px; color: #5c536d; background: #f8f7fb;
    font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; outline: 0;
}
#layout-bbcode:focus { border-color: #a89bea; box-shadow: 0 0 0 3px rgba(109,86,232,.07); }

.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.gallery-head h2 { margin: 0 0 3px; }
.gallery-head h2 span { color: #a0a4ae; font: 500 13px "DM Sans", sans-serif; }
.gallery-head p { margin: 0; font-size: 11px; }
.gallery-tools { display: flex; align-items: center; gap: 15px; }
.select-all-label { display: flex; align-items: center; gap: 7px; color: #6d7483; font-size: 11px; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--brand); }
.select-control { height: 35px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: 0; font-size: 11px; }
.bulk-bar {
    display: flex; align-items: center; gap: 5px; min-height: 48px; padding: 7px 10px 7px 15px; margin-bottom: 14px;
    color: #555e70; background: #f0edff; border: 1px solid #ded8ff; border-radius: 11px; font-size: 11px;
}
.bulk-bar > span:first-child { margin-right: 5px; }
.bulk-divider { width: 1px; height: 20px; margin: 0 5px; background: #d8d1fa; }
.bulk-bar button { padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; font-size: 11px; cursor: pointer; }
.bulk-bar button:hover { background: #fff; }
.bulk-bar button.featured { color: var(--brand); font-weight: 700; }
.bulk-bar .danger-link { margin-left: auto; color: var(--danger); }
.image-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.image-card {
    position: relative; overflow: hidden; min-width: 0;
    border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow);
    transition: .18s ease;
}
.image-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(25, 33, 55, .09); }
.image-card.selected { border-color: #a99bef; box-shadow: 0 0 0 2px rgba(109,86,232,.1); }
.image-select { position: absolute; z-index: 4; top: 9px; left: 9px; width: 23px; height: 23px; cursor: pointer; }
.image-select input { position: absolute; opacity: 0; pointer-events: none; }
.image-select span {
    width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px;
    color: transparent; background: rgba(255,255,255,.9); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 2px 7px rgba(0,0,0,.08); font-size: 11px;
}
.image-select input:checked + span { color: #fff; background: var(--brand); border-color: var(--brand); }
.image-preview { position: relative; display: block; aspect-ratio: 1.28; overflow: hidden; background: #eef0f3; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.image-preview:hover img { transform: scale(1.035); }
.open-hint {
    position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 6px;
    color: #fff; background: rgba(20,22,30,.72); font-size: 9px; opacity: 0; transform: translateY(3px); transition: .18s ease;
}
.image-preview:hover .open-hint { opacity: 1; transform: none; }
.image-info { padding: 12px 12px 9px; }
.image-info strong, .image-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-info strong { font-size: 11px; }
.image-info span { margin-top: 2px; color: #9a9faa; font-size: 9px; }
.image-actions { display: flex; align-items: center; padding: 0 7px 8px; gap: 3px; }
.image-actions button { height: 26px; padding: 0 7px; border: 0; border-radius: 6px; color: #6e7584; background: #f6f7f8; font-size: 9px; cursor: pointer; }
.image-actions button:hover { color: var(--brand); background: var(--brand-soft); }
.image-actions .delete-image { width: 27px; padding: 0; margin-left: auto; color: #a6aab3; background: transparent; }
.image-actions .delete-image:hover { color: var(--danger); background: #fff0f2; }
.image-actions svg { width: 15px; }
.empty-gallery { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #d9dce3; border-radius: 14px; }
.empty-gallery > span { color: #b7b1df; font-size: 36px; }
.empty-gallery h3 { margin: 8px 0 4px; font-size: 15px; }
.empty-gallery p { margin: 0; font-size: 11px; }

.alert {
    position: relative; padding: 12px 40px 12px 14px; margin-bottom: 18px; border: 1px solid; border-radius: 10px; font-size: 13px;
}
.alert button { position: absolute; right: 8px; top: 5px; border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.alert-success { color: #147553; background: #e9f8f2; border-color: #cbeadd; }
.alert-error { color: #a53a47; background: #fff0f2; border-color: #f0cfd4; }
.toast-stack { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.toast {
    min-width: 280px; max-width: 400px; padding: 12px 15px; border-radius: 10px;
    color: #fff; background: #242737; box-shadow: 0 12px 35px rgba(12,16,27,.22); font-size: 12px;
    animation: toast-in .2s ease both;
}
.toast.success { background: #177b59; }
.toast.error { background: #b73e4c; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

dialog { color: var(--ink); }
.confirm-dialog, .modal { width: min(92vw, 430px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(20,23,39,.25); }
dialog::backdrop { background: rgba(18,20,31,.5); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 28px; text-align: center; }
.dialog-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--danger); background: #fff0f2; font: 800 20px "Manrope"; }
.confirm-dialog h3 { margin-bottom: 7px; }
.confirm-dialog p { font-size: 12px; }
.dialog-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.modal form { padding: 26px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.modal-head h2 { margin: 0; }
.modal-head button { border: 0; color: #8f94a0; background: transparent; font-size: 25px; cursor: pointer; }

.table-panel { overflow: hidden; }
.table-head { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.table-head h2 { margin: 0; }
.table-head h2 span { color: #9ca1ac; font: 500 12px "DM Sans"; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #eff0f3; white-space: nowrap; font-size: 12px; }
th { color: #9096a2; background: #fafafd; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.user-cell span:last-child { display: flex; flex-direction: column; }
.user-cell small { color: #999eaa; font-size: 10px; }
.role-badge, .status-badge { display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 99px; font-size: 10px; font-weight: 600; }
.role-badge.admin { color: #654bd4; background: #eeeaff; }
.role-badge.member { color: #3979a9; background: #e9f4fb; }
.status-badge { gap: 5px; color: #19805d; background: #e9f7f2; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.passive { color: #8a8f9b; background: #f1f2f4; }

.account-layout {
    display: grid; grid-template-columns: 270px minmax(0, 760px); align-items: start; gap: 20px;
}
.account-summary { padding: 27px 22px; text-align: center; }
.account-avatar {
    width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center;
    border-radius: 22px; color: #fff; background: linear-gradient(145deg, #8b77f3, #6046dc);
    box-shadow: 0 12px 28px rgba(101,73,225,.24); font: 800 25px "Manrope";
}
.account-summary h2 { margin: 0 0 4px; font-size: 18px; }
.account-summary > p { margin: 0; overflow: hidden; color: #8e939f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-role {
    display: inline-flex; margin-top: 13px; padding: 5px 10px; border-radius: 99px;
    color: #654bd4; background: #eeeaff; font-size: 9px; font-weight: 700;
}
.security-status {
    display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 13px;
    border: 1px solid #dcece5; border-radius: 11px; background: #f0faf6; text-align: left;
}
.security-status > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 11px; }
.security-status div { min-width: 0; display: flex; flex-direction: column; }
.security-status strong { color: #26775d; font-size: 10px; }
.security-status small { overflow: hidden; color: #75a292; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.password-form { overflow: hidden; }
.password-form > .panel-header { border-bottom: 1px solid var(--line); }
.security-icon {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    color: var(--brand); background: var(--brand-soft);
}
.security-icon svg { width: 21px; }
.password-fields { padding: 24px; }
.password-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.secure-input { position: relative; display: block; }
.secure-input input {
    width: 100%; height: 44px; padding: 0 70px 0 13px; border: 1px solid #dfe2e8; border-radius: 10px; outline: 0;
}
.secure-input input:focus { border-color: #9f90eb; box-shadow: 0 0 0 3px rgba(109,86,232,.09); }
.secure-input .password-toggle {
    position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
    height: 30px; padding: 0 8px; border: 0; border-radius: 7px; color: #858b98; background: #f3f4f6; font-size: 9px; cursor: pointer;
}
.secure-input .password-toggle:hover { color: var(--brand); background: var(--brand-soft); }
.password-guidance { padding: 15px 17px; border: 1px solid #e5e6eb; border-radius: 11px; background: #f8f8fa; }
.password-guidance > span { color: #555d6d; font-size: 10px; font-weight: 700; }
.password-guidance ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.password-guidance li { position: relative; padding-left: 14px; color: #8e939e; font-size: 9px; }
.password-guidance li::before { content: "•"; position: absolute; left: 2px; color: var(--brand); }
.password-form > .form-actions { padding: 18px 24px; border-top: 1px solid var(--line); background: #fafafd; }

.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); align-items: start; gap: 20px; }
.settings-nav { padding: 8px; }
.settings-nav a { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 9px; }
.settings-nav a > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #f2f3f6; }
.settings-nav a div { display: flex; flex-direction: column; }
.settings-nav a strong { font-size: 12px; }
.settings-nav a small { color: #999eaa; font-size: 9px; }
.settings-nav a.active { color: var(--brand); background: var(--brand-soft); }
.settings-nav a.active > span { background: #fff; }
.settings-nav a.disabled { opacity: .52; }
.settings-form { overflow: hidden; }
.settings-form > .panel-header { border-bottom: 1px solid var(--line); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
.suffix-input { position: relative; }
.suffix-input input { width: 100%; height: 44px; padding: 0 62px 0 13px; border: 1px solid #dfe2e8; border-radius: 10px; outline: 0; }
.suffix-input input:focus { border-color: #9f90eb; box-shadow: 0 0 0 3px rgba(109,86,232,.09); }
.suffix-input b { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #9ba0ab; font-size: 10px; }
.allowed-types { margin: 0 24px; padding: 18px; background: #f8f8fb; border-radius: 11px; }
.allowed-types > span { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.allowed-types div { display: flex; gap: 7px; }
.allowed-types b { padding: 5px 9px; border-radius: 6px; color: #4e5667; background: #fff; border: 1px solid var(--line); font-size: 9px; }
.allowed-types small { display: block; margin-top: 10px; color: #979ca8; font-size: 10px; }
.settings-form > .form-actions { margin-top: 24px; padding: 18px 24px; border-top: 1px solid var(--line); }

.error-page { min-height: 70vh; }
.error-code { color: #ddd8fb; font: 800 100px/1 "Manrope"; letter-spacing: -.08em; }
.error-page h1 { font-size: 26px; margin-top: 10px; }

/* Login */
.auth-body { min-height: 100vh; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.05fr) minmax(460px, .95fr); }
.login-visual {
    position: relative; overflow: hidden; min-height: 700px; padding: 42px clamp(38px, 5vw, 72px);
    display: flex; flex-direction: column;
    color: #fff; background:
        radial-gradient(circle at 65% 90%, rgba(115,89,234,.35), transparent 31%),
        radial-gradient(circle at 12% 10%, rgba(90,121,221,.14), transparent 25%),
        #171929;
}
.visual-grid {
    position: absolute; inset: 0; opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}
.visual-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.login-logo { display: flex; align-items: center; gap: 10px; font: 700 16px "Manrope"; }
.login-logo .brand-mark { width: 34px; height: 34px; }
.private-pill { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; color: #9699aa; background: rgba(255,255,255,.035); font-size: 9px; }
.private-pill i { width: 5px; height: 5px; border-radius: 50%; background: #58c794; box-shadow: 0 0 0 3px rgba(88,199,148,.12); }
.visual-copy { position: relative; z-index: 1; margin: auto 0 70px; }
.visual-copy h1 { margin-bottom: 20px; color: #fff; font-size: clamp(43px, 5vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
.visual-copy p { max-width: 510px; color: #9598aa; font-size: 16px; line-height: 1.7; }
.floating-card {
    position: absolute; z-index: 2; right: clamp(35px, 7vw, 100px); bottom: 50px;
    width: 300px; padding: 13px; display: flex; align-items: center; gap: 11px;
    border: 1px solid rgba(255,255,255,.11); border-radius: 13px;
    background: rgba(39,41,61,.8); backdrop-filter: blur(15px); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.float-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; color: #c1b6ff; background: rgba(115,91,226,.2); }
.floating-card div { display: flex; flex: 1; flex-direction: column; }
.floating-card strong { font-size: 11px; }
.floating-card small { color: #858899; font-size: 9px; }
.status-check { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #66d3a2; background: rgba(76,194,139,.12); font-size: 10px; }
.login-panel { display: grid; place-items: center; padding: 50px; background: #fff; }
.login-form-wrap { width: min(100%, 410px); }
.login-mobile-brand { display: none; }
.login-form-wrap h2 { margin: 0 0 9px; font-size: 29px; }
.login-subtitle { margin-bottom: 30px; font-size: 13px; }
.form-stack .field { margin-bottom: 17px; }
.input-shell { position: relative; display: block; }
.input-shell > svg { position: absolute; z-index: 1; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; color: #9ca1ac; }
.input-shell input { width: 100%; height: 48px; padding: 0 70px 0 43px; border: 1px solid #dfe2e8; border-radius: 11px; outline: 0; }
.input-shell input:focus { border-color: #9888eb; box-shadow: 0 0 0 3px rgba(109,86,232,.09); }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; color: #888e9a; background: transparent; font-size: 10px; cursor: pointer; }
.login-help { margin: 25px 0 0; color: #a1a5af; font-size: 10px; text-align: center; }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .image-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .composer-workspace { grid-template-columns: 1fr; }
    .composer-builder { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 840px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 40px rgba(15,18,30,.2); }
    .sidebar.open { transform: translateX(0); }
    .mobile-topbar {
        position: sticky; top: 0; z-index: 20; height: 58px; padding: 0 18px;
        display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
    }
    .mobile-topbar .icon-btn { background: #f3f4f6; }
    .mobile-brand { font: 700 15px "Manrope"; }
    .main-content { margin-left: 0; padding: 28px 18px 60px; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; padding: 30px 22px; }
    .login-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 55px; font: 700 16px "Manrope"; }
    .form-layout { grid-template-columns: 1fr; }
    .form-tip { display: none; }
    .settings-layout, .account-layout { grid-template-columns: 1fr; }
    .settings-nav { display: none; }
    .detail-header { flex-direction: column; }
    .detail-actions { margin-top: 0; }
    .image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .composer-head { align-items: flex-start; flex-direction: column; }
    .layout-presets { width: 100%; flex-wrap: wrap; }
    .layout-presets > span { flex: 1 0 100%; }
}

@media (max-width: 600px) {
    .page-header { align-items: flex-start; flex-direction: column; }
    .page-header .btn { width: 100%; }
    .stats-grid, .groups-grid, .settings-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 125px; }
    .gallery-head, .upload-head { align-items: flex-start; flex-direction: column; }
    .gallery-tools { width: 100%; justify-content: space-between; }
    .detail-actions { width: 100%; }
    .detail-actions .btn { flex: 1; }
    .detail-stats { flex-wrap: wrap; gap: 9px; }
    .upload-panel { padding: 16px; }
    .drop-zone { min-height: 210px; text-align: center; padding: 20px; }
    .composer-head, .composer-builder, .r10-preview-panel, .bbcode-output { padding: 16px; }
    .layout-presets button { flex: 1; padding: 0 5px; }
    .composer-row { grid-template-columns: 34px minmax(0, 1fr); }
    .composer-row-items { flex-direction: column; }
    .composer-item { flex-basis: 58px; }
    .composer-item [data-item-new-row] { padding: 0 6px; }
    .composer-item [data-item-new-row] { font-size: 0; }
    .composer-item [data-item-new-row] span { font-size: 12px; }
    .r10-preview-body { min-height: 250px; padding: 12px; }
    .bbcode-output-head { align-items: flex-start; flex-direction: column; }
    .bbcode-output-head .btn { width: 100%; }
    .password-pair, .password-guidance ul { grid-template-columns: 1fr; }
    .password-fields { padding: 18px; }
    .password-form > .form-actions { padding: 16px 18px; }
    .password-form > .form-actions .btn { width: 100%; }
    .image-gallery { gap: 10px; }
    .image-preview { aspect-ratio: 1; }
    .bulk-bar { flex-wrap: wrap; }
    .bulk-divider { display: none; }
    .bulk-bar .danger-link { margin-left: 0; }
    .form-card { padding: 20px; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .result-count { align-self: flex-end; }
    .toast-stack { right: 12px; bottom: 12px; left: 12px; }
    .toast { min-width: 0; max-width: none; }
}
