:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --border: #e3e6ef;
  --text: #1b1f2e;
  --muted: #6b7289;
  --accent: #4f46e5;
  --accent-600: #4338ca;
  --accent-soft: #eef0ff;
  --danger: #dc2626;
  --danger-soft: #fee9e9;
  --ok: #16a34a;
  --mark: #fff0a8;
  --shadow: 0 1px 2px rgba(20, 24, 50, .06), 0 4px 16px rgba(20, 24, 50, .06);
  --shadow-lg: 0 10px 40px rgba(20, 24, 50, .22);
  --radius: 14px;

  --c-pdf: #e5484d;
  --c-word: #2f6fed;
  --c-excel: #1f9d55;
  --c-powerpoint: #e8742a;
  --c-image: #8b5cf6;
  --c-text: #64748b;
  --c-archive: #b7791f;
  --c-other: #6b7289;
}

:root[data-theme="dark"] {
  --bg: #0f1220;
  --surface: #171b2e;
  --surface-2: #1e2339;
  --border: #2a3050;
  --text: #e8eaf5;
  --muted: #8c93b3;
  --accent: #7c83ff;
  --accent-600: #9298ff;
  --accent-soft: #232a55;
  --danger: #f87171;
  --danger-soft: #3a1f26;
  --mark: #6b5a00;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans Armenian", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- Կոճակներ և դաշտեր ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 600;
  transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-600); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg, .ico { width: 18px; height: 18px; flex: none; }

.field {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); outline: none; transition: .15s;
}
textarea.field { height: auto; padding: 10px 12px; resize: vertical; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }

/* ---------- Մուտքի էջ ---------- */
.login-wrap {
  min-height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 10% -10%, #c7cbff55, transparent 60%),
    radial-gradient(700px 500px at 110% 110%, #ffd6f155, transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow-lg);
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .4);
}
.login-card h1 { font-size: 22px; margin: 26px 0 4px; }
.login-card form { display: grid; gap: 16px; margin-top: 22px; }
.error-box {
  background: var(--danger-soft); color: var(--danger); padding: 10px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
}

/* ---------- Հիմնական դասավորություն ---------- */
.app { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: auto 1fr; height: 100%; }
.topbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.search { flex: 1; min-width: 0; max-width: 720px; position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; height: 44px; padding: 0 44px 0 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); outline: none; transition: .15s;
}
.search input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search .clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted);
}
.search .clear:hover { background: var(--border); }
.spacer { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; position: relative;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.user-chip .meta { line-height: 1.15; text-align: left; padding-right: 6px; }
.user-chip .meta b { display: block; font-size: 13.5px; }
.user-chip .meta span { font-size: 12px; color: var(--muted); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40;
}
.menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; background: transparent; border-radius: 8px;
}
.menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 18px 16px 28px; overflow-y: auto;
}
.side-sec { margin-bottom: 24px; }
.side-sec h4 {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.side-sec h4 button { border: 0; background: none; color: var(--accent); font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; cursor: pointer; user-select: none;
}
.opt:hover { background: var(--surface-2); }
.opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.opt .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .count { font-size: 12.5px; color: var(--muted); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }
.opt.on { background: var(--accent-soft); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid transparent; font-size: 13px; cursor: pointer; color: var(--text);
}
.tag:hover { border-color: var(--accent); }
.tag.on { background: var(--accent); color: #fff; }
.tag small { opacity: .65; }
.daterow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.daterow .field { min-width: 0; }
.daterow .field { height: 36px; padding: 0 8px; font-size: 13.5px; }
.storage { font-size: 13px; color: var(--muted); padding: 12px; border-radius: 12px; background: var(--surface-2); }

.main { min-width: 0; overflow-y: auto; padding: 22px 26px 40px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h2 { margin: 0; font-size: 20px; }
.toolbar .count { color: var(--muted); font-weight: 500; font-size: 15px; margin-left: 6px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; width: 40px; height: 38px; display: grid; place-items: center; color: var(--muted); }
.seg button.on { background: var(--accent-soft); color: var(--accent); }
select.field { width: auto; padding-right: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}
.chip button { border: 0; background: transparent; width: 20px; height: 20px; border-radius: 50%; color: inherit; line-height: 1; }
.chip button:hover { background: var(--accent); color: #fff; }

.bulkbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px;
  background: var(--accent); color: #fff; border-radius: 12px; box-shadow: var(--shadow);
}
.bulkbar .btn { background: rgba(255,255,255,.16); border-color: transparent; color: #fff; }
.bulkbar .btn:hover { background: rgba(255,255,255,.28); }

/* ---------- Ֆայլերի ցանց և ցուցակ ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: .15s; min-width: 0;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.card.sel { border-color: var(--accent); background: var(--accent-soft); }
.card .top { display: flex; align-items: center; gap: 12px; padding-right: 22px; }
.ftype {
  width: 46px; height: 52px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 11.5px; letter-spacing: .03em; color: #fff; text-transform: uppercase;
  background: var(--c, var(--c-other)); position: relative; overflow: hidden;
}
.ftype::after {
  content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px;
  background: linear-gradient(225deg, var(--surface) 50%, rgba(0,0,0,.18) 50%);
}
.k-pdf { --c: var(--c-pdf); } .k-word { --c: var(--c-word); } .k-excel { --c: var(--c-excel); }
.k-powerpoint { --c: var(--c-powerpoint); } .k-image { --c: var(--c-image); } .k-text { --c: var(--c-text); }
.k-archive { --c: var(--c-archive); } .k-other { --c: var(--c-other); }
.card .title { font-weight: 700; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12.5px; color: var(--muted); }
.card .snip { font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 8px 10px; border-radius: 8px; word-break: break-word; }
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.card .tags span { font-size: 12px; background: var(--surface-2); padding: 2px 8px; border-radius: 999px; color: var(--muted); }
.card .check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; accent-color: var(--accent); opacity: 0; transition: .1s; }
.card:hover .check, .card.sel .check, .selecting .card .check { opacity: 1; }

.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 160px 90px 140px 96px; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row.sel { background: var(--accent-soft); }
.row.head { cursor: default; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
.row.head:hover { background: var(--surface-2); }
.row .nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .nm .ftype { width: 32px; height: 36px; font-size: 9.5px; border-radius: 7px; }
.row .nm .ftype::after { width: 10px; height: 10px; }
.row .nm div { min-width: 0; }
.row .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .acts { display: flex; gap: 4px; justify-content: flex-end; }
.row input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.row .cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13.5px; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty h3 { color: var(--text); margin: 0 0 6px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager .btn { min-width: 38px; padding: 0 10px; }
.pager .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Մոդալներ, նախադիտում ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(10, 12, 28, .55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; z-index: 60; animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface);
  border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.modal.wide { max-width: 1100px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 20px; display: grid; gap: 16px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.drop {
  border: 2px dashed var(--border); border-radius: 16px; padding: 34px 20px; text-align: center; cursor: pointer;
  transition: .15s; background: var(--surface-2);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .big { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.queue { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.qitem { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; }
.qitem .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #a855f7); transition: width .15s; }

.preview-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 60vh; }
.preview-pane { background: var(--surface-2); display: grid; place-items: center; min-height: 420px; overflow: hidden; }
.preview-pane iframe { width: 100%; height: 100%; min-height: 70vh; border: 0; background: #fff; }
.preview-pane img { max-width: 100%; max-height: 74vh; object-fit: contain; }
.preview-pane pre {
  margin: 0; padding: 18px; width: 100%; height: 100%; max-height: 74vh; overflow: auto; white-space: pre-wrap;
  word-break: break-word; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; align-self: start;
}
.noprev { text-align: center; padding: 30px; color: var(--muted); }
.noprev .ftype { width: 80px; height: 92px; font-size: 18px; margin: 0 auto 16px; }
.noprev .ftype::after { width: 22px; height: 22px; }
.info { padding: 20px; display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--border); }
.info dl { margin: 0; display: grid; gap: 10px; }
.info dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.info dd { margin: 2px 0 0; word-break: break-word; }
.info .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.info .tags .tag { cursor: pointer; }
.info .actions { display: grid; gap: 8px; }
.textprev { max-height: 180px; overflow: auto; font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 10px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; }

.utable { width: 100%; border-collapse: collapse; }
.utable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; }
.utable td { padding: 10px; border-top: 1px solid var(--border); }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); }
.badge.admin { background: var(--accent-soft); color: var(--accent); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.formgrid .full { grid-column: 1 / -1; }

.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 100; }
.toast {
  background: #1b1f2e; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 240px; animation: slide .2s; font-weight: 600;
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }

.dragveil {
  position: fixed; inset: 0; z-index: 50; background: rgba(79, 70, 229, .12); border: 3px dashed var(--accent);
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--accent); pointer-events: none;
}

.menu-btn { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar { gap: 8px; padding: 10px 12px; }
  .logo span, .topbar .spacer { display: none; }
  .toolbar .spacer { display: none; }
  .toolbar h2 { flex: 1 1 100%; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 300px; max-width: 86vw; z-index: 55;
    transform: translateX(-100%); transition: .2s;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; }
  .main { padding: 16px; }
  .user-chip .meta { display: none; }
  .row { grid-template-columns: 24px minmax(0, 1fr) 84px; }
  .row .hide-m { display: none; }
  .row.head { display: none; }
  .preview-wrap { grid-template-columns: 1fr; }
  .info { border-left: 0; border-top: 1px solid var(--border); }
  .btn .label-d { display: none; }
}

/* ---------- Պիտակների ընտրիչ ---------- */
.tp-sel { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; margin-bottom: 8px; }
.tp-ex { display: flex; flex-wrap: wrap; gap: 6px; max-height: 128px; overflow: auto; }
.tp .tag { user-select: none; }

/* ---------- Գործող/ոչ գործող, խմբեր, կիսվել ---------- */
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 36px; height: 20px; border-radius: 999px; background: var(--border); position: relative; transition: .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: .15s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-soft); }
.switch span { font-size: 13px; font-weight: 600; }

.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap; }
.pill.warn { background: var(--danger-soft); color: var(--danger); }
.pill.ok { background: #16a34a22; color: var(--ok); }
.vis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.auds { display: flex; flex-wrap: wrap; gap: 4px; }
.card.off, .row.off { opacity: .6; }
.card.off:hover, .row.off:hover { opacity: 1; }
.info dd.auds { margin-top: 6px; }

.list.adm .row { grid-template-columns: 28px minmax(0, 1fr) 210px 130px 80px 130px 100px; }
.row .scell { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.aud-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.aud-txt b { color: var(--danger); font-weight: 700; }

.vis-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.audbox { display: flex; flex-wrap: wrap; gap: 8px; }
.audopt { position: relative; cursor: pointer; }
.audopt input { position: absolute; opacity: 0; width: 0; height: 0; }
.audopt span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; transition: .15s; }
.audopt:hover span { border-color: var(--accent); }
.audopt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.audopt input:checked + span::before { content: "✓"; }
.audopt input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.aud-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.aud-hint.warn { color: var(--danger); }

.modal.md { max-width: 760px; }
.qlist { display: grid; gap: 6px; }
.linkrow { display: flex; gap: 8px; }
.linkrow .field { flex: 1; min-width: 0; }
.ok-box { background: #16a34a22; color: var(--ok); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.note-box { background: var(--surface-2); border: 1px solid var(--border); padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.shgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shgrid .btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--muted)); flex: none; }
.shgrid [data-p=gmail] { --pc: #ea4335; } .shgrid [data-p=outlook] { --pc: #0078d4; }
.shgrid [data-p=outlooklive] { --pc: #0a64ad; } .shgrid [data-p=yahoo] { --pc: #6001d2; }
.shgrid [data-p=telegram] { --pc: #229ed9; } .shgrid [data-p=whatsapp] { --pc: #25d366; }
.shrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.shrow:first-child { border-top: 0; }
.shrow.off { opacity: .6; }

@media (max-width: 900px) {
  .list.adm .row { grid-template-columns: 24px minmax(0, 1fr) 84px; }
  .linkrow { flex-direction: column; }
}
