* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[v-cloak] { display: none; }

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1a1d26;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --danger: #dc2626;
  --ok: #059669;
  --warn: #d9930d;
  --border: #e8eaf2;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --radius: 16px;
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--grad);
}
.login-card {
  background: var(--card);
  border-radius: 22px;
  padding: 34px 26px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 18px 50px rgba(20,20,60,.28);
  animation: fadeUp .35s ease both;
}
.login-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(37,99,235,.35);
}
.login-logo svg { width: 28px; height: 28px; stroke: #fff; }
.login-card h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafbfd;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}

button {
  min-height: 46px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  background: var(--grad);
  color: #fff;
  transition: transform .12s, box-shadow .18s, opacity .18s, background .18s, color .18s, border-color .18s;
}
button:active { transform: scale(.97); }
button:disabled { opacity: .55; cursor: default; transform: none; }

.app-wrap { padding-bottom: 86px; animation: fadeIn .2s ease; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px calc(14px + 6px);
  background: var(--grad);
  color: #fff;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 24px rgba(37,99,235,.28);
}
.topbar-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar-brand {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}
.topbar-title {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.topbar .badge { background: rgba(255,255,255,.22); color: #fff; }
.topbar-meta { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.ola-badge {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ola-ico { width: 18px; height: 18px; flex: none; }
.ola-left {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  opacity: .75;
  margin-left: 0;
  margin-top: 2px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.ola-left.overdue { color: #ff4d4f; opacity: 1; }
.ola-left.ola-ok { color: #16a34a; opacity: 1; }
.ola-left.ola-warn { color: #d97706; opacity: 1; }
.ola-left.ola-soon { color: #ea580c; opacity: 1; }
.ola-left.ola-over { color: #ff4d4f; opacity: 1; }
.card-ola.ola-ok { background: #DCFCE7; color: #15803d; }
.card-ola.ola-warn { background: #FEF9C3; color: #A16207; }
.card-ola.ola-soon { background: #FFEDD5; color: #C2410C; }
.card-ola.ola-over { background: #FEE2E2; color: #B91C1C; }
.x5-comment {
  background: #f0f4ff;
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9rem;
  margin: 10px 0;
}
.itsm-comment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f4ff;
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9rem;
}
.itsm-comment-text { flex: 1; min-width: 0; word-break: break-word; }
.itsm-comment-pen {
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.itsm-comment-pen:hover { border-color: var(--accent); background: #f8faff; }
.route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 30px;
  margin-left: 8px;
  vertical-align: middle;
}
.route-btn img { width: 100%; height: 100%; object-fit: contain; }
.store-line { display: block; }
.h3-route { margin-left: 8px; vertical-align: -4px; }
.card { position: relative; }
.card-route { position: absolute; right: 14px; bottom: 12px; margin-left: 0; width: 28px; height: 28px; background: #FDECEC; border-radius: 50%; padding: 6px; }
.card-route img { width: 100%; height: 100%; object-fit: contain; }
.btn-icon {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-radius: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon:active { background: rgba(255,255,255,.3); }
.btn-icon.on { background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }

.tabs {
  display: flex;
  gap: 8px;
  margin: 16px 16px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  background: transparent;
  color: #9aa1ac;
  border: none;
  border-radius: 14px;
  padding: 9px 18px;
  font-size: .95rem;
  font-weight: 600;
}
.tabs button.on {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 6px 16px rgba(16,24,40,.06);
}
.tabs b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: transparent;
  color: #9aa1ac;
  font-size: .82rem;
  font-weight: 700;
  vertical-align: 1px;
  transition: background .18s, color .18s;
}
.tabs button.on b { background: #4F46E5; color: #fff; }

.net-ico {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
.net-ico > button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  box-shadow: none;
  color: inherit;
  opacity: .6;
  transition: opacity .2s ease;
}
.net-ico > button.on { opacity: 1; }
.net-ico-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.net-ico-btn svg { display: block; width: 24px; height: 24px; flex: none; }
.net-ico > button.on .net-ico-btn {
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  transform: scale(1.12);
}
.net-ico > button.on .net-ico-all { border-color: #64748b; }
.net-ico > button.on .net-ico-ch  { border-color: #eab308; }
.net-ico > button.on .net-ico-py  { border-color: #e30611; }

.filters {
  display: flex;
  gap: 12px;
  padding: 14px 16px 6px;
}
.filters input {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%239AA1AC' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}
.filters input:focus { box-shadow: var(--shadow-sm), 0 0 0 3px rgba(37,99,235,.14); }
.filters select {
  width: 168px;
  min-height: 48px;
  flex: none;
  border: none;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  appearance: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 13px 34px 13px 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), radial-gradient(circle closest-side, var(--dot-color, #C0860F) 99%, transparent 100%);
  background-size: 12px 12px, 9px 9px;
  background-repeat: no-repeat, no-repeat;
  background-position: right 14px center, 15px center;
}

.pad { padding: 12px 16px; }
.muted { color: var(--muted); }
.error { color: var(--danger); margin-top: 10px; }
.form-ok { background: #DCFCE7; color: #15803d; border-radius: 8px; padding: 8px 12px; font-size: .85rem; margin: 6px 0; }

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 44px 0;
  color: var(--muted);
  font-size: .9rem;
}
.loader::before {
  content: '';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3.5px solid #dfe3f0;
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 52px 20px;
  color: var(--muted);
  animation: fadeIn .25s ease;
}
.empty svg { width: 52px; height: 52px; stroke: #c3c9da; }
.empty p { font-size: .95rem; }

.feed-more {
  text-align: center;
  padding: 12px 16px 28px;
  color: var(--muted);
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}

.cards { list-style: none; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--card);
  border: none;
  border-radius: 18px;
  padding: 16px 16px 14px 21px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16,24,40,.04), 0 10px 24px rgba(16,24,40,.06);
  animation: fadeUp .3s ease both;
  transition: transform .14s, box-shadow .18s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: #2FBF8F;
}
.card.warn::before { background: #F2994A; }
.card.breached { background: #FEF2F2; }
.card.breached::before { background: #DC2626; }
.card:active { transform: scale(.985); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; } 
.card-head-right { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; }
.card-head-right .badge { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; flex: 0 1 auto; min-width: 0; font-weight: 400; }  
@media (max-width: 500px) {
  .card-head-right .badge { padding: 4px 8px; font-size: .72rem; }
}
.rid {
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -.1px;
  color: #5A55D2;
  white-space: nowrap;
  flex: 0 0 auto;
} 
.rid.rid-long { font-size: .56rem; letter-spacing: -.4px; }
.topbar-title.rec-long { font-size: .85rem; }
.card-ola {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FEF9C3;
  color: #A16207;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.card-ola-row { display: flex; align-items: center; justify-content: flex-end; }
.card-assignee { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-taken { color: var(--ok); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-engineer { color: var(--muted); font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 5px; flex: none; }
.card-engineer b { font-weight: 500; }
.eng-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eng-row-left { display: inline-flex; align-items: center; min-width: 0; }
.left-group { color: var(--warn, #d9930d); }
.left-group .eng-icon { color: var(--warn, #d9930d); }
.eng-unassign {
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #dc2626;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
}
.eng-unassign:hover { background: #fee2e2; } 
.card-engineer svg { width: 17px; height: 17px; flex: none; color: #9AA1AC; }
.desc .eng-icon { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; color: var(--accent); }
.store-ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: #F1F2F5;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.store-ico svg { width: 18px; height: 18px; color: #6B7280; }
.card-store { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: #9AA1AC; font-weight: 600; min-width: 0; }
.card-store b { font-weight: 700; color: #111827; font-size: 1rem; }
.card-store-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.card-title { margin: 10px 0 0; font-size: .94rem; line-height: 1.35; font-weight: 500; color: #24262B; }
.card-meta { font-size: .9rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.card-foot { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed #E4E6EA; font-size: .78rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.card-foot svg { width: 14px; height: 14px; vertical-align: -3px; margin-right: 5px; color: #B0B6BF; }
.breach { color: var(--danger); font-weight: 600; }
.taken { color: var(--ok); font-weight: 600; }

.badge {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--badge-default-bg, #e22400);
  color: var(--badge-default-fg, #ffffff);
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.badge.assigned { background: var(--badge-assigned-bg, #00a1d8); color: var(--badge-assigned-fg, #ffffff); }
.badge.work     { background: var(--badge-work-bg, #669d34); color: var(--badge-work-fg, #ffffff); }
.badge.final    { background: var(--badge-final-bg, #6a42ec); color: var(--badge-final-fg, #ffffff); }
.badge.closed   { background: var(--badge-closed-bg, #707070); color: var(--badge-closed-fg, #ffffff); }
.badge.wait     { background: var(--badge-wait-bg, #e292fe); color: var(--badge-wait-fg, #ffffff); }

.net-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.net-badge.chizhik     { background: rgba(225,29,72,.1); color: #e11d48; }  
.net-badge.pyaterochka { background: rgba(5,150,105,.1); color: #059669; }  

.detail { padding: 16px; animation: slideIn .22s ease; }
.detail h2 { font-size: 1.14rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; letter-spacing: -.01em; }
.detail h3 { font-size: 1rem; font-weight: 700; margin: 22px 0 10px; letter-spacing: -.01em; }
.desc {
  white-space: pre-wrap;
  font-size: .92rem;
  line-height: 1.5;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 13px 15px;
  margin-bottom: 14px;
}
.fields { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 4px 16px; }
.fields > div { display: flex; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.fields > div:last-child { border-bottom: none; }
.fields dt { width: 116px; flex: none; color: var(--muted); }
.fields dd { flex: 1; word-break: break-word; }

.loc-block { animation: fadeUp .25s ease both; }
.loc-block h3 { display: flex; align-items: center; gap: 8px; }
.loc-block h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}
.loc-fields { box-shadow: var(--shadow-sm); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.detail > button { width: 100%; margin-top: 16px; }
.actions .btn-main { flex: 1 1 100%; min-height: 48px; font-weight: 600; }
.actions button { min-height: 48px; }
.act-icon { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.act-icon svg { width: 22px; height: 22px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.3); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 6px 16px rgba(220,38,38,.25); }
.btn-ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--border); }

.user-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 15px;
}
.user-form input, .user-form select {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: .92rem;
  background: var(--bg);
  color: var(--text);
}
.user-form button { min-height: 46px; font-weight: 600; }
.user-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.user-actions select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .85rem;
  background: var(--card);
  color: var(--text);
  flex: none;
}
.user-actions button { flex: 1; min-height: 40px; font-size: .85rem; font-weight: 600; padding: 6px 10px; }

.comments { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.comments li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 11px 14px;
  font-size: .9rem;
  line-height: 1.45;
  animation: fadeUp .25s ease both;
}
.comments li .muted { font-size: .8rem; margin-left: 6px; }
.comments li div { margin-top: 4px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 30;
  will-change: transform;
}
.bottomnav button {
  flex: 1;
  min-height: 46px;  background: none;
  color: var(--muted);
  border: none;
  border-radius: 0;
  padding: 5px 4px 6px;
  font-size: .7rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: color .18s;
}
.bottomnav button svg { width: 19px; height: 19px; transition: transform .18s; }
.bottomnav button.on { color: var(--accent); }
.bottomnav button.on svg { transform: translateY(-1px); }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(20,22,40,.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
  animation: fadeIn .18s ease;
}
.modal {
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 480px;
  animation: fadeUp .25s ease;
}
.modal h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.modal .warn { color: var(--danger); font-size: .88rem; line-height: 1.45; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 12px; margin-top: 14px; }
.modal-actions button { flex: 1; min-height: 48px; font-weight: 600; }

.modal.close-modal {
  width: calc(100% - 5%);
  max-width: 684px; 
  max-height: 92vh;
  overflow-y: auto;
}

.close-files { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.file-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: .88rem; cursor: pointer; }
.file-hint { color: var(--muted); font-size: .78rem; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; font-size: .86rem; }
.file-list .file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
.file-list .file-del { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .9rem; padding: 2px 6px; }

.dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 10px; transition: border-color .15s ease, background .15s ease; }
.dropzone.drop-over { border-color: var(--accent); background: rgba(37,99,235,.07); }

@media (hover: hover) {
  .card:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.09); }
  .btn-ghost:hover { border-color: #d3d7e4; }
  .tabs button:not(.on):hover { color: var(--text); }
  .net-ico > button:not(.on):hover { opacity: .85; }
  .net-ico > button:not(.on):hover .net-ico-btn { border-color: rgba(255,255,255,.7); }
}

@media (min-width: 720px) {
  .app-wrap { max-width: 720px; margin: 0 auto; }
  .topbar { border-radius: 0 0 24px 24px; }
  .modal-back { align-items: center; }
  .modal { border-radius: 20px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.att-block { margin: 14px 0; }
.att-block h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.att-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.att-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
}
.att-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent); }
.att-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-tag { color: var(--muted); font-size: .78rem; }
.att-size { flex: 0 0 auto; color: var(--muted); font-size: .78rem; }
@media (hover: hover) { .att-item a:hover { border-color: var(--accent); } }
.card-store .store-link{color:inherit;text-decoration:none}.card-store .store-link b{font-weight:700}

.badge-ok { background: #d1fae5; color: #047857; border-radius: 6px; padding: 1px 8px; font-size: .75rem; }
.badge-warn { background: #e07b39; color: #ffffff; border-radius: 999px; padding: 4px 10px; font-size: .75rem; }
.badge-muted { background: #e5e7eb; color: #6b7280; border-radius: 6px; padding: 1px 8px; font-size: .75rem; } 

.sol-box {
  background: #F5F0FF;
  border-left: 4px solid #8B5CF6;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0;
  white-space: pre-line;
  font-size: .92rem;
}
.sol-box p { margin: 4px 0; }
.sol-box b { color: #6D28D9; }

.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.store-btn { position: relative; }
.store-items-wrap { padding-bottom: 24px; }
.store-items-wrap .pad { padding: 16px; }
.notif-item { padding: 12px 14px; cursor: pointer; }
.notif-item.unread { background: #eff6ff; }
.notif-item .notif-title { font-weight: 600; font-size: 14px; }
.notif-item .notif-body { font-size: 13px; color: #374151; margin-top: 2px; }
.notif-item .notif-time { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.notif-empty { padding: 30px 16px; text-align: center; color: #9ca3af; }

.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:14px 4px;cursor:pointer;border-bottom:1px solid #e5e7eb;margin-bottom:16px}
.funcs-block .toggle-row{border-bottom:1px solid var(--border,#e5e7eb);margin-bottom:0}
.funcs-block .toggle-row:last-child{border-bottom:none;margin-bottom:4px}
.remind-block .toggle-row:only-of-type{border-bottom:none;margin-bottom:0}
.ppr-block .toggle-row{border-bottom:none;margin-bottom:0}
.x5-down-banner{margin:10px 16px 0;padding:10px 14px;background:#FEF3C7;border:1px solid #F59E0B;border-radius:10px;color:#92400E;font-size:13px;font-weight:500;line-height:1.4}
.returned-banner{margin:10px 16px 0;padding:10px 14px;background:#FEE2E2;border:1px solid #EF4444;border-radius:10px;color:#991B1B;font-size:13px;font-weight:500;line-height:1.4}
.toggle-label{font-size:15px;color:#111827}
.toggle-input{position:absolute;opacity:0;width:0;height:0}
.toggle-slider{position:relative;width:51px;height:31px;flex:0 0 51px;background:#e9e9ea;border-radius:31px;transition:background .2s ease}
.toggle-slider::before{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.25);transition:transform .2s ease}
.toggle-input:checked + .toggle-slider{background:#34c759}
.toggle-input:checked + .toggle-slider::before{transform:translateX(20px)}

.remind-block{margin:14px 0 16px;padding:12px 14px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px}
.remind-title{font-weight:600;font-size:14px;color:#111827}
.remind-sub{font-size:12px;color:#6b7280;margin-top:4px;margin-bottom:6px}

.push-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;margin:14px 0 16px}
.push-title{font-size:18px;font-weight:700;color:#111827;margin-bottom:8px}
.push-card .toggle-row{border-bottom:none;margin-bottom:0;padding:12px 0}
.push-card .toggle-label{font-size:16px;color:#333;font-weight:600}
.push-sec .toggle-label{font-weight:600}
.push-hr{border:0;border-top:1px solid #e0e0e0;margin:12px 0}
.push-card .remind-sub{color:#757575;margin-top:8px;margin-bottom:4px}
.push-card .gp-list{margin-top:8px}
.push-card .gp-chip{font-size:13px;padding:8px 14px}
.push-card .gp-chip.on{background:#2979FF;border-color:#2979FF;color:#fff}
.push-card .seg{margin-top:8px}

.done-time{color:#dc2626;font-weight:600}
.seg{display:flex;gap:8px;margin-top:10px}
.seg-btn{flex:1;padding:8px 0;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;font-weight:600;font-size:14px;cursor:pointer}
.seg-btn.on{background:#2563eb;border-color:#2563eb;color:#fff}

.notif-row{position:relative;overflow:hidden;background:var(--card);border:1px solid rgba(232,234,242,.7);border-radius:var(--radius);box-shadow:var(--shadow)}
.notif-swipe-del{position:absolute;top:0;right:0;bottom:0;width:80px;background:#dc2626;color:#fff;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
.notif-swipe-del svg{width:22px;height:22px}
.notif-item{position:relative;transition:transform .18s ease;background:var(--card);padding:14px;cursor:pointer;touch-action:pan-y}
.notif-item.unread{background:#eff6ff}
.notif-item.swipe{transition:none}

.seg-input{flex:1;min-width:0;padding:8px 4px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;font-weight:600;font-size:14px;text-align:center;-moz-appearance:textfield;appearance:textfield}
.seg-input::-webkit-outer-spin-button,.seg-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.seg-input::placeholder{color:#9ca3af;font-weight:400}
.remind-sub.err{color:#dc2626;font-weight:600}

.notif-list{padding:8px 16px 16px;display:flex;flex-direction:column;gap:12px}
.notif-day{display:flex;align-items:center;gap:4px;padding:6px 2px 0;font-size:.75rem;font-weight:700;color:#6D28D9;text-transform:uppercase;letter-spacing:.05em}
.notif-day-label{flex:none}
.notif-day-read,.notif-day-del{flex:none;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border:none;background:transparent;font-size:.7rem;font-weight:700;text-transform:none;letter-spacing:0;cursor:pointer}
.notif-day-read{color:#6D28D9;margin:0 auto}
.notif-day-del{color:#dc2626}
.notif-day-read svg,.notif-day-del svg{width:13px;height:13px}

.gp-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gp-chip{padding:7px 12px;border-radius:999px;border:1px solid #d1d5db;background:#fff;font-size:12px;font-weight:600;color:#374151;cursor:pointer}
.gp-chip.on{background:#2563eb;border-color:#2563eb;color:#fff}

.notif-wrap{padding:0}

.detail textarea{background:var(--card);box-shadow:var(--shadow-sm);border:none;border-radius:12px;padding:12px;font-size:.95rem;color:var(--text);resize:vertical;font-family:inherit}

.topbar-title.copyable { cursor: pointer; user-select: all; }
.toast{position:fixed;right:16px;top:85px;background:#111827;color:#fff;padding:10px 16px 10px 10px;border-radius:999px;font-size:.88rem;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.25);display:flex;align-items:center;gap:9px;max-width:calc(100vw - 32px);z-index:1200}
.toast-ic{width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;background:#16A34A}
.toast-ic svg{width:13px;height:13px}
.toast.t-err .toast-ic{background:#dc2626}
.toast.t-warn .toast-ic{background:#d9930d}
.toast.t-info .toast-ic{background:#2563eb}
.toast-enter-active,.toast-leave-active{transition:opacity .22s ease,transform .22s ease}
.toast-enter-from,.toast-leave-to{opacity:0;transform:translateX(80px)} 

.tpl-editor{margin-top:14px;display:flex;flex-direction:column;gap:14px}
.tpl-intro{font-size:.85rem;color:var(--muted);margin:4px 0 0;line-height:1.45}
.tpl-vars{display:flex;flex-wrap:wrap;gap:6px}
.var-chip{font-size:.78rem;color:#374151;background:#eef2ff;border:1px solid #dbe3ff;border-radius:999px;padding:3px 10px}
.var-chip b{color:#1d4ed8}
.tpl-row{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px}
.tpl-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.tpl-actions{display:flex;gap:8px;flex:none;align-items:center}
.btn-ghost-mini{padding:7px 14px;border-radius:999px;border:1px solid #d1d5db;background:#fff;color:#374151;font-size:.82rem;font-weight:600;cursor:pointer;flex:none}
.btn-ghost-mini:disabled{opacity:.5;cursor:default}
.tpl-desc{font-size:.8rem;color:var(--muted);margin-top:2px;line-height:1.4}
.btn-mini{padding:7px 14px;border-radius:999px;border:none;background:var(--grad);color:#fff;font-size:.82rem;font-weight:600;cursor:pointer;flex:none;box-shadow:0 4px 10px rgba(37,99,235,.25)}
.btn-mini:disabled{opacity:.5;cursor:default;box-shadow:none}
.tpl-row input{margin-top:8px}
.tpl-row textarea{margin-top:4px}
.tpl-field-label{font-size:.75rem;color:var(--muted);margin-top:8px}
.push-preview{margin-top:10px;background:#5f48ec14;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:10px 14px 12px;display:flex;flex-direction:column;gap:3px}
.push-preview-cap{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.push-preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.push-preview-app{display:flex;align-items:center;gap:7px;min-width:0}
.push-preview-icon{width:22px;height:22px;flex:none;border-radius:6px;background:var(--grad);display:flex;align-items:center;justify-content:center;color:#fff;overflow:hidden}
.push-preview-icon img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.push-preview-appname{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.push-preview-time{font-size:.68rem;color:var(--muted);flex:none}
.push-preview-title{font-size:.95rem;font-weight:600;color:var(--text);line-height:1.3;white-space:pre-line}
.push-preview-body{font-size:.85rem;color:var(--muted);line-height:1.4;white-space:pre-line}

.eng-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.eng-tabs::-webkit-scrollbar { display: none; }
.eng-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 6px 16px; border-radius: 999px; border: none; background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.05);
  font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.eng-chip:active { transform: scale(.97); }
.eng-chip.on { background: #4F46E5; color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.eng-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; background: #EEF0F3; color: #8A9099; border-radius: 999px; padding: 0 6px; font-size: .78rem; font-weight: 700; }
.eng-count-done { background: rgba(22,163,74,.16); color: #16A34A; } 
.eng-chip.on .eng-count { background: rgba(255,255,255,.22); color: #fff; }
.eng-chip.on .eng-count-done { background: rgba(255,255,255,.22); color: #fff; }

.admin-menu { display: flex; flex-direction: column; gap: 10px; }
.am-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--card); border: 1px solid rgba(232,234,242,.7);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; font-size: .95rem; font-weight: 600; color: var(--text);
  cursor: pointer; text-align: left; transition: transform .14s, box-shadow .18s;
}
.am-row:active { transform: scale(.985); box-shadow: var(--shadow-sm); }
.am-row svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.am-label { flex: 1; }
.am-arrow { color: var(--muted); font-size: 1.3rem; line-height: 1; }

.user-block { margin-bottom: 4px; }
.user-block-title {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 4px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
}
.user-block-count {
  background: #eef2ff; color: #4e73df; border-radius: 999px;
  padding: 1px 8px; font-size: .72rem; font-weight: 700;
}
.user-block .user-list { padding-top: 0; }
.user-list { list-style: none; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.user-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 12px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.user-row:active { transform: scale(.985); box-shadow: var(--shadow-sm); }
.user-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-row-login { font-weight: 700; font-size: .92rem; }
.user-row-name { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.user-row-status { display: flex; align-items: center; gap: 4px; }
.user-row-net { font-size: .75rem; color: var(--muted); }

.assign-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: nowrap; }
.assign-row .assign-select { flex: 1 1 0; width: auto; min-width: 0; padding: 10px; font-size: .88rem; min-height: 0; }
.assign-row .btn-primary { flex: 0 0 auto; width: auto; margin-top: 0; padding: 11px 14px; font-size: .9rem; min-height: 0; }
.assign-eng { display: inline-flex; align-items: center; gap: 5px; flex: 0 1 auto; min-width: 0; max-width: 46%; padding: 6px 10px; border: 1px solid #E5E7EB; border-radius: 10px; background: #F8F9FB; font-size: .85rem; white-space: nowrap; }
.assign-eng b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.assign-eng-login { color: var(--muted); font-size: .75rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.assign-eng .eng-icon { width: 15px; height: 15px; flex: none; color: var(--accent); }
.assign-eng .eng-unassign { width: 24px; height: 24px; min-height: 24px; }

.eng-select { width: 100%; padding: 9px 12px; font-size: .9rem; border-radius: 10px; }
.engmode-row { display: flex; gap: 8px; margin-top: 10px; }
.engmode-row .eng-chip { padding: 8px 16px; font-size: .85rem; }

.close-req { margin-top: 12px; padding: 12px 14px; background: #FFF7ED; border-left: 4px solid #F59E0B; border-radius: 10px; font-size: .92rem; }
.close-req p { margin: 0 0 6px; }
.close-req p:last-child { margin-bottom: 0; }

.nav-badge-wrap { position: relative; }
.nav-badge {
  position: absolute;
  top: 3px;
  right: calc(50% - 24px);
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 999px;
  pointer-events: none;
}
.notif-filter-tabs { margin: 8px 16px 0; }
.close-req-mini { display: flex; gap: 8px; margin-top: 10px; }
.close-req-mini .btn-danger, .close-req-mini .btn-ghost { font-size: .82rem; padding: 7px 14px; min-height: 0; }
.close-req-text { white-space: pre-wrap; color: #374151; }
.close-req-actions { display: flex; gap: 8px; margin-top: 10px; }
.close-req-actions button { flex: 1; min-height: 42px; font-weight: 600; }

.color-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.color-row:last-of-type { border-bottom: none; }
.color-row .badge { flex: none; }
.color-row label { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.color-row input[type=color] { width: 42px; height: 30px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.color-actions { display: flex; gap: 8px; margin-top: 14px; }
.color-actions button { flex: 1; min-height: 44px; font-weight: 600; }

.x5-check { display: flex; gap: 8px; margin-bottom: 8px; }
.x5-check input { flex: 1; }
.x5-check .btn-ghost { flex: 0 0 auto; width: auto; padding: 0 18px; }
.x5-matches { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.x5-match { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: #F0F7FF; border: 1px solid #BFDBFE; border-radius: 10px; cursor: pointer; font-size: .9rem; text-align: left; color: var(--text); }
.x5-match b { color: var(--text); }
.x5-match:active { transform: scale(.98); }

.assign-warn { margin: 10px 0 0; padding: 10px 12px; background: #FFF7ED; border-left: 4px solid #F59E0B; border-radius: 10px; font-size: .85rem; color: #92400E; }

.topbar-brand.issued-task { font-weight: 700; animation: issuedTaskFlash 1.8s linear infinite; }
@keyframes issuedTaskFlash {
  0%   { color: #7c3aed; }
  20%  { color: #e30611; }
  40%  { color: #f59e0b; }
  60%  { color: #16a34a; }
  80%  { color: #0284c7; }
  100% { color: #7c3aed; }
}

.store-short-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.store-head h2.store-head-line a.store-short-link { font-size: .85rem; font-weight: 400; color: #92400E; } 

.store-head h2.store-head-line { margin-bottom: 6px; }
.store-head h2.store-head-line:first-child { margin-bottom: 1px; color: blue; } 
.store-head h2.store-head-line:last-child { margin-bottom: 0; }

.detail .proto-block { margin: 14px 0; }
.detail .proto-block h3 { margin-top: 0; }

:root {
  --bg: #EFF0F5;
  --line: #EBECF2;
  --ink2: #5B5F72;
  --ink3: #9B9FB2;
  --acc2: #5A54D8;
  --acc2-soft: #EFEEFB;
  --green2: #1FA87A; --green2-bg: #E3F5EE;
  --amber2: #C0860F; --amber2-bg: #FAF0DA;
  --orange2: #D4711F; --orange2-bg: #FBEBDD;
  --shadow: 0 1px 3px rgba(29,31,43,.05), 0 6px 18px rgba(29,31,43,.05);
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

.tabs {
  display: flex; gap: 3px;
  margin: 16px 12px 0;
  padding: 4px;
  background: #E9EAEF;
  border-radius: 14px;
}
.tabs button {
  flex: 1;
  min-height: 0;
  background: transparent;
  color: var(--ink3);
  border: none;
  border-radius: 10px;
  padding: 8px 2px;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.tabs button.on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(29,31,43,.1);
}
.tabs b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; height: auto;
  margin-left: 0;
  padding: 1px 6px;
  border-radius: 99px;
  background: #F0F1F6;
  color: var(--ink2);
  font-size: 10.5px;
  font-weight: 700;
}
.tabs button.on b { background: linear-gradient(115deg, #2563EC, #7040EE); color: #fff; }

.filters { display: flex; gap: 8px; padding: 10px 12px 0; }
.filters input {
  flex: 1.2;
  min-height: 40px; height: 40px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0 11px 0 33px;
  font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%239B9FB2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 11px center;
}
.filters input:focus { border-color: var(--acc2); box-shadow: var(--shadow); }
.filters select {
  flex: 1; width: auto; min-width: 0;
  min-height: 40px; height: 40px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  appearance: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  padding: 0 28px 0 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239B9FB2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"), radial-gradient(circle closest-side, var(--dot-color, #C0860F) 99%, transparent 100%);
  background-size: 14px 14px, 7px 7px;
  background-repeat: no-repeat, no-repeat;
  background-position: right 10px center, 10px center;
}

.eng-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.eng-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 0;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: none;
  font-size: 12px; font-weight: 600; color: var(--ink2);
}
.eng-chip.on {
  background: linear-gradient(115deg, #2563EC, #7040EE);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 10px rgba(90,80,220,.28);
}
.eng-count { min-width: 0; height: auto; padding: 1px 6px; background: #F2F3F8; color: var(--ink3); font-size: 10px; font-weight: 700; }
.eng-chip.on .eng-count { background: rgba(255,255,255,.22); color: #fff; }
.eng-chip.on .eng-count-done { background: rgba(255,255,255,.22); color: #fff; }

.cards { padding: 12px 12px 16px; gap: 8px; }
.card {
  border: none;
  border-left: 3px solid var(--badge-default-bg, #e22400);
  border-radius: 16px;
  padding: 11px 12px 5px 13px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.card::before { content: none; }
.card.st-assigned { border-left-color: var(--badge-assigned-bg, #00a1d8); }
.card.st-work     { border-left-color: var(--badge-work-bg, #669d34); }
.card.st-final    { border-left-color: var(--badge-final-bg, #6a42ec); }
.card.st-closed   { border-left-color: var(--badge-closed-bg, #707070); }
.card.st-wait     { border-left-color: var(--badge-wait-bg, #e292fe); }
.card.warn        { border-left-color: #E07B39; } 
.card-head { gap: 7px; }
.rid {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px; 
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--acc2);
}
.card-ola {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
}
.proto-src { font-size: 9px; font-weight: 700; background: #E0E7FF; color: #3730A3; border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.card-ola.ola-ok   { background: var(--green2-bg);  color: var(--green2); }
.card-ola.ola-warn { background: var(--amber2-bg);  color: var(--amber2); }
.card-ola.ola-soon { background: var(--orange2-bg); color: var(--orange2); }
.card-ola.ola-over { background: #FDE8E6; color: #E05A4E; }
.card-head-right { gap: 4px; }
.card-head-right .badge { font-size: 11px;  padding: 2.5px 8px; border-radius: 99px; } 
@media (max-width: 500px) {
  .card-head-right .badge { padding: 2.5px 8px; font-size: 11px; }
}
.badge.assigned { background: var(--badge-assigned-bg, #00a1d8); color: var(--badge-assigned-fg, #ffffff); }
.badge.work     { background: var(--badge-work-bg, #669d34); color: var(--badge-work-fg, #ffffff); }
.badge.final    { background: var(--badge-final-bg, #6a42ec); color: var(--badge-final-fg, #ffffff); }
.badge-warn { background: var(--orange2-bg); color: var(--orange2); border-radius: 99px; padding: 2.5px 8px; font-size: 11px; font-weight: 700; }

.card-store-row { margin-top: 8px; gap: 8px; }
.store-ico {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--acc2-soft); color: var(--acc2);
}
.store-ico svg { width: 14px; height: 14px; stroke-width: 2; }
.card-store { gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink3); } 
.card-store b { font-size: 14px; font-weight: 700; color: var(--text); }
.card-engineer { font-size: 12.5px; font-weight: 600; color: var(--ink2); gap: 5px; }
.card-engineer b { font-weight: 600; }
.card-engineer svg { width: 14px; height: 14px; color: #8A8FA3; stroke-width: 1.8; }

.card-title {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin-top: 4px; font-size: 12px; }
.card-close-line { margin-top: 4px; font-size: .85rem; }

.card-foot {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  gap: 8px;
}
.card-foot svg {
  width: 9.5px;
  height: 9.5px;
  vertical-align: -1px;
  margin-right: 2px;
  margin-left: 1px;
  color: var(--ink3);
}

.card-route {
  position: static;
  width: 19px; height: 19px;
  background: #FDF0EE;
  border-radius: 6px;
  padding: 0;
  margin-left: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.card-route svg { width: 11px; height: 11px; fill: #E05A4E; display: block; }
.card-foot { justify-content: space-between; }

.card-store .sapid { margin-right: 5px; }

.file-error {
  background: #FDECEC;
  color: #C0392B;
  border: 1px solid #F5C6C0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 8px;
}

.file-list .file-name.rej {
  color: #C0392B;
  font-weight: 600;
}

.search-wrap { position: relative; flex: 1.2; display: flex; align-items: center; min-width: 0; }
.search-wrap input { flex: 1; padding-right: 34px; }
.filters .search-wrap.full { flex: 1 1 100%; }
.search-total { margin: 0; padding: 10px 14px 0; font-size: 14px; font-weight: 700; color: var(--ink2, #444); line-height: 1.3; }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: transparent; color: #E5484D;
  font-size: 16px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.search-clear:active { background: rgba(229,72,77,.12); }
.search-wrap input::-webkit-search-cancel-button,
.search-wrap input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-wrap input::-ms-clear { display: none; width: 0; height: 0; }

.btn-final {
  background: var(--badge-final-bg, #6a42ec) !important;
  color: var(--badge-final-fg, #fff) !important;
  box-shadow: 0 6px 16px rgba(0, 86, 214, .28) !important;
}

.filters select.sel-all {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239B9FB2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),
    conic-gradient(var(--badge-final-bg, #6a42ec) 0deg 180deg, #9B9FB2 180deg 360deg);
  background-size: 14px 14px, 7px 7px;
}

.sol-files { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sol-files b { margin-bottom: 2px; }
.sol-file { color: var(--accent); font-size: .85rem; text-decoration: none; word-break: break-all; }

@media (min-width: 720px) {
  .tabs { margin: 18px 16px 0; }
  .tabs button { font-size: 15px; padding: 10px 4px; }
  .tabs b { font-size: 12px; padding: 2px 8px; }
  .filters { gap: 10px; padding: 12px 16px 0; }
  .filters input { min-height: 48px; height: 48px; font-size: 15px; padding-left: 40px; background-position: 14px center; border-radius: 14px; }
  .filters select { min-height: 48px; height: 48px; font-size: 14px; border-radius: 14px; padding: 0 34px 0 30px; background-position: right 14px center, 13px center; }
  .eng-tabs { gap: 8px; padding: 12px 16px 4px; }
  .eng-chip { font-size: 14px; padding: 8px 15px; gap: 8px; }
  .eng-count { font-size: 12px; padding: 2px 7px; }
  .cards { padding: 14px 16px 20px; gap: 12px; }
  .card { padding: 16px 16px 9px 19px; border-radius: 18px; }
  .rid { font-size: 15px; }
  .card-ola { font-size: 12px; padding: 3px 10px; }
  .card-head-right .badge { font-size: 12px; padding: 3px 10px; }
  .badge-warn { font-size: 12px; padding: 3px 10px; }
  .card-store-row { margin-top: 12px; }
  .store-ico { width: 34px; height: 34px; border-radius: 10px; }
  .store-ico svg { width: 18px; height: 18px; }
  .card-store { font-size: 13px; gap: 10px; }
  .card-store b { font-size: 16px; }
  .card-engineer { font-size: 14px; gap: 6px; }
  .card-engineer svg { width: 17px; height: 17px; }
  .card-title { font-size: 15px; margin-top: 10px; -webkit-line-clamp: 3; }
  .card-meta { font-size: 13px; }
  .card-close-line { font-size: .85rem; }
  .card-foot { font-size: 12px; margin-top: 10px; padding-top: 8px; }
  .card-foot svg { width: 13px; height: 13px; }
  .card-route { width: 26px; height: 26px; border-radius: 8px; }
  .card-route svg { width: 15px; height: 15px; }
}

.autoacc-block .autoacc-select { width: 100%; padding: 8px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: .85rem; }
.autoacc-block .field-label { display: block; font-size: .75rem; opacity: .7; margin: 8px 0 2px; }
.autoacc-search { width: 100%; padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: .85rem; box-sizing: border-box; }
.autoacc-search:focus { outline: none; border-color: var(--accent); }
.autoacc-smr-row { display: flex; gap: 6px; }
.autoacc-smr-row .autoacc-select { flex: 1; }
.autoacc-equip-row { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.autoacc-eq-detail { font-size: .8rem; padding: 8px; border: 1px solid var(--border); border-radius: 8px; margin-top: 4px; line-height: 1.5; position: relative; padding-right: 30px; }
.eq-clear { position: absolute; top: 4px; right: 4px; min-height: 0; padding: 2px 6px; background: none; border: none; font-size: 1rem; line-height: 1; cursor: pointer; }
.autoacc-summary { margin-top: 8px; font-size: .8rem; opacity: .85; padding: 8px; border-radius: 8px; background: rgba(127,127,127,.08); }
.equip-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.equip-head .search-wrap { flex: 1; } 
.equip-head .autoacc-search { flex: 1; margin-bottom: 0; }
.equip-count { color: var(--accent); font-weight: 600; font-size: .85rem; white-space: nowrap; } 
@media (min-width: 720px) { .autoacc-equip-row { flex-direction: row; } .autoacc-equip-row .autoacc-slot { flex: 1; } }

@media (max-width: 719.98px) { .card-parent-obr ~ .card-parent { display: none; } }

.stats-row { display: flex; gap: 8px; margin: 10px 0; align-items: center; }
.stats-date, .stats-select { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border, #d8dcea); border-radius: 10px; font-size: .95rem; background: var(--card, #fff); color: inherit; }
.stats-sep { opacity: .5; }
