:root {
  --navy: #0b1b33;
  --ink: #0f172a;
  --body: #475569;
  --muted: #75849a;
  --faint: #9aa8bd;
  --line: #e5e9f0;
  --page: #f4f7fb;
  --card: #ffffff;
  --blue: #3d63ea;
  --blue-soft: #eef3ff;
  --green: #34a853;
  --teal: #54b9aa;
  --amber: #f2aa3a;
  --orange: #e87722;
  --red: #e05252;
  --purple: #7c5cff;
  --cyan: #2898bd;
  --pink: #d9488f;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: Inter, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

body.icon-solid .table td:first-child::before,
body.icon-solid .activity span {
  color: #ffffff !important;
}

body.icon-solid #accounts .table td:first-child::before { background: var(--blue); }
body.icon-solid #contacts .table td:first-child::before { background: var(--purple); }
body.icon-solid #opportunities .table td:first-child::before { background: var(--teal); }
body.icon-solid #quotes .table td:first-child::before { background: var(--amber); }
body.icon-solid #invoices .table td:first-child::before { background: var(--red); }
body.icon-solid #products .table td:first-child::before,
body.icon-solid #fish .table td:first-child::before,
body.icon-solid #packing .table td:first-child::before { background: var(--cyan); }
body.icon-solid #harvests .table td:first-child::before { background: var(--green); }
body.icon-solid #tasks .table td:first-child::before { background: var(--amber); }
body.icon-solid #activities .table td:first-child::before { background: var(--blue); }
body.icon-solid #reports .table td:first-child::before { background: var(--purple); }
body.icon-solid #dashboards .table td:first-child::before { background: var(--teal); }
body.icon-solid #documents .table td:first-child::before { background: var(--pink); }
body.icon-solid #settings .table td:first-child::before { background: #64748b; }

body.icon-duo .table td:first-child::before,
body.icon-duo .activity span {
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

body.icon-duo #accounts .table td:first-child::before { background: linear-gradient(135deg, #dbe8ff, #fff); color: var(--blue); }
body.icon-duo #contacts .table td:first-child::before { background: linear-gradient(135deg, #eee8ff, #fff); color: var(--purple); }
body.icon-duo #opportunities .table td:first-child::before { background: linear-gradient(135deg, #dff8f4, #fff); color: var(--teal); }
body.icon-duo #quotes .table td:first-child::before { background: linear-gradient(135deg, #fff0c8, #fff); color: var(--amber); }
body.icon-duo #invoices .table td:first-child::before { background: linear-gradient(135deg, #ffe1e1, #fff); color: var(--red); }
body.icon-duo #products .table td:first-child::before,
body.icon-duo #fish .table td:first-child::before,
body.icon-duo #packing .table td:first-child::before { background: linear-gradient(135deg, #dcf5fb, #fff); color: var(--cyan); }
body.icon-duo #harvests .table td:first-child::before { background: linear-gradient(135deg, #dcf8e6, #fff); color: var(--green); }

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  background: var(--navy);
  color: #c7d0df;
}

.brand {
  margin: 0;
  padding: 0 14px 28px;
}

.brand img {
  display: block;
  width: 204px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: grid;
  gap: 2px;
  padding: 24px 14px 14px;
}

.nav button {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  background: transparent;
  color: #c7d0df;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.nav button:hover,
.nav button.active {
  background: var(--blue);
  color: #ffffff;
}

.nav .ico {
  color: #aab6c8;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.nav button.active .ico {
  color: #ffffff;
}

.settings-link {
  margin-top: 18px;
}

.profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 10px;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  font-size: 13px;
}

.profile small {
  margin-top: 4px;
  color: #8da0ba;
  font-size: 12px;
}

.profile em {
  color: #8da0ba;
  font-style: normal;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #47649a;
  color: #ffffff;
  font-weight: 800;
}

.avatar.big {
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(360px, 748px) auto;
  gap: 20px;
  align-items: center;
  min-height: 64px;
  padding: 6px 36px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
}

.search {
  position: relative;
  display: block;
  width: 100%;
  justify-self: center;
}

.search span {
  position: absolute;
  left: 18px;
  top: 50%;
  color: #99a6bb;
  font-size: 18px;
  transform: translateY(-50%);
}

.search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px 0 49px;
  outline: 0;
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
}

.search input::placeholder {
  color: #98a5b9;
}

.actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.actions button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  font-size: 18px;
}

.side-panel-overlay {
  display: none;
}

.side-panel-overlay.show {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: block;
  background: rgba(15, 23, 42, 0.22);
}

.record-drawer,
.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(520px, 94vw);
  height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.16);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.record-drawer.open,
.notification-panel.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--body);
  font-size: 20px;
}

.drawer-section,
.panel-head {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-section h2,
.panel-head h2 {
  margin-right: 44px;
}

.drawer-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer-actions,
.list-command-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-actions button,
.list-command-bar button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--body);
  font-size: 11px;
  font-weight: 600;
}

.drawer-actions button:first-child,
.list-command-bar button:first-child {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline p {
  margin: 0;
  border-left: 3px solid var(--blue);
  padding: 3px 0 3px 10px;
  color: var(--body);
  font-size: 12px;
}

.notification-list {
  display: grid;
  padding: 12px 24px 24px;
}

.notification-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: transparent;
  text-align: left;
}

.notification-list strong {
  color: var(--ink);
}

.notification-list span {
  color: var(--body);
}

.notification-list em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.content {
  width: 100%;
  max-width: 1740px;
  padding: 28px 34px 42px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 600;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  gap: 22px;
  align-items: start;
}

.left-col,
.right-col {
  display: grid;
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 22px;
}

.glance-card {
  padding: 22px;
}

.glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.glance article {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px 20px;
  background: #ffffff;
  cursor: pointer;
}

.glance article:nth-child(1) { border-top: 3px solid var(--blue); }
.glance article:nth-child(2) { border-top: 3px solid var(--teal); }
.glance article:nth-child(3) { border-top: 3px solid var(--amber); }
.glance article:nth-child(4) { border-top: 3px solid var(--green); }

.glance span,
.sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glance strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.glance a,
.text-link {
  display: inline-flex;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.glance p {
  margin: 10px 0 0;
  font-size: 12px;
}

.glance b {
  color: var(--ink);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.two {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.1fr);
}

.lower {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.2fr);
}

.invoice-stats {
  display: flex;
  gap: 42px;
  margin-bottom: 6px;
}

.invoice-stats strong,
.invoice-stats span {
  display: block;
}

.invoice-stats strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.invoice-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.chart {
  position: relative;
  display: flex;
  align-items: end;
  gap: 20px;
  height: 138px;
  margin: 2px 0 12px;
  padding: 20px 0 24px;
  border-bottom: 1px solid #eef2f7;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px) 0 27px / 100% 42px no-repeat,
    linear-gradient(#eef2f7 1px, transparent 1px) 0 69px / 100% 42px no-repeat,
    linear-gradient(#eef2f7 1px, transparent 1px) 0 111px / 100% 42px no-repeat;
}

.chart span {
  position: relative;
  flex: 1;
  max-width: 34px;
  border-radius: 6px 6px 0 0;
  background: #4d7fe8;
}

.chart em {
  position: absolute;
  left: 50%;
  bottom: -28px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  transform: translateX(-50%);
}

.schedule-list {
  display: grid;
  gap: 0;
  margin: 10px 0 14px;
}

.schedule-list button {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px 78px;
  gap: 22px;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  padding: 0;
  background: transparent;
  color: var(--body);
  text-align: left;
}

.schedule-list button:nth-child(1) { border-left: 3px solid var(--green); padding-left: 10px; }
.schedule-list button:nth-child(2) { border-left: 3px solid var(--teal); padding-left: 10px; }
.schedule-list button:nth-child(3) { border-left: 3px solid var(--amber); padding-left: 10px; }
.schedule-list button:nth-child(4) { border-left: 3px solid var(--green); padding-left: 10px; }

.schedule-list strong,
.schedule-list b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.schedule-list span,
.schedule-list em {
  font-size: 13px;
}

.schedule-list em {
  color: var(--green);
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.schedule-list .watch {
  color: var(--amber);
}

.money-list {
  display: grid;
}

.money-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.money-list button:nth-child(1) { color: var(--blue); }
.money-list button:nth-child(2) { color: var(--teal); }
.money-list button:nth-child(3) { color: var(--purple); }
.money-list button:nth-child(4) { color: var(--amber); }

.pipeline {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.donut {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 23%, var(--teal) 23% 53%, var(--amber) 53% 86%, #5bc567 86% 100%);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #ffffff;
}

.donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut strong,
.donut small {
  display: block;
}

.donut strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.donut small {
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: grid;
  gap: 9px;
}

.legend p {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: var(--body);
  font-size: 12px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend strong {
  color: var(--ink);
}

.blue { background: var(--blue); }
.teal { background: var(--teal); }
.amber { background: var(--amber); }
.green { background: var(--green); }

.activity {
  display: grid;
}

.activity button {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 62px;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  padding: 7px 0;
  background: transparent;
  text-align: left;
}

.activity span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
}

.activity button:nth-child(1) span { background: #eef3ff; color: var(--blue); }
.activity button:nth-child(2) span { background: #eaf9f6; color: var(--teal); }
.activity button:nth-child(3) span { background: #f3efff; color: var(--purple); }
.activity button:nth-child(4) span { background: #fff5e5; color: var(--amber); }
.activity button:nth-child(5) span { background: #ecfdf3; color: var(--green); }

.activity b,
.activity small {
  display: block;
}

.activity b {
  grid-column: 2;
  grid-row: 1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.activity small {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 11px;
}

.activity time {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--faint);
  font-size: 11px;
  text-align: right;
}

.assistant-card {
  display: grid;
  gap: 10px;
}

.assistant-card h2 {
  margin-bottom: 0;
}

.assistant-card > button {
  min-height: 40px;
  border: 1px solid #dce5fb;
  border-radius: 10px;
  padding: 0 18px;
  background: #eef3ff;
  color: var(--blue);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.ask-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 6px 6px 6px 18px;
}

.ask-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 13px;
}

.ask-form button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #ffffff;
  font-size: 18px;
}

.answer {
  border: 1px solid #dce5fb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f7faff;
  color: #1e3a8a;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 700;
}

.filters button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.saved-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.saved-views button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.saved-views button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.list-filter {
  width: min(360px, 100%);
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  outline: 0;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
}

.list-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.list-action {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--body);
  font-size: 11px;
  font-weight: 600;
}

.list-action.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.list-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.empty-state {
  display: none;
  border: 1px dashed var(--line);
  border-radius: 11px;
  padding: 24px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.table th,
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.column-filter-row th {
  padding-top: 0;
  background: #ffffff;
}

.column-filter-row input {
  width: 100%;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  outline: 0;
  background: #f8fafc;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.table td {
  color: var(--body);
  font-size: 12px;
}

.table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.table td:first-child::before {
  content: "▦";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

#accounts .table td:first-child::before { content: "▭"; background: #eef3ff; color: var(--blue); }
#contacts .table td:first-child::before { content: "♙"; background: #f3efff; color: var(--purple); }
#opportunities .table td:first-child::before { content: "↑"; background: #eaf9f6; color: var(--teal); }
#quotes .table td:first-child::before { content: "◻"; background: #fff5e5; color: var(--amber); }
#invoices .table td:first-child::before { content: "▤"; background: #fff0f0; color: var(--red); }
#products .table td:first-child::before { content: "◇"; background: #eef8fb; color: var(--cyan); }
#harvests .table td:first-child::before { content: "□"; background: #ecfdf3; color: var(--green); }
#fish .table td:first-child::before { content: "◉"; background: #eef8fb; color: var(--cyan); }
#tasks .table td:first-child::before { content: "☷"; background: #fff5e5; color: var(--amber); }
#activities .table td:first-child::before { content: "◷"; background: #eef3ff; color: var(--blue); }
#reports .table td:first-child::before { content: "▥"; background: #f3efff; color: var(--purple); }
#dashboards .table td:first-child::before { content: "▦"; background: #eaf9f6; color: var(--teal); }
#documents .table td:first-child::before { content: "◰"; background: #fff0f7; color: var(--pink); }
#settings .table td:first-child::before { content: "⚙"; background: #f1f5f9; color: #64748b; }

#accounts .table tbody tr { border-left: 3px solid rgba(61, 99, 234, 0.3); }
#contacts .table tbody tr { border-left: 3px solid rgba(124, 92, 255, 0.3); }
#opportunities .table tbody tr { border-left: 3px solid rgba(84, 185, 170, 0.3); }
#quotes .table tbody tr { border-left: 3px solid rgba(242, 170, 58, 0.35); }
#invoices .table tbody tr { border-left: 3px solid rgba(224, 82, 82, 0.28); }
#products .table tbody tr,
#fish .table tbody tr { border-left: 3px solid rgba(40, 152, 189, 0.28); }
#harvests .table tbody tr { border-left: 3px solid rgba(52, 168, 83, 0.28); }
#tasks .table tbody tr { border-left: 3px solid rgba(242, 170, 58, 0.35); }
#activities .table tbody tr { border-left: 3px solid rgba(61, 99, 234, 0.24); }
#reports .table tbody tr { border-left: 3px solid rgba(124, 92, 255, 0.25); }
#documents .table tbody tr { border-left: 3px solid rgba(217, 72, 143, 0.25); }
#settings .table tbody tr { border-left: 3px solid rgba(100, 116, 139, 0.25); }

.table tbody tr:hover {
  background: #f8fafc;
}

.list-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.list-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
}

.list-card strong {
  color: var(--ink);
  font-size: 13px;
}

.list-card p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--body);
  font-size: 12px;
}

.list-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card.grid-mode .table {
  display: none;
}

.card.grid-mode .list-grid {
  display: grid;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.assistant-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.assistant-prompts button {
  min-height: 34px;
  border: 1px solid #dce5fb;
  border-radius: 999px;
  padding: 0 12px;
  background: #f7faff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.assistant-chat {
  display: grid;
  gap: 10px;
  min-height: 240px;
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  background: #f8fafc;
}

.assistant-chat article {
  max-width: 84%;
  border-radius: 12px;
  padding: 10px 12px;
}

.assistant-chat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.assistant-chat p {
  margin: 0;
  color: var(--body);
  font-size: 12px;
}

.agent-message {
  justify-self: start;
  background: #ffffff;
  border: 1px solid var(--line);
}

.user-message {
  justify-self: end;
  background: var(--blue);
}

.user-message strong,
.user-message p {
  color: #ffffff;
}

.assistant-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.assistant-chat-form input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  outline: 0;
  color: var(--ink);
}

.assistant-chat-form button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
}

.source-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.source-citations strong {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-citations button {
  min-height: 28px;
  border: 1px solid #dce5fb;
  border-radius: 999px;
  padding: 0 10px;
  background: #f7faff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.admin-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-toolbar select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
}

.admin-editor-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-editor {
  min-width: 760px;
}

.admin-editor input {
  width: 100%;
  min-width: 120px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
}

.admin-editor input:focus {
  border-color: var(--blue);
  outline: 0;
  background: #ffffff;
}

.admin-delete-row {
  min-height: 30px;
  border: 1px solid #ffd2d2;
  border-radius: 7px;
  padding: 0 9px;
  background: #fff5f5;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}

.lower-admin {
  margin-top: 20px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  outline: 0;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-action,
.secondary-action {
  min-height: 36px;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.primary-action {
  border: 0;
  background: var(--blue);
  color: #ffffff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--body);
}

.section-toggle-list {
  display: grid;
  gap: 10px;
}

.section-toggle-list label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--body);
  font-size: 12px;
}

.section-toggle-list input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.admin-note {
  margin: 16px 0 0;
  border: 1px solid #dce5fb;
  border-radius: 9px;
  padding: 10px 12px;
  background: #f7faff;
  color: #1e3a8a;
  font-size: 12px;
}

.icon-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.icon-choice {
  display: grid;
  gap: 9px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  background: #ffffff;
  text-align: left;
}

.icon-choice.active {
  border-color: var(--blue);
  background: #f7faff;
  box-shadow: inset 0 0 0 1px rgba(61, 99, 234, 0.25);
}

.icon-choice strong {
  color: var(--ink);
  font-size: 13px;
}

.icon-choice small {
  color: var(--muted);
  font-size: 11px;
}

.sample-icons {
  display: flex;
  gap: 8px;
}

.sample-icons i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
}

.sample-icons.outline i:nth-child(1) { background: #eef3ff; color: var(--blue); }
.sample-icons.outline i:nth-child(2) { background: #eaf9f6; color: var(--teal); }
.sample-icons.outline i:nth-child(3) { background: #fff5e5; color: var(--amber); }
.sample-icons.solid i:nth-child(1) { background: var(--blue); color: #ffffff; }
.sample-icons.solid i:nth-child(2) { background: var(--teal); color: #ffffff; }
.sample-icons.solid i:nth-child(3) { background: var(--amber); color: #ffffff; }
.sample-icons.duo i {
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.sample-icons.duo i:nth-child(1) { background: linear-gradient(135deg, #dbe8ff, #fff); color: var(--blue); }
.sample-icons.duo i:nth-child(2) { background: linear-gradient(135deg, #dff8f4, #fff); color: var(--teal); }
.sample-icons.duo i:nth-child(3) { background: linear-gradient(135deg, #fff0c8, #fff); color: var(--amber); }

.note {
  margin-bottom: 18px;
  border: 1px solid #dce5fb;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--blue-soft);
  color: #1e3a8a;
}

.brief-card {
  max-width: 720px;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.brief-card header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-bottom: 3px solid var(--orange);
  background: var(--navy);
}

.brief-card header img {
  width: 170px;
}

.brief-card header span {
  color: #9aa8bd;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brief-card > div {
  padding: 28px;
}

.brief-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.brief-kpis strong {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  padding: 18px;
  background: var(--navy);
  color: #ffffff;
  font-size: 28px;
}

.brief-kpis span {
  color: #9aa8bd;
  font-size: 12px;
  text-transform: uppercase;
}

.placeholder .card {
  min-height: 240px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 1280px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .right-col,
  .assistant-workspace,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: 254px;
    transition: transform 160ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .overlay.show {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(15, 23, 42, 0.4);
  }

  .menu {
    display: block;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 16px;
  }

  .content {
    padding: 26px 16px 40px;
  }

  .glance,
  .card-grid.two,
  .lower,
  .right-col,
  .assistant-workspace,
  .admin-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 30px;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .actions {
    gap: 8px;
  }

  .actions button {
    width: 40px;
    height: 40px;
  }

  .schedule-list button,
  .activity button {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .activity span {
    display: none;
  }

  .activity time,
  .schedule-list em {
    text-align: left;
  }

  .brief-kpis {
    grid-template-columns: 1fr;
  }
}


.fish-media-card {
  display: grid;
  gap: 18px;
}

.fish-media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b2e3a;
  aspect-ratio: 16 / 9;
}

.fish-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fish-media-frame span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: min(620px, calc(100% - 28px));
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(11, 46, 58, 0.82);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
