:root {
  --ink: #17211b;
  --muted: #66736b;
  --line: #dfe5e0;
  --surface: #ffffff;
  --canvas: #f3f5f1;
  --forest: #174c3c;
  --forest-2: #22634f;
  --lime: #d9f55a;
  --orange: #f38b47;
  --red: #c94d55;
  --shadow: 0 14px 38px rgba(28, 52, 39, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--forest); color: #fff; padding: 24px 18px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 28px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-weight: 900; font-size: 14px; letter-spacing: -.04em; transform: rotate(-3deg); }
.brand strong { display: block; letter-spacing: -.02em; }
.brand small { color: #bdd0c6; }
.nav-label { color: #8eb0a0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 16px 12px 8px; }
.nav-item { border: 0; width: 100%; background: transparent; color: #d7e5de; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-align: left; margin: 2px 0; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: #fff; color: var(--forest); font-weight: 750; }
.nav-icon { width: 20px; text-align: center; }
.sidebar-footer { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer span { color: #a9c3b6; font-size: 12px; margin-top: 3px; }
.main { min-width: 0; }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 12px 30px; background: rgba(243,245,241,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.breadcrumbs { color: var(--muted); font-size: 13px; }
.breadcrumbs strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.role-switch { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 34px 9px 12px; color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 800; }
.content { padding: 30px; max-width: 1600px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(27px, 3vw, 40px); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 8px; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--forest-2); font-size: 12px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; margin-bottom: 8px; }
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 15px; border-radius: 10px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 44, 31, .08); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.accent { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -17px; bottom: -21px; width: 65px; height: 65px; border-radius: 50%; background: var(--stat-color, #e7eee9); }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { font-size: 31px; display: block; margin-top: 7px; letter-spacing: -.04em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.card-header h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.card-body { padding: 20px; }
.ticket-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; align-items: center; margin: 0 0 12px; padding: 12px 4px; border-bottom: 1px solid #edf0ed; text-align: left; border-radius: 8px; transition: background-color .2s ease, padding .2s ease; }
.ticket-row:hover { background: #f7faf7; padding-inline: 12px; }
.ticket-row:focus-visible { outline: 3px solid rgba(34,99,79,.18); outline-offset: 2px; }
.ticket-row > div { min-width: 0; display: grid; gap: 4px; }
.ticket-row strong, .ticket-row p { overflow-wrap: anywhere; }
.ticket-row:last-child { margin-bottom: 0; border-bottom: 0; }
.ticket-row strong { font-size: 14px; line-height: 1.35; }
.ticket-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ticket-row > .badge { justify-self: end; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: #e8f0eb; color: var(--forest); font-size: 11px; font-weight: 800; }
.badge.warn { color: #8b451d; background: #fff0e3; }
.badge.done { color: #376011; background: #ecf7d7; }
.badge.dead { color: #973c45; background: #fbe8ea; }
.activity { display: grid; grid-template-columns: 11px 1fr; gap: 13px; padding-bottom: 19px; position: relative; }
.activity::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -3px; width: 1px; background: var(--line); }
.activity:last-child::before { display: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); border: 2px solid var(--forest); margin-top: 3px; z-index: 1; }
.activity p { margin: 0 0 3px; font-size: 13px; }
.activity time { color: var(--muted); font-size: 11px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { min-width: min(320px, 100%); flex: 1; position: relative; }
.search input, .field input, .field select, .field textarea, .toolbar select { width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; border-radius: 10px; color: var(--ink); outline: none; }
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(34,99,79,.1); }
.toolbar select { width: auto; min-width: 140px; }
.view-toggle { display: inline-flex; margin-left: auto; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.view-toggle-button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 7px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.view-toggle-button:hover { color: var(--forest); background: #f1f5f1; }
.view-toggle-button.active { color: var(--forest); background: #e7efe9; }
.ticket-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.ticket-list-row { width: 100%; display: grid; grid-template-columns: minmax(250px, 1.7fr) minmax(70px, .45fr) minmax(145px, .7fr) minmax(130px, .6fr) 18px; gap: 16px; align-items: center; padding: 15px 18px; background: var(--surface); border: 0; border-bottom: 1px solid #edf0ed; text-align: left; }
.ticket-list-row:last-child { border-bottom: 0; }
.ticket-list-row:hover { background: #fbfcfa; }
.ticket-list-row:focus-visible { outline: 3px solid rgba(34,99,79,.2); outline-offset: -3px; }
.ticket-list-primary { min-width: 0; display: grid; gap: 4px; }
.ticket-list-primary strong { font-size: 14px; }
.ticket-list-primary span, .ticket-list-branch, .ticket-list-due { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.ticket-list-branch { font-weight: 800; color: var(--forest); }
.ticket-list-arrow { color: var(--forest); font-size: 24px; line-height: 1; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 970px; }
th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .055em; color: #667269; background: #f8faf8; padding: 13px 14px; border-bottom: 1px solid var(--line); }
th.resizable { resize: horizontal; overflow: auto; min-width: 82px; max-width: 360px; }
.sort-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #edf0ed; font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: #fbfcfa; }
tbody tr:last-child td { border-bottom: 0; }
.checkbox { width: 16px; height: 16px; accent-color: var(--forest); }
.link-btn { color: var(--forest-2); font-weight: 800; background: none; border: 0; padding: 0; }
.row-actions { display: flex; gap: 10px; align-items: center; }
.danger-link { color: #9b3a43; }
/* Permanent deletion is intentionally unavailable from the regular-replacement list. */
[data-delete-regular] { display: none !important; }
.muted { color: var(--muted); }
.kanban { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(255px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.lane { min-width: 0; background: #e9ede8; border-radius: 15px; padding: 12px; min-height: 390px; }
.lane-title { display: flex; justify-content: space-between; align-items: center; padding: 3px 4px 12px; font-size: 13px; font-weight: 800; }
.lane-title span { background: #d5ddd7; border-radius: 99px; min-width: 23px; padding: 3px 7px; text-align: center; }
.ticket-card { width: 100%; min-width: 0; box-sizing: border-box; background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: 12px; margin-bottom: 9px; box-shadow: 0 5px 14px rgba(32,54,41,.05); overflow-wrap: anywhere; }
.ticket-card:hover { border-color: #b3c4ba; }
.ticket-card .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.ticket-card h3 { font-size: 14px; margin: 12px 0 5px; }
.ticket-card p { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.ticket-card footer { display: flex; justify-content: space-between; align-items: center; }
.progress { height: 6px; border-radius: 4px; background: #e4e8e4; overflow: hidden; flex: 1; margin-right: 12px; }
.progress span { height: 100%; display: block; background: var(--lime); }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.settings-menu { padding: 8px; align-self: start; }
.settings-menu button { display: block; width: 100%; border: 0; background: transparent; padding: 11px 12px; border-radius: 9px; text-align: left; color: var(--muted); }
.settings-menu button.active { background: #eef2ee; color: var(--forest); font-weight: 800; }
.user-line { display: flex; align-items: center; gap: 11px; }
.mini-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e7efe9; color: var(--forest); font-weight: 800; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(7,24,16,.48); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 18px; }
.modal { background: #fff; border-radius: 18px; width: min(680px, 100%); max-height: 91vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal.large { width: min(920px, 100%); }
.modal-header { display: flex; align-items: start; justify-content: space-between; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0 0 5px; font-size: 22px; }
.modal-header p { margin: 0; color: var(--muted); font-size: 13px; }
.close { background: #f0f3f0; border: 0; border-radius: 50%; width: 34px; height: 34px; }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.password-control { position: relative; }
.password-control input { padding-right: 46px; }
.password-toggle { position: absolute; top: 50%; right: 7px; width: 32px; height: 32px; transform: translateY(-50%); display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.password-toggle:hover { background: #edf2ee; color: var(--forest); }
.password-toggle:focus-visible { outline: 3px solid rgba(34,99,79,.22); outline-offset: 1px; }
.password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field textarea { resize: vertical; min-height: 86px; }
.field small { color: var(--muted); display: block; margin-top: 5px; }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.detail-section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 13px; }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: 13px; margin-bottom: 24px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 650; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #17251d; color: #fff; padding: 13px 18px; border-radius: 11px; z-index: 100; transform: translateY(30px); opacity: 0; transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #8c2f38; }
.mobile-menu { display: none; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 1.25fr) minmax(420px, .75fr); background: #fff; }
.login-visual { background: var(--forest); color: #fff; padding: 38px clamp(36px, 6vw, 92px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.brand.light { padding-left: 0; }
.brand.light small { color: #b9d0c4; }
.login-message { margin: auto 0; position: relative; z-index: 2; max-width: 680px; }
.login-message .eyebrow { color: var(--lime); }
.login-message h1 { font-size: clamp(46px, 6vw, 82px); line-height: .96; letter-spacing: -.065em; margin: 18px 0 26px; }
.login-message p { color: #c7d8d0; font-size: 18px; line-height: 1.65; max-width: 580px; }
.login-orbit { position: absolute; width: 540px; height: 540px; right: -180px; bottom: -210px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.login-orbit::before, .login-orbit::after { content: ""; position: absolute; inset: 70px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.login-orbit::after { inset: 145px; background: var(--lime); border: 0; opacity: .95; }
.login-orbit span { position: absolute; width: 15px; height: 15px; background: var(--orange); border-radius: 50%; left: 35px; top: 110px; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(420px, 100%); display: grid; gap: 20px; }
.login-card h2 { font-size: 34px; letter-spacing: -.04em; margin: 5px 0; }
.login-card p { color: var(--muted); margin: 0; line-height: 1.6; }
.login-card details { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 13px; }
.login-card summary { cursor: pointer; font-weight: 700; }
.wide { width: 100%; padding: 13px; }
.heading-actions { display: flex; gap: 9px; }
.notification-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: #fff; position: relative; font-size: 18px; }
.notification-button span { position: absolute; top: -5px; right: -4px; min-width: 18px; height: 18px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 800; }
.logout { background: transparent; color: #d5e4dd; border: 0; padding: 10px 0 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.selection-count { background: var(--forest); color: #fff; padding: 8px 11px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 4px; color: var(--muted); font-size: 12px; }
.pagination > div { display: flex; align-items: center; gap: 10px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.report-filters { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.report-filters label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.report-filters input { border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--ink); }
.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(110px,.7fr) 1.5fr 28px; gap: 12px; align-items: center; font-size: 12px; }
.bar-row > div { background: #edf1ed; height: 8px; border-radius: 10px; overflow: hidden; }
.bar-row i { display: block; height: 100%; background: var(--forest-2); border-radius: inherit; }
.audit-card { margin-top: 18px; }
.audit-search { width: min(240px, 100%); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--ink); outline: none; }
.audit-search:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(34,99,79,.1); }
.audit-pagination { padding-inline: 20px; }
.flat { box-shadow: none; border: 0; border-radius: 0; }
.settings-content { min-width: 0; }
.settings-list { padding: 10px 20px 24px; display: grid; gap: 8px; }
.settings-list section h3 { margin: 18px 0 8px; }
.setting-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; }
.setting-row strong { min-width: 170px; }
.setting-row .muted { margin-left: auto; }
.drag { color: #9aa79e; }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #f0f3f0; color: #425046; padding: 4px 7px; border-radius: 6px; font-size: 11px; }
.toggle { border: 0; border-radius: 99px; padding: 7px 10px; background: #f7e7e8; color: #8a3b42; font-size: 11px; font-weight: 800; }
.toggle.on { background: #e8f1df; color: #41631b; }
.permission-grid { padding: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.permission-grid > label { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; }
.permission-grid small { display: block; color: var(--muted); font-family: ui-monospace, monospace; font-weight: 400; margin-top: 3px; }
.permission-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; margin-top: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 4px 0; }
.check-grid label { border: 1px solid var(--line); border-radius: 9px; padding: 9px; font-size: 12px; }
.switch-line { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.ticket-detail { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr); gap: 30px; }
.ticket-detail h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 6px 0 14px; }
.comment-list { display: grid; gap: 9px; max-height: 250px; overflow: auto; }
.comment { background: #f4f6f3; border-radius: 11px; padding: 12px; }
.comment strong { font-size: 12px; }
.comment time { float: right; color: var(--muted); font-size: 10px; }
.comment p { margin: 7px 0 0; font-size: 13px; }
.inline-form { display: flex; gap: 8px; margin: 11px 0 24px; }
.inline-form input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 10px; }
.attachment-list { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin-bottom: 10px; }
.attachment { display: flex; justify-content: space-between; gap: 15px; text-decoration: none; color: var(--forest); border: 1px solid var(--line); padding: 10px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.attachment span { color: var(--muted); font-weight: 400; }
.attachment-list > .muted { grid-column: 1 / -1; }
.attachment-delete { padding: 8px 10px; }
.upload { margin-right: 8px; }
.history-list { max-height: 320px; overflow: auto; padding-right: 6px; }
.export-summary { background: #eef3ef; color: var(--forest); padding: 11px; border-radius: 9px; font-weight: 800; margin-bottom: 15px; }
.export-columns { margin-bottom: 16px; }
.export-column { display: grid; grid-template-columns: 1fr 30px 30px; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; }
.export-column label { border: 0; padding: 2px; }
.board-column-editor { margin: 10px 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; }
.board-column-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.board-column-title input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); }
.board-column-title .switch-line { white-space: nowrap; font-size: 12px; }
.import-drop { display: grid; gap: 8px; padding: 16px; border: 1px dashed #9aaca0; border-radius: 12px; background: #f7faf7; }
.import-drop input { color: var(--ink); }
.import-drop small { color: var(--muted); line-height: 1.5; }
.import-step { margin-top: 22px; }
.import-step h3 { margin: 0 0 5px; font-size: 15px; }
.import-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.import-map label { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(120px, 1.2fr); gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 800; }
.import-map select { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 7px; background: #fff; color: var(--ink); }
.import-preview { margin-top: 20px; padding: 13px; border-radius: 10px; background: #eef3ef; color: var(--forest); }
.import-preview p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.move-column, .order-controls button { border: 1px solid var(--line); background: #f7f9f7; color: var(--forest); border-radius: 7px; height: 29px; font-weight: 800; }
.order-controls { display: inline-flex; gap: 4px; }
.order-controls button { width: 29px; }
.notification-list { display: grid; gap: 7px; }
.notification-item { text-align: left; background: #f7f9f7; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-message { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 0; padding: 4px 0; background: transparent; text-align: left; color: var(--ink); }
.notification-read-button { white-space: nowrap; font-size: 11px; padding: 7px 9px; }
.notification-read-button:disabled { opacity: .65; cursor: default; }
.notification-read { white-space: nowrap; font-size: 11px; padding-right: 4px; }
.notification-item.unread { background: #f4f9d9; border-color: #d8e69a; }
.notification-item time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.empty.small { padding: 24px 10px; }
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .ticket-row { grid-template-columns: minmax(0,1fr) auto; }
  .setting-row { flex-wrap: wrap; }
  .setting-row strong { min-width: 140px; flex: 1; }
  .setting-row .muted { margin-left: 0; }
}
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 330px; }
  .login-message { margin: 40px 0; }
  .login-message h1 { font-size: 48px; }
  .report-grid, .ticket-detail { grid-template-columns: 1fr; }
  .settings-menu { display: flex; overflow: auto; }
  .settings-menu button { width: auto; white-space: nowrap; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -270px; z-index: 30; width: 252px; transition: left .2s ease; }
  .sidebar.open { left: 0; }
  .mobile-menu { display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; width: 38px; height: 38px; }
  .topbar { padding: 10px 16px; }
  .breadcrumbs { display: none; }
  .content { padding: 22px 16px; }
  .page-heading { align-items: start; flex-direction: column; }
  .stats-grid { display: flex; overflow-x: auto; }
  .stat { min-width: 160px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .role-switch { max-width: 165px; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; }
  .permission-grid, .check-grid { grid-template-columns: 1fr; }
  .import-map { grid-template-columns: 1fr; }
  .setting-row { align-items: flex-start; flex-wrap: wrap; }
  .setting-row strong { min-width: 0; flex: 1; }
  .ticket-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; padding: 12px 2px; }
  .ticket-row:hover { padding-inline: 10px; }
  .ticket-row > .badge { justify-self: start; }
  .view-toggle { margin-left: 0; }
  .ticket-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; padding: 14px; }
  .ticket-list-primary { grid-column: 1; }
  .ticket-list-arrow { grid-column: 2; grid-row: 1; }
  .ticket-list-branch { grid-column: 1; grid-row: 2; }
  .ticket-list-stage { grid-column: 2; grid-row: 2; justify-self: end; }
  .ticket-list-due { grid-column: 1 / -1; grid-row: 3; }
}
@media print {
  .sidebar, .topbar, .page-heading .btn, .toolbar { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; }
  .table-wrap { box-shadow: none; border: 0; overflow: visible; }
  table { min-width: 0; font-size: 10px; }
}
