/* ============================================================
   Keroro 운영툴 — 모던 어드민 테마
   (Blazorise Bootstrap 0.9.x 위에 덮어쓰는 커스텀 테마.
    _Host.cshtml 에서 Blazorise CSS 다음에 로드되어야 우선 적용됨)
   ============================================================ */

:root {
    --bg: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e6e9f0;
    --border-strong: #d6dbe6;

    --text: #2b3445;
    --text-strong: #1e293b;
    --muted: #6b7488;
    --muted-2: #98a1b3;

    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-700: #3730a3;
    --primary-soft: #eef0fe;

    --success: #16a34a;
    --success-soft: #e8f6ee;
    --danger: #dc2626;
    --danger-soft: #fdeaea;
    --warning: #d97706;
    --warning-soft: #fdf3e7;
    --info: #0ea5e9;

    --sidebar-bg-1: #232a3b;
    --sidebar-bg-2: #161b29;
    --sidebar-text: #c4cbda;
    --sidebar-muted: #8a93a8;
    --sidebar-active: #ffffff;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md: 0 6px 18px rgba(16, 24, 40, .08);
    --radius: 12px;
    --radius-sm: 8px;

    --font-sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

/* ---------- base ---------- */
html, body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a, .btn-link { color: var(--primary); }
a:hover { color: var(--primary-700); }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

code, kbd { color: var(--primary-700); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd2e0; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aeb7ca; background-clip: content-box; }

/* ---------- layout ---------- */
.b-layout-sider { box-shadow: var(--shadow-md); z-index: 5; }

.b-layout-sider-content,
.b-bar.b-bar-vertical-inline.b-bar-dark {
    background: linear-gradient(185deg, var(--sidebar-bg-1) 0%, var(--sidebar-bg-2) 100%) !important;
}

.b-layout-content {
    background: var(--bg);
    min-height: 100vh;
}
.app-content { padding-top: 1.35rem; padding-bottom: 2rem; }

.b-layout-header.b-layout-header-fixed {
    box-shadow: var(--shadow-sm);
    z-index: 4;
}

/* ---------- sidebar bar ---------- */
.b-bar.b-bar-dark { color: var(--sidebar-text); }

.b-bar-dark .b-bar-brand {
    padding: 1.15rem 1.1rem 0.9rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.b-bar-dark .b-bar-brand .b-bar-link {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.b-bar-dark .b-bar-menu { padding: .5rem .6rem; }

.b-bar-dark .b-bar-item { margin: 1px 0; }

.b-bar-dark .b-bar-link,
.b-bar-dark .b-bar-dropdown > .b-bar-link {
    color: var(--sidebar-text) !important;
    border-radius: var(--radius-sm);
    padding: .58rem .8rem;
    font-size: .92rem;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}

.b-bar-dark .b-bar-link:hover,
.b-bar-dark .b-bar-dropdown > .b-bar-link:hover {
    background-color: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
}

.b-bar-dark .b-bar-link.active,
.b-bar-dark .b-bar-link:active {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}

.b-bar-dark .b-bar-icon { width: 1.5rem; color: var(--sidebar-muted); text-align: center; }
.b-bar-dark .b-bar-link:hover .b-bar-icon,
.b-bar-dark .b-bar-link.active .b-bar-icon { color: inherit; }

/* dropdown submenu */
.b-bar-dark .b-bar-dropdown-menu {
    background: rgba(0, 0, 0, .16);
    border-radius: var(--radius-sm);
    margin: 2px .25rem 4px 1.1rem;
    padding: .25rem;
    border-left: 2px solid rgba(255, 255, 255, .08);
}

.b-bar-dark .b-bar-dropdown-item {
    color: var(--sidebar-text) !important;
    border-radius: 6px;
    padding: .46rem .7rem;
    font-size: .88rem;
}

.b-bar-dark .b-bar-dropdown-item:hover {
    background-color: rgba(255, 255, 255, .09) !important;
    color: #fff !important;
}

.b-bar-dark .b-bar-dropdown-item.active {
    background-color: rgba(79, 70, 229, .55) !important;
    color: #fff !important;
}

/* ---------- header bar ---------- */
.b-layout-header .b-bar.b-bar-light {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
}

.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    width: 100%;
    padding-right: .35rem;
}

/* 언어 전환 토글 (국기 아이콘) */
.lang-switch { display: inline-flex; gap: .3rem; }
.lang-switch__btn {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 6px;
    padding: .2rem .35rem;
    line-height: 0;
    cursor: pointer;
    opacity: .5;
    filter: grayscale(60%);
    transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
}
.lang-switch__btn:hover { opacity: .85; filter: grayscale(0); border-color: var(--muted-2); }
.lang-switch__btn.active {
    opacity: 1;
    filter: grayscale(0);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .18);
}
.lang-switch__btn .fi {
    width: 1.45rem;
    height: 1.05rem;
    border-radius: 2px;
    vertical-align: middle;
}
/* 로그인 화면 상단 우측 */
.login-lang { position: absolute; top: 1.1rem; right: 1.2rem; z-index: 2; }
.app-header__user { font-weight: 600; color: var(--text-strong); }
.app-header__role {
    color: var(--muted);
    font-size: .82rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: .08rem .5rem;
    border-radius: 999px;
    margin-left: .25rem;
}

/* ---------- cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: .85rem 1.15rem;
    font-weight: 700;
}

.card-title { color: var(--text-strong); font-weight: 700; font-size: 1.02rem; }
.card-body { padding: 1.15rem; }

.section-card .card-title { display: flex; align-items: center; }

/* ---------- page heading ---------- */
.page-heading { margin: .35rem 0 1.25rem; }

.page-heading__title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.page-heading__icon {
    color: var(--primary);
    background: var(--primary-soft);
    width: 2.1rem; height: 2.1rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
}

.page-heading__note {
    margin-top: .55rem;
    color: var(--muted);
    font-size: .86rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: .6rem .85rem;
    line-height: 1.6;
}
.page-heading__note b { color: var(--text); }

/* ---------- tables ---------- */
.table {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    color: var(--text);
}

.table thead th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid var(--border) !important;
    border-top: 0 !important;
    padding: .7rem .9rem;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody td {
    padding: .65rem .9rem;
    border-top: 1px solid var(--border) !important;
    vertical-align: middle;
    font-size: .88rem;
}

.table tbody tr:first-child td { border-top: 0 !important; }
.table tbody tr:hover { background: var(--primary-soft); }
.table tbody tr:hover td { background: transparent; }

/* ---------- forms ---------- */
.form-control, .form-control:focus {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: .9rem;
    box-shadow: none;
}
.form-control { transition: border-color .15s ease, box-shadow .15s ease; }
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .14);
}
.form-control::placeholder { color: var(--muted-2); }

select.form-control, select {
    border-radius: var(--radius-sm);
}

/* native date/time/select inputs used on some pages → align with Blazorise */
input[type="date"], input[type="time"], select:not(.custom-select) {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: .35rem .55rem;
    font-size: .9rem;
    color: var(--text);
    background: var(--surface);
}
input[type="date"]:focus, input[type="time"]:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .14);
}

.b-form-field, .form-group { margin-bottom: 1rem; }

.form-group > label, .b-form-field-label label, label.col-form-label {
    font-weight: 600;
    color: var(--text-strong);
    font-size: .85rem;
    margin-bottom: .3rem;
}

.custom-control-label { color: var(--text); }

/* compact inline toolbar (uid 입력 + 조회 버튼 등) */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.toolbar .form-control, .toolbar input { width: auto; }

/* ---------- buttons ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .88rem;
    padding: .42rem .95rem;
    transition: filter .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, .28);
}
.btn-primary:hover { filter: brightness(1.06); background: linear-gradient(90deg, var(--primary) 0%, var(--primary-600) 100%); }

.btn-secondary {
    color: var(--text-strong);
    background: var(--surface);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--text-strong); border-color: var(--muted-2); }

.btn-danger {
    background: var(--danger); border: none; color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, .25);
}
.btn-danger:hover { filter: brightness(1.06); background: var(--danger); }

/* 작은 표 안의 액션 버튼 */
.table .btn, td .btn {
    padding: .28rem .65rem;
    font-size: .8rem;
}

/* raw <button> (Blazorise 미적용) 도 보기좋게 — 표 내부 액션 */
.table button:not(.btn), td button:not(.btn) {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    padding: .26rem .6rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.table button:not(.btn):hover, td button:not(.btn):hover {
    background: var(--surface-2);
    border-color: var(--muted-2);
}

/* ---------- badges / status pills ---------- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .76rem;
    font-weight: 700;
    padding: .14rem .55rem;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}
.status-pill::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}
.status-pill--on { color: var(--success); background: var(--success-soft); }
.status-pill--wait { color: var(--warning); background: var(--warning-soft); }
.status-pill--off { color: var(--muted); background: var(--surface-2); }
.status-pill--danger { color: var(--danger); background: var(--danger-soft); }

.txt-up { color: var(--success); font-weight: 700; }
.txt-down { color: var(--danger); font-weight: 700; }

/* ---------- dashboard ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card__icon {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--primary);
    background: var(--primary-soft);
}
.stat-card__icon--green { color: var(--success); background: var(--success-soft); }
.stat-card__icon--amber { color: var(--warning); background: var(--warning-soft); }
.stat-card__icon--sky { color: var(--info); background: #e6f6fe; }
.stat-card__body { min-width: 0; }
.stat-card__label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat-card__value { color: var(--text-strong); font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.stat-card__unit { font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: .15rem; }

.kv-table { max-width: 560px; }
.kv-table th { width: 45%; color: var(--muted); font-weight: 600; }

/* BI 추이 SVG 차트 */
.trend-legend { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; font-size: .82rem; color: var(--muted); }
.trend-legend__item { display: inline-flex; align-items: center; gap: .3rem; }
.trend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.trend-legend__max { margin-left: auto; font-size: .76rem; color: var(--muted-2); }
.trend-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted-2); margin-top: .2rem; }

.section-label {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.05rem; font-weight: 700; color: var(--text-strong);
    margin: 1.6rem 0 .9rem;
}
.section-label .btn { margin-left: auto; }

/* 대시보드 바로가기 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .9rem;
}
.quick-card {
    display: flex; align-items: center; gap: .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .95rem 1.05rem;
    color: var(--text);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--text);
    text-decoration: none;
}
.quick-card__icon {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px;
    font-size: 1.1rem; color: var(--primary); background: var(--primary-soft);
}
.quick-card__title { font-weight: 700; color: var(--text-strong); font-size: .95rem; }
.quick-card__desc { color: var(--muted); font-size: .8rem; }
.quick-card__arrow { margin-left: auto; color: var(--muted-2); }

/* ---------- result modal ---------- */
.result-modal__message {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .92rem;
    color: var(--text);
    line-height: 1.6;
}

/* ---------- confirm(경고) modal ---------- */
.confirm-modal__message {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .9rem;
    color: var(--text);
    line-height: 1.6;
    background: var(--danger-soft);
    border-radius: var(--radius-sm);
    padding: .8rem .9rem;
}
.confirm-modal__word { font-size: .85rem; color: var(--text); margin: .9rem 0 .4rem; }
.confirm-modal__word b { color: var(--danger); }
.confirm-modal__error { color: var(--danger); font-size: .8rem; margin-top: .35rem; }

/* ---------- login ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(79, 70, 229, .18), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(14, 165, 233, .14), transparent 55%),
        linear-gradient(160deg, #1e2536 0%, #0f1422 100%);
    padding: 1.5rem;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    padding: 2rem 1.9rem;
}
.login-card__brand {
    text-align: center;
    margin-bottom: 1.4rem;
}
.login-card__logo {
    width: 52px; height: 52px;
    margin: 0 auto .7rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
    color: #fff; font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .4);
}
.login-card__title { font-size: 1.18rem; font-weight: 800; margin: 0; }
.login-card__sub { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.login-divider {
    display: flex; align-items: center; gap: .7rem;
    color: var(--muted-2); font-size: .76rem;
    margin: 1.2rem 0 1rem;
}
.login-divider::before, .login-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}
.login-msg {
    margin-top: 1rem;
    text-align: center;
    font-size: .85rem;
    padding: .55rem .7rem;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
}
.login-msg--ok { background: var(--success-soft); color: var(--success); }
.login-foot {
    margin-top: 1.1rem;
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
}
.login-foot a { font-weight: 600; margin-left: .25rem; }

/* ---------- misc utility ---------- */
.muted-note { color: var(--muted); font-size: .85rem; }
.count-badge {
    font-size: .78rem; font-weight: 700; color: var(--primary);
    background: var(--primary-soft); padding: .05rem .5rem; border-radius: 999px;
    margin-left: .4rem;
}

/* ---------- blazor error ui ---------- */
#blazor-error-ui {
    background: #1e293b;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .3);
    display: none;
    left: 0;
    padding: 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .reload { color: #93c5fd; }
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.9rem;
    top: 0.6rem;
}

.validation-message { color: var(--danger); }
.invalid { outline: 1px solid var(--danger); }
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }

/* ---------- 유저 지정 입력기 (UserPicker) ---------- */
.user-picker { width: 100%; }
.user-picker__notice { margin-top: -.35rem; margin-bottom: .5rem; }
/* 현재 지정된 대상 — 우편 발송·제재처럼 되돌리기 어려운 액션 옆이라, 누구를 대상으로 하는지 항상 보이게 한다. */
.user-picked {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .18rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: var(--primary-soft);
    color: var(--primary-700);
    font-size: .8rem;
}
.user-picked .muted-note { font-size: .72rem; }

/* ---------- 언어별 분기 입력기 (LocalizedTextEdit) ---------- */
.loc-edit { width: 100%; }
.loc-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    margin-bottom: .35rem;
}
.loc-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
    padding: .16rem .5rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
}
.loc-chip:hover { border-color: var(--primary); color: var(--primary); }
.loc-chip--on {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-700);
}
.loc-chip--clear { border-style: dashed; }
.loc-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--success);
}
.loc-count { margin-left: .35rem; font-size: .72rem; }
.loc-hint { font-size: .72rem; margin-top: .25rem; }

/* ---------- 보상 N개 입력기 (RewardListPicker) ---------- */
.reward-list { width: 100%; }
.reward-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    padding: .3rem 0;
}
.reward-row + .reward-row { border-top: 1px dashed var(--border); }
.reward-index {
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted-2);
    min-width: 1.6rem;
}
.reward-row-remove {
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--danger);
    border-radius: 6px;
    font-size: .78rem;
    line-height: 1;
    padding: .3rem .5rem;
    cursor: pointer;
}
.reward-row-remove:hover { border-color: var(--danger); background: var(--danger-soft); }
.reward-list-foot {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .4rem;
}

/* 파일 끌어다 놓기 영역 — 투명한 file input 이 영역 전체를 덮어 클릭·드롭을 브라우저가 그대로 받는다 */
.file-drop {
    position: relative;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
    padding: 1.4rem 1rem;
    text-align: center;
    transition: border-color .15s, background .15s, color .15s;
}
.file-drop input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.file-drop:hover,
.file-drop.is-over { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.file-drop.has-file { border-style: solid; color: var(--text); }
.file-drop-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
