:root {
  --blue: #246bfd;
  --blue-dark: #1754d6;
  --blue-soft: #eaf1ff;
  --ink: #172033;
  --text: #344054;
  --muted: #8290a7;
  --line: #e5e9f0;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --green: #20a779;
  --green-soft: #dff8ee;
  --amber: #d88a10;
  --amber-soft: #fff2d7;
  --red: #dc5b50;
  --red-soft: #ffebe9;
  --violet: #7c5ce7;
  --shadow: 0 6px 24px rgba(42, 55, 79, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.app { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 220px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 3px 7px 28px; color: var(--ink); text-decoration: none; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 11px; box-shadow: 0 8px 18px rgba(36,107,253,.23); }
.brand-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { font-size: 15px; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 9px; }
.nav { display: grid; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; color: #647087; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 650; transition: .17s ease; }
.nav a > span:first-child { width: 22px; color: #8e9aaf; font-size: 17px; text-align: center; }
.nav a:hover { color: var(--blue); background: #f5f8ff; }
.nav a.active { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(36,107,253,.2); }
.nav a.active > span:first-child { color: #fff; }
.sidebar-spacer { flex: 1; }
.role-box { padding: 13px; background: #f6f8fc; border: 1px solid #edf0f5; border-radius: 12px; }
.role-box > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.role-box > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; background: #e9edf4; border-radius: 8px; }
.role-box button { min-height: 28px; border: 0; border-radius: 6px; background: transparent; color: #788399; cursor: pointer; font-size: 10px; font-weight: 700; }
.role-box button.active { color: #fff; background: var(--ink); }
.sidebar-status { display: flex; align-items: center; gap: 8px; padding: 16px 7px 0; color: var(--muted); font-size: 10px; }
.sidebar-status i { width: 7px; height: 7px; background: #efa92f; border-radius: 50%; }
.sidebar-status.online i { background: #32bd87; box-shadow: 0 0 0 4px rgba(50,189,135,.12); }

.main { width: calc(100% - 220px); margin-left: 220px; padding: 30px clamp(22px, 3vw, 46px) 60px; }
.page-header { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; scroll-margin-top: 20px; }
.page-header > div:nth-child(2) { min-width: 0; }
.breadcrumb { margin: 0 0 5px; color: var(--muted); font-size: 10px; }
.page-header h1 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.2; letter-spacing: -.03em; }
.page-summary { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.page-summary strong { color: #5f6a7f; }
.header-actions { display: flex; gap: 9px; margin-left: auto; }
.button { min-height: 39px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(36,107,253,.22); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: #5e6a80; background: #fff; border: 1px solid var(--line); }
.button.danger { color: #bf4d43; background: var(--red-soft); }
.menu-button { display: none; width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.summary-grid article { min-height: 96px; display: flex; align-items: center; gap: 14px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 12px rgba(42,55,79,.035); }
.summary-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; font-size: 17px; font-weight: 800; }
.summary-icon.blue { color: var(--blue); background: var(--blue-soft); }
.summary-icon.green { color: var(--green); background: var(--green-soft); }
.summary-icon.violet { color: var(--violet); background: #eee9ff; }
.summary-icon.amber { color: var(--amber); background: var(--amber-soft); }
.summary-grid article > div:last-child { min-width: 0; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 9px; }
.summary-grid span { color: var(--muted); font-size: 9px; font-weight: 700; grid-column: 1 / -1; }
.summary-grid strong { color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.summary-grid small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.content-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); scroll-margin-top: 20px; }
.toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 176px 158px 148px 38px; gap: 8px; padding: 13px; background: #fff; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search span { position: absolute; left: 13px; top: 50%; color: #96a1b4; transform: translateY(-50%); font-size: 17px; }
.toolbar input, .toolbar select { width: 100%; min-height: 40px; color: #4d596e; background: #fff; border: 1px solid var(--line); border-radius: 9px; outline: none; font-size: 11px; }
.toolbar input { padding: 0 13px 0 38px; }
.toolbar select { padding: 0 30px 0 11px; }
.toolbar input:focus, .toolbar select:focus { border-color: #8bb0ff; box-shadow: 0 0 0 3px rgba(36,107,253,.1); }
.toolbar input::placeholder { color: #a2acbd; }
.filter-clear { width: 38px; height: 40px; color: #8a96aa; background: #f5f7fa; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 17px; }
.filter-clear:hover { color: var(--blue); background: var(--blue-soft); }
.table-scroll { overflow: auto; }
table { width: 100%; min-width: 1340px; border-collapse: collapse; table-layout: fixed; font-size: 10px; }
th { padding: 12px 11px; color: #768298; background: #f8f9fc; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
th:nth-child(1) { width: 116px; }
th:nth-child(2) { width: 220px; }
th:nth-child(3) { width: 100px; }
th:nth-child(4) { width: 160px; }
th:nth-child(5) { width: 170px; }
th:nth-child(6) { width: 88px; }
th:nth-child(7), th:nth-child(8) { width: 190px; }
th:nth-child(9) { width: 100px; text-align: right; }
th:nth-child(10) { width: 44px; }
td { height: 51px; padding: 9px 11px; color: #435067; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .12s ease; }
tbody tr:hover { background: #f8faff; }
tbody tr:last-child td { border-bottom: 0; }
.truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strong { color: #263247; font-weight: 750; }
.muted { color: #8490a5; }
.type-badge, .status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 8px; border-radius: 6px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.type-badge.internet { color: #257eae; background: #dff4ff; }
.type-badge.private { color: #7444ce; background: #efe7ff; }
.status-badge { gap: 5px; border-radius: 20px; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.status-badge.active { color: #10855d; background: var(--green-soft); }
.status-badge.active::before { background: #21ab78; }
.status-badge.pending { color: #a56b0c; background: var(--amber-soft); }
.status-badge.pending::before { background: #e0a22f; }
.status-badge.paused { color: #a75b16; background: #fff0df; }
.status-badge.paused::before { background: #e58a2f; }
.status-badge.cancel { color: #a94f48; background: var(--red-soft); }
.status-badge.cancel::before { background: #dd665c; }
.cost { color: #263247; font-weight: 700; text-align: right; }
.row-menu { width: 28px; height: 28px; color: #8995a9; background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.row-menu:hover { color: var(--blue); background: var(--blue-soft); border-color: #dce7ff; }
.empty { padding: 70px 20px; text-align: center; }
.empty > span { display: block; color: #b2bccb; font-size: 28px; }
.empty strong { display: block; margin-top: 12px; color: #576378; font-size: 13px; }
.empty p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 9px 13px; color: var(--muted); background: #fafbfc; border-top: 1px solid var(--line); font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 9px; }
.pagination button { width: 29px; height: 29px; color: #667288; background: #fff; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination span { min-width: 48px; text-align: center; }

.partner-section { margin-top: 28px; padding-top: 4px; scroll-margin-top: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.section-head span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.section-head h2 { margin: 5px 0 0; color: var(--ink); font-size: 18px; }
.section-head p { margin: 0; color: var(--muted); font-size: 10px; }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; }
.partner-card { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.partner-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.partner-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 10px; font-weight: 900; }
.partner-count { color: var(--ink); font-size: 18px; font-weight: 800; }
.partner-card h3 { margin: 12px 0 4px; color: #354157; font-size: 12px; }
.partner-card p { margin: 0; color: var(--muted); font-size: 9px; }
.partner-meter { height: 4px; margin-top: 13px; overflow: hidden; background: #edf1f6; border-radius: 10px; }
.partner-meter i { display: block; height: 100%; background: var(--blue); border-radius: 10px; }

dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 15px; box-shadow: 0 30px 90px rgba(17,28,48,.26); }
dialog::backdrop { background: rgba(17,24,39,.5); backdrop-filter: blur(2px); }
dialog form { padding: 24px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-head span { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.modal-head h2 { margin: 5px 0 0; color: var(--ink); font-size: 20px; }
.close-button { width: 34px; height: 34px; color: #7f8a9d; background: #f4f6f9; border: 0; border-radius: 9px; cursor: pointer; font-size: 19px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid label > span { color: #647087; font-size: 9px; font-weight: 700; }
.form-grid em { color: var(--red); font-style: normal; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 38px; padding: 0 11px; color: #354157; background: #fff; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: 10px; }
.form-grid textarea { padding-top: 9px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #8bb0ff; box-shadow: 0 0 0 3px rgba(36,107,253,.1); }
.form-grid .wide { grid-column: 1 / -1; }
.modal-footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 9px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; padding: 12px 16px; color: #fff; background: var(--ink); border-radius: 9px; box-shadow: 0 12px 30px rgba(17,28,48,.2); font-size: 10px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.overlay { position: fixed; inset: 0; z-index: 25; background: rgba(15,23,42,.38); }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 13px; }
.dash-card { min-height: 310px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.card-heading span { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.card-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: 16px; }
.card-heading a { color: var(--blue); font-size: 9px; font-weight: 700; text-decoration: none; }
.card-heading small { color: var(--muted); font-size: 9px; }
.status-visual { display: grid; grid-template-columns: 165px 1fr; align-items: center; gap: 28px; min-height: 220px; }
.status-donut { position: relative; width: 158px; aspect-ratio: 1; display: grid; place-items: center; background: conic-gradient(var(--green) 0 100%); border-radius: 50%; }
.status-donut::after { content: ""; position: absolute; inset: 25px; background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.status-donut > div { position: relative; z-index: 1; display: grid; text-align: center; }
.status-donut strong { color: var(--ink); font-size: 30px; }
.status-donut span { color: var(--muted); font-size: 9px; }
.chart-legend { display: grid; gap: 11px; }
.chart-legend > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; font-size: 10px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; }
.chart-legend strong { color: var(--ink); }
.dashboard-bars { display: grid; gap: 15px; padding-top: 6px; }
.dash-bar { display: grid; grid-template-columns: 88px 1fr 25px; align-items: center; gap: 10px; font-size: 9px; }
.dash-bar > span { overflow: hidden; color: #5a667c; text-overflow: ellipsis; white-space: nowrap; }
.dash-bar > div { height: 8px; overflow: hidden; background: #edf1f7; border-radius: 10px; }
.dash-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #6c9aff); border-radius: 10px; }
.dash-bar strong { color: var(--ink); text-align: right; }
.recent-list { display: grid; }
.recent-list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; min-height: 54px; color: inherit; border-bottom: 1px solid #edf0f5; text-decoration: none; }
.recent-list a:last-child { border-bottom: 0; }
.recent-provider { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 8px; font-weight: 850; }
.recent-list div { min-width: 0; }
.recent-list strong, .recent-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list strong { color: #354157; font-size: 10px; }
.recent-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.recent-list time { color: var(--muted); font-size: 8px; }
.alert-list { display: grid; gap: 9px; }
.alert-list a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 10px; color: inherit; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 10px; text-decoration: none; }
.alert-list i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-style: normal; font-weight: 800; }
.alert-list i.warning { color: var(--amber); background: var(--amber-soft); }
.alert-list i.ok { color: var(--green); background: var(--green-soft); }
.alert-list strong, .alert-list span { display: block; }
.alert-list strong { color: #435067; font-size: 9px; }
.alert-list span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.alert-list b { color: var(--ink); font-size: 14px; }
.wide-card { grid-column: 1 / -1; min-height: auto; }
.quality-total { color: var(--blue); font-size: 22px; }
.quality-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 25px; }
.quality-progress > div { display: grid; grid-template-columns: 70px 1fr 32px; align-items: center; gap: 9px; font-size: 9px; }
.quality-progress > div > div { height: 6px; overflow: hidden; background: #edf1f7; border-radius: 10px; }
.quality-progress i { display: block; height: 100%; background: var(--blue); border-radius: 10px; }
.quality-progress strong { color: #4d596e; text-align: right; }

/* Partner and manager pages */
.admin-toolbar { grid-template-columns: minmax(280px, 1fr) 180px 160px 38px; }
.manager-toolbar { grid-template-columns: minmax(280px, 1fr) 180px 38px; }
.admin-table { min-width: 1120px; }
.admin-table th:nth-child(1) { width: 170px; }.admin-table th:nth-child(2) { width: 110px; }.admin-table th:nth-child(3) { width: 110px; }.admin-table th:nth-child(4) { width: 130px; }.admin-table th:nth-child(5) { width: 190px; }.admin-table th:nth-child(6) { width: 130px; }.admin-table th:nth-child(7) { width: 90px; }.admin-table th:nth-child(8) { width: 85px; }.admin-table th:nth-child(9) { width: 44px; }
.manager-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 15px; }
.manager-card { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s ease; }
.manager-card:hover { border-color: #bed0fa; box-shadow: 0 8px 22px rgba(36,107,253,.08); transform: translateY(-1px); }
.manager-head { display: flex; align-items: center; justify-content: space-between; }
.manager-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-size: 11px; font-weight: 850; }
.manager-card h2 { margin: 14px 0 5px; color: var(--ink); font-size: 14px; }
.manager-card > p { margin: 0; color: var(--muted); font-size: 9px; }
.manager-card dl { display: grid; gap: 8px; margin: 17px 0; }
.manager-card dl div { display: grid; grid-template-columns: 55px 1fr; gap: 8px; font-size: 9px; }
.manager-card dt { color: var(--muted); }.manager-card dd { margin: 0; overflow: hidden; color: #566277; text-overflow: ellipsis; white-space: nowrap; }
.manager-card footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #edf0f5; font-size: 9px; }
.manager-card footer span { color: var(--muted); }.manager-card footer strong { color: var(--ink); }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.settings-card { padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.wide-settings { grid-column: 1 / -1; }
.settings-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #edf0f5; }
.settings-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--amber); background: var(--amber-soft); border-radius: 10px; }
.blue-bg { color: var(--blue); background: var(--blue-soft); }.green-bg { color: var(--green); background: var(--green-soft); }.violet-bg { color: var(--violet); background: #eee9ff; }
.settings-heading h2 { margin: 0; color: var(--ink); font-size: 14px; }.settings-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; }
.settings-fields label { display: grid; gap: 6px; }.settings-fields label > span { color: #647087; font-size: 9px; font-weight: 700; }
.settings-fields input, .settings-fields select { width: 100%; min-height: 39px; padding: 0 11px; color: #354157; background: #fff; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: 10px; }
.input-suffix { position: relative; }.input-suffix input { padding-right: 52px; }.input-suffix i { position: absolute; right: 10px; top: 50%; color: var(--muted); transform: translateY(-50%); font-size: 9px; font-style: normal; }
.settings-actions { margin-top: 17px; padding-top: 15px; border-top: 1px solid #edf0f5; text-align: right; }
.data-inventory { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.data-inventory div { padding: 13px; background: #f7f9fc; border-radius: 9px; }.data-inventory span, .data-inventory strong { display: block; }.data-inventory span { color: var(--muted); font-size: 8px; }.data-inventory strong { margin-top: 5px; color: var(--ink); font-size: 16px; }
.storage-status { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 12px; background: var(--green-soft); border-radius: 9px; }.storage-status > i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }.storage-status strong, .storage-status span { display: block; }.storage-status strong { color: #187554; font-size: 9px; }.storage-status span { margin-top: 2px; color: #4e826f; font-size: 8px; }
.data-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 18px; }
.data-action { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left; }
.data-action > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 16px; }.data-action strong, .data-action small { display: block; }.data-action strong { color: #3e4a5f; font-size: 10px; }.data-action small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.data-action:hover { border-color: #b8cbf8; }.danger-action > span { color: var(--red); background: var(--red-soft); }
.danger-note { margin: 13px 0 0; color: #9a6b24; font-size: 8px; }
.security-list { display: grid; gap: 9px; margin: 17px 0 0; padding: 0; list-style: none; }.security-list li { position: relative; padding-left: 19px; color: #59667b; font-size: 9px; line-height: 1.7; }.security-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }

@media (max-width: 1180px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr 1fr 38px; }
  .search { grid-column: 1 / -1; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .manager-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quality-progress { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 35px rgba(20,31,51,.15); }
  .sidebar.open { transform: translateX(0); }
  .main { width: 100%; margin-left: 0; padding: 20px 16px 45px; }
  .menu-button { display: block; }
  .page-header { align-items: flex-start; }
  .header-actions { flex-direction: column-reverse; }
  .button { min-height: 36px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .wide-card { grid-column: auto; }
  .settings-layout { grid-template-columns: 1fr; }
  .wide-settings { grid-column: auto; }
  .data-actions { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .page-header { flex-wrap: wrap; }
  .page-header > div:nth-child(2) { flex: 1; }
  .header-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary-grid article { min-height: 110px; display: grid; gap: 8px; }
  .summary-grid article > div:last-child { display: block; }
  .summary-grid span, .summary-grid small { display: block; }
  .summary-grid strong { display: block; margin: 3px 0; font-size: 19px; }
  .toolbar { grid-template-columns: 1fr; }
  .search { grid-column: auto; }
  .filter-clear { position: static; width: 100%; margin: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .modal-footer { grid-template-columns: 1fr 1fr; }
  .modal-footer span { display: none; }
  .partner-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 7px; }
  .status-visual { grid-template-columns: 125px 1fr; gap: 15px; }
  .status-donut { width: 120px; }.status-donut::after { inset: 20px; }
  .quality-progress { grid-template-columns: 1fr; }
  .manager-grid { grid-template-columns: 1fr; padding: 10px; }
  .settings-fields { grid-template-columns: 1fr; }
  .data-inventory { grid-template-columns: 1fr 1fr; }
}
