:root {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --white: #ffffff;
  --line: #ddd8d1;
  --line-strong: #cfc9c1;
  --text: #67625d;
  --muted: #7d7770;
  --title: #1d62b2;
  --gold: #8a847d;
  --accent: #ea4d99;
  --accent-soft: #fbe7f1;
  --success: #2f8f5b;
  --success-soft: #e8f6ee;
  --success-border: #8cc8a7;
  --tab-text: #746f69;
  --header-bg: #f7f5f2;
  --table-head: #f2efeb;
}

.category-theme {
  --section-accent: var(--title);
  --section-soft: #f9fcff;
  --section-border: #bfd3ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

.text-muted,
.muted-note {
  color: #6f6963 !important;
}

.dashboard-page {
  background: #faf9f7;
}

.topbar {
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid #ece7e0;
  background: #f8f6f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  text-decoration: none;
  color: #6f6963;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-chip {
  color: #595959;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.user-chip-name {
  font-weight: 700;
}

.user-chip-role {
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #746f69;
}

.event-wrap {
  max-width: 1240px;
  margin: 22px auto 44px;
  padding: 0 16px;
}

.dashboard-breadcrumb {
  margin: 2px 0 8px;
  color: #746f69;
  font-size: 0.72rem;
}

.event-title {
  margin: 0;
  color: var(--title);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-meta {
  margin: 2px 0 16px;
  color: #746f69;
  font-size: 0.95rem;
}

.overview-card {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.25fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: none;
}

.overview-panel {
  padding: 14px 16px;
  min-height: 272px;
}

.overview-panel + .overview-panel {
  border-left: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  font-size: 1.9rem;
  color: #65615b;
  font-weight: 400;
  line-height: 1;
}

.panel-subtitle {
  color: #6f6963;
  font-style: italic;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.dropzone {
  border: 1px dashed #d9d4cf;
  background: #fbfbfa;
  border-radius: 3px;
  height: 154px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: #7ea5d8;
  background: #f4f8fd;
}

.dropzone input[type="file"] {
  display: none;
}

.dropzone-icon {
  font-size: 1.8rem;
  color: #8d8780;
}

.dropzone-text {
  color: #6f6963;
  font-size: 0.92rem;
}

.dropzone-or {
  color: #7d7770;
  font-size: 0.8rem;
}

.dropzone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2e6fbe;
  color: #fff;
  border: 1px solid #2a63a7;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.84rem;
  border-radius: 6px;
  padding: 4px 14px;
  line-height: 1;
}

.dropzone-btn::before {
  content: "⤴";
  font-size: 0.78rem;
  line-height: 1;
}

.dropzone-selected {
  margin-top: 4px;
  max-width: 90%;
  color: #746f69;
  font-size: 0.78rem;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dropzone-selected.has-file {
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  border: 1px solid #bfd3ec;
  border-radius: 4px;
  background: #eef5fd;
  color: #2a63a7;
  font-weight: 600;
  line-height: 1.25;
}

.cgv-doc-list {
  margin: 14px 0 0;
}

.cgv-doc-item {
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece8e3;
}

.cgv-file-meta {
  display: block;
  margin-top: 6px;
  color: #6a7572;
  font-size: 0.74rem;
  line-height: 1.25;
}

.cgv-file-name {
  display: block;
  max-width: 360px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cgv-empty-note {
  margin-top: 12px;
}

.file-types {
  margin-top: 3px;
  color: #6f6963;
  font-size: 0.75rem;
}

.upload-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.upload-fields input,
.upload-fields select,
.budget-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 3px;
  min-height: 31px;
  padding: 6px 8px;
  font-size: 0.84rem;
  color: #69645d;
}

.quote-fields {
  display: contents;
}

.upload-fields.is-locked .quote-fields input,
.upload-fields.is-locked .quote-fields select {
  background: #f7f5f2;
  color: #746f69;
  border-color: #d9d4cf;
  cursor: not-allowed;
}

.upload-fields.is-locked .quote-fields input::placeholder {
  color: #746f69;
}

.action-btn {
  margin-top: 7px;
  border: 1px solid #2a63a7;
  background: #2e6fbe;
  color: #fff;
  font-size: 0.84rem;
  border-radius: 3px;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.action-btn.ghost {
  margin-top: 9px;
  background: transparent;
  color: #666;
  border-color: var(--line);
}

.emblem-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-ring {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.emblem-ring img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.98;
}

.budget-lines {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.budget-line-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0;
  border-bottom: 0;
}

.budget-line-item.section-budget {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.budget-line-item.section-budget .budget-line-label span,
.budget-line-item.section-budget .budget-line-value strong,
.budget-line-item.section-budget .budget-line-vat {
  color: var(--section-accent);
}

.budget-line-item-accent {
  margin-bottom: 10px;
}

.budget-line-label span {
  display: block;
  color: #67625c;
  font-size: 1rem;
  line-height: 1.1;
  text-transform: none;
}

.budget-line-label small {
  display: block;
  color: #746f69;
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.1;
}

.budget-line-value {
  text-align: right;
}

.budget-line-value strong {
  display: block;
  color: #5f5a54;
  font-size: 1.05rem;
  line-height: 1;
}

.budget-line-vat {
  display: inline-block;
  margin-left: 6px;
  color: #928d87;
  font-weight: 700;
  font-size: 0.95rem;
}

.budget-line-value small {
  display: block;
  color: #746f69;
  font-size: 0.72rem;
  font-style: italic;
  margin-top: 1px;
  max-width: 260px;
}

.tabs {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.portal-nav {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.category-tabs,
.utility-tabs,
.sub-tabs {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}

.category-tabs {
  flex: 1 1 auto;
  gap: 24px;
}

.utility-tabs {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 20px;
}

.sub-tabs {
  margin-top: 10px;
  gap: 0;
  border-bottom-color: #dfdbd5;
}

.tab {
  text-decoration: none;
  padding: 8px 0 9px;
  border-bottom: 2px solid transparent;
  min-width: max-content;
}

.category-tab {
  padding-right: 8px;
  border-bottom-width: 3px;
}

.tab-label {
  display: block;
  font-size: 0.96rem;
  text-transform: uppercase;
  color: var(--tab-text);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.tab-subtitle {
  display: block;
  color: #746f69;
  font-size: 0.78rem;
  line-height: 1;
  font-style: italic;
  margin-top: 2px;
}

.tab.active {
  border-bottom-color: var(--success);
}

.tab.active .tab-label {
  color: var(--success);
  font-weight: 700;
}

.category-tab .tab-label {
  color: var(--section-accent);
}

.category-tab .tab-subtitle {
  color: color-mix(in srgb, var(--section-accent) 70%, #5f5a54);
}

.category-tab.active {
  border-bottom-color: var(--section-accent);
}

.category-tab.active .tab-label {
  color: var(--section-accent);
}

.utility-tabs .tab-label {
  font-size: 0.86rem;
  color: #a29d97;
}

.utility-tabs .tab-subtitle {
  text-align: right;
}

.sub-tabs .tab {
  min-width: 132px;
  padding: 9px 14px 10px;
  margin-right: 1px;
  border: 1px solid color-mix(in srgb, var(--section-border) 70%, #e1ddd8);
  border-bottom: 0;
  background: color-mix(in srgb, var(--section-soft) 40%, #fbfaf8);
}

.sub-tabs .tab-label {
  font-size: 0.84rem;
  text-align: center;
  color: color-mix(in srgb, var(--section-accent) 60%, #8f8a84);
}

.sub-tabs .tab-subtitle {
  font-size: 0.62rem;
  text-align: center;
  color: color-mix(in srgb, var(--section-accent) 45%, #6f6963);
}

.sub-tabs .tab.active {
  background: var(--section-soft);
  border-color: var(--section-border);
}

.sub-tabs .tab.active .tab-label {
  color: var(--section-accent);
}

.sub-tabs .tab.active .tab-subtitle {
  color: color-mix(in srgb, var(--section-accent) 55%, white);
}

.table-zone {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  overflow: auto;
  padding: 0;
}

.section-heading {
  padding: 16px 18px 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-heading.category-heading h2 {
  color: var(--section-accent);
}

.section-heading p {
  margin: 4px 0 0;
  color: #746f69;
  font-size: 0.78rem;
  font-style: italic;
}

.event-table {
  min-width: 1080px;
  margin: 0;
}

.event-table thead th {
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid #cfcfcf;
  background: var(--table-head);
  padding: 8px 10px;
}

.event-table thead th:last-child {
  border-right: none;
}

.event-table thead th span {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #5f5a54;
}

.event-table thead th small {
  display: block;
  font-size: 0.73rem;
  color: #746f69;
  font-style: italic;
}

.event-table tbody td {
  border-top: 1px solid #e4e0da;
  border-right: 1px solid #ece8e3;
  padding: 7px 10px;
  font-size: 0.95rem;
  vertical-align: middle;
  background: #fff;
}

.event-table tbody td:last-child {
  border-right: none;
}

.file-name-cell {
  max-width: 140px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.78rem;
  line-height: 1.2;
}

.budget-cell {
  min-width: 240px;
}

.budget-kpi {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #7d7770;
}

.budget-kpi.budget-over {
  color: #9b4c4c;
}

.budget-kpi.budget-ok {
  color: var(--gold);
}

.budget-kpi-lines {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  font-size: 0.82rem;
}

.budget-kpi-lines div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.budget-kpi-lines span {
  color: #888;
}

.inline-form {
  margin: 4px 0 0;
}

.tiny-input {
  width: 88px;
  min-height: 28px;
  border: 1px solid #d6d1cb;
  background: #fff;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 0.74rem;
  margin: 4px 4px 0 0;
}

.tiny-btn {
  border: 1px solid #d4cfd2;
  background: #fbf3f7;
  color: #8c5a74;
  border-radius: 3px;
  padding: 4px 10px;
  min-height: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dl-btn {
  border: 1px solid #d5d0cb;
  background: #fff;
  color: #7a746d;
  border-radius: 3px;
  padding: 5px 14px;
  min-width: 132px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dl-btn:hover,
.tiny-btn:hover {
  border-color: #cc9bb5;
  background: #f9eaf1;
  color: #8e4068;
}

.dl-btn-file {
  text-transform: none;
  letter-spacing: 0;
  min-width: 0;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-pending td {
  background: #fff;
  color: #b5b0aa;
}

.row-pending .validation-line {
  color: #9f9f9f;
}

.row-pending .check-box {
  border-color: #c9c9c9;
  background: #fbfbfb;
  color: #b5b5b5;
}

.row-client-validated td {
  background: var(--success-soft) !important;
  border-top: 1px solid var(--success-border) !important;
  border-bottom: 1px solid var(--success-border) !important;
  color: #235f3f;
  font-weight: 700;
}

.row-agency-confirmed td {
  background: color-mix(in srgb, var(--success-soft) 78%, white) !important;
  border-top: 1px solid var(--success) !important;
  border-bottom: 1px solid var(--success) !important;
  color: #1f5638;
  font-weight: 700;
}

.row-client-validated td:first-child {
  border-left: 2px solid var(--success-border) !important;
}

.row-agency-confirmed td:first-child {
  border-left: 2px solid var(--success) !important;
}

.row-category-not-desired td {
  background: #f1f1f1 !important;
  border-top: 1px solid #c9c9c9 !important;
  border-bottom: 1px solid #c9c9c9 !important;
  color: #7a7a7a;
}

.row-category-not-desired td:first-child {
  border-left: 2px solid #b8b8b8 !important;
}

.row-category-not-desired select,
.row-category-not-desired .tiny-input {
  background: #ececec;
  border-color: #c9c9c9;
  color: #666;
}

.recap-total-row td {
  background: color-mix(in srgb, var(--success-soft) 55%, white);
  border-top: 1px solid var(--success-border) !important;
  border-bottom: 1px solid var(--success-border) !important;
  color: #235f3f;
  font-weight: 600;
}

.validation-stack {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.validation-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #918b84;
  font-size: 0.78rem;
  line-height: 1.2;
}

.validation-line.checked {
  color: var(--success);
  font-weight: 600;
}

.check-box {
  width: 16px;
  height: 16px;
  border: 1px solid #d2cbc5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  background: #fff;
  color: var(--success);
}

.validation-line.checked .check-box {
  border-color: var(--success-border);
  background: var(--success-soft);
}

.empty {
  text-align: center;
  color: #8b8b8b;
  padding: 18px;
}

.welcome-title {
  margin: 34px 0 58px;
  color: #2f2f2f;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
}

.welcome-title span {
  color: var(--title);
  font-weight: 700;
}

.projects-group {
  margin-top: 12px;
}

.projects-group-history {
  margin-top: 86px;
}

.projects-group-title {
  position: relative;
  margin: 0 0 12px;
  padding-left: 10px;
  color: #7f7c79;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.projects-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 24px;
  background: currentColor;
}

.projects-group-title.active {
  color: var(--title);
}

.projects-stack {
  display: grid;
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) minmax(320px, auto) minmax(96px, auto);
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid #bfd3ec;
  border-radius: 3px;
  background: #fff;
}

.project-card.closed {
  border-color: #dfdbd5;
}

.project-card.empty-state {
  display: block;
  padding: 16px 20px;
  color: #746f69;
}

.project-card-title {
  color: var(--title);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-card.closed .project-card-title {
  color: #6f6963;
  font-weight: 500;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 15px;
  padding: 0 6px;
  border: 1px solid var(--section-border);
  border-radius: 999px;
  color: var(--section-accent);
  background: var(--section-soft);
  font-size: 0.60rem;
  line-height: 1;
  white-space: nowrap;
}

.project-tag.muted,
.project-card.closed .project-tag {
  border-color: color-mix(in srgb, var(--section-border) 60%, #e4e0da);
  color: color-mix(in srgb, var(--section-accent) 35%, #c0bbb4);
  background: #fff;
}

.section-option {
  border: 1px solid var(--section-border) !important;
  background: var(--section-soft) !important;
  border-radius: 10px !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  min-height: 132px;
}

.section-option:hover {
  border-color: var(--section-accent) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.section-option input:checked + span .section-option-label {
  color: var(--section-accent) !important;
}

.section-option-label {
  display: block;
  color: var(--section-accent);
}

.section-option-subtitle {
  color: color-mix(in srgb, var(--section-accent) 60%, #8f8a84);
}

.section-budget-field.is-disabled {
  opacity: 0.45;
}

.project-section-col {
  display: flex;
  flex-direction: column;
}

.project-section-col .section-option {
  flex: 1 1 auto;
}

.section-budget-field {
  margin-top: 10px !important;
  position: relative;
}

.section-budget-input:disabled {
  background: #f6f4f1;
  color: #746f69;
  cursor: not-allowed;
}

.category-budget-note {
  margin-top: 10px;
  padding-top: 2px;
}

.form-submit-row {
  margin-top: 18px !important;
  padding-top: 8px;
  border-top: 1px solid #ece7e0;
}

@media (max-width: 768px) {
  .section-option {
    min-height: auto;
  }
}

.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  padding: 8px 0;
  border-left: 1px solid #e5e1dc;
  border-right: 1px solid #e5e1dc;
}

.project-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  min-height: 24px;
  padding: 0 16px;
  border: 1px solid #5e90d2;
  border-radius: 3px;
  color: var(--title);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.56rem;
  font-weight: 700;
  background: #fff;
  letter-spacing: 0.02em;
}

.project-card-action.subtle {
  min-width: 92px;
  border-color: #d8d2cb;
  color: #8f8a84;
  background: #fbfaf8;
}

.project-card-action.danger {
  min-width: 92px;
  border-color: #e1c5d1;
  color: #b36b83;
  background: #fff8fb;
}

.project-inline-form {
  margin: 0;
}

.project-card-date {
  color: var(--title);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.project-card.closed .project-card-date {
  color: #9d9892;
  font-weight: 500;
}

.entity-picker {
  border: 1px solid #ddd8d1;
  border-radius: 6px;
  background: #fff;
}

.entity-picker-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid #ece7e0;
  background: #faf8f5;
}

.entity-picker-search {
  width: 100%;
}

.entity-picker-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.entity-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e7e2dc;
  border-radius: 6px;
  background: #fff;
}

.entity-picker-item strong {
  display: block;
  color: #4f5f5c;
}

.entity-picker-item small {
  color: #8d8882;
}

.entity-picker-empty {
  padding: 14px 12px;
  color: #9a948d;
  font-size: 0.9rem;
  text-align: center;
}

.category-admin-zone {
  margin-top: 18px;
}

.category-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 18px 18px;
}

.category-admin-form {
  margin: 0;
}

.category-admin-card {
  border: 1px solid var(--category-border);
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--category-soft) 78%, white) 0%, #fff 100%);
  padding: 18px 18px 16px;
}

.category-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.category-admin-card-head h3 {
  margin: 0;
  color: var(--category-accent);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-admin-card-head p {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--category-accent) 55%, #8d8882);
  font-size: 0.78rem;
  font-style: italic;
}

.category-admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--category-border);
  border-radius: 999px;
  color: var(--category-accent);
  background: color-mix(in srgb, var(--category-soft) 80%, white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-admin-list {
  margin: 0;
  padding-left: 18px;
  color: #59544e;
  display: grid;
  gap: 7px;
}

.category-admin-list li {
  padding-left: 2px;
  line-height: 1.4;
}

.category-admin-empty {
  margin: 0;
  color: #9a948d;
}

.category-admin-label {
  display: block;
  margin-bottom: 8px;
  color: var(--category-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-admin-textarea {
  min-height: 240px;
  border-color: var(--category-border);
  background: color-mix(in srgb, var(--category-soft) 28%, white);
  color: #4f4a44;
  resize: vertical;
}

.category-admin-textarea:focus {
  border-color: var(--category-accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--category-soft) 55%, white);
}

.category-admin-actions {
  padding: 0 18px 18px;
}

@media (max-width: 1080px) {
  .overview-card {
    grid-template-columns: 1fr;
  }

  .overview-panel + .overview-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .portal-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .utility-tabs {
    justify-content: flex-start;
  }

  .tabs {
    gap: 16px;
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 14px 16px;
    gap: 12px;
  }

  .project-card-actions {
    justify-content: flex-start;
    border: 0;
    padding-top: 4px;
  }

  .project-card-date {
    text-align: left;
  }

  .category-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .event-title {
    font-size: 1.25rem;
  }

  .panel-title {
    font-size: 0.92rem;
  }

  .budget-main {
    font-size: 1.55rem;
  }

  .upload-fields {
    grid-template-columns: 1fr;
  }

  .welcome-title {
    margin: 18px 0 34px;
    font-size: 0.98rem;
  }

  .projects-group-history {
    margin-top: 48px;
  }
}
