@import url("https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;500;700;800&display=swap");

:root {
  --graphite-950: #25272d;
  --graphite-900: #2d3037;
  --graphite-800: #3a3d45;
  --graphite-600: #666b76;
  --graphite-400: #9ca1ab;
  --paper: #fffefd;
  --canvas: #f1f1ef;
  --line: #dedfdf;
  --accent: #f6ad18;
  --accent-hover: #e99c06;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--graphite-950);
  font-family: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 8% 12%, rgba(246, 173, 24, 0.12), transparent 26%),
    linear-gradient(135deg, #f7f6f2 0%, #ebebea 100%);
}

.login-card {
  width: min(1080px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid rgba(45, 48, 55, 0.08);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(37, 39, 45, 0.16);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 48px 52px 42px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(44, 47, 54, 0.18), rgba(28, 30, 35, 0.68)),
    var(--graphite-900);
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -170px;
  bottom: 82px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 68px rgba(255, 255, 255, 0.025),
    0 0 0 136px rgba(255, 255, 255, 0.02);
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: 310px;
  height: 128px;
  margin: -24px 0 42px -28px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin-top: auto;
  margin-bottom: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffc749;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.brand-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.brand-copy p {
  max-width: 410px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.6;
}

.brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54d892;
  box-shadow: 0 0 0 4px rgba(84, 216, 146, 0.12);
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 66px 44px;
}

.mobile-brand {
  display: none;
}

.form-heading h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.form-heading p {
  margin: 0;
  color: var(--graphite-600);
  font-size: 15px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

.login-form label {
  display: grid;
  gap: 9px;
  color: var(--graphite-800);
  font-size: 13px;
  font-weight: 720;
}

.login-form input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--graphite-950);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input::placeholder {
  color: var(--graphite-400);
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(246, 173, 24, 0.14);
}

.login-form button {
  height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  color: #22252a;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(246, 173, 24, 0.2);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-form button:hover {
  background: var(--accent-hover);
  box-shadow: 0 16px 34px rgba(246, 173, 24, 0.28);
  transform: translateY(-1px);
}

.login-form button:focus-visible {
  outline: 3px solid rgba(246, 173, 24, 0.35);
  outline-offset: 3px;
}

.access-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 30px;
  padding: 14px 15px;
  border-radius: 12px;
  background: #f5f5f3;
  color: var(--graphite-600);
  font-size: 12px;
  line-height: 1.5;
}

.access-note p {
  margin: 0;
}

.lock-icon {
  color: var(--accent-hover);
  font-size: 10px;
  transform: rotate(45deg);
}

.legal {
  margin: auto 0 0;
  padding-top: 36px;
  color: var(--graphite-400);
  font-size: 11px;
  text-align: center;
}

.demo-note {
  margin: 14px 0 -20px;
  color: var(--graphite-400);
  font-size: 10px;
  text-align: center;
}

.hub-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  background: #f4f4f2;
  transition: grid-template-columns 180ms ease;
}

.hub-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  color: #fff;
  background: #292c32;
}

.hub-brand {
  padding: 0 10px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hub-sidebar-toggle {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.hub-sidebar-toggle:hover {
  border-color: rgba(246, 173, 24, 0.34);
  color: var(--accent);
  background: rgba(246, 173, 24, 0.08);
}

.hub-sidebar-toggle span {
  font-size: 22px;
  line-height: 1;
}

.hub-brand-logo {
  width: 142px;
  height: 58px;
  margin-left: -14px;
  overflow: hidden;
}

.hub-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-brand > span {
  display: block;
  margin-top: -5px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-nav {
  display: grid;
  gap: 7px;
  padding: 26px 0 20px;
}

.hub-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.hub-nav button > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 850;
}

.hub-nav button small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  text-transform: uppercase;
}

.hub-nav button:hover,
.hub-nav button.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.hub-nav button.is-current::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 4px;
  height: 27px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.hub-nav button.is-current > span {
  border-color: rgba(246, 173, 24, 0.32);
  color: #ffc44b;
  background: rgba(246, 173, 24, 0.12);
}

.sidebar-group {
  display: grid;
  gap: 2px;
  padding: 20px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-group p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-group button {
  padding: 8px 0;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.sidebar-group button:hover {
  color: #fff;
}

.sidebar-group a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-decoration: none;
}

.sidebar-group a:hover {
  color: #fff;
}

.hub-user {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #2b2d31;
  background: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-user strong,
.hub-user span {
  display: block;
}

.hub-user strong {
  font-size: 11px;
}

.hub-user span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.hub-user > button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
}

.hub-user > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.hub-main {
  min-width: 0;
  padding: 0 42px 54px;
}

.hub-topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #e0e0dd;
}

.crumb {
  color: #999da5;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.hub-topbar h1 {
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-search {
  width: 235px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #dededa;
  border-radius: 10px;
  background: #fff;
}

.hub-search > span {
  color: #999da5;
  font-size: 18px;
}

.hub-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--graphite-900);
  background: transparent;
  font-size: 12px;
}

.hub-search input::placeholder {
  color: #a9acb2;
}

.notice-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dededa;
  border-radius: 10px;
  color: var(--graphite-600);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.notice-button > span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.welcome-strip {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 32px;
  padding: 31px 34px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(246, 173, 24, 0.25), transparent 30%),
    #31343a;
}

.welcome-strip > div:first-child > span {
  color: #ffc44b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.welcome-strip h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.welcome-strip p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.55;
}

.setup-progress {
  width: 170px;
  flex: 0 0 auto;
}

.setup-progress strong,
.setup-progress span {
  display: block;
}

.setup-progress strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.setup-progress span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.setup-progress > div {
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.setup-progress i {
  display: block;
  width: 15%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.content-section {
  margin-top: 38px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-kicker {
  color: #a0a3aa;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.section-heading > button {
  padding: 8px 0;
  border: 0;
  color: #757983;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.section-heading > button:hover {
  color: var(--graphite-950);
}

.section-heading > button.primary-action {
  padding: 11px 16px;
  border-radius: 9px;
  color: #25272d;
  background: var(--accent);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.system-card {
  position: relative;
  min-height: 145px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 13px;
  padding: 21px;
  border: 1px solid #e1e1de;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.system-card {
  cursor: pointer;
}

button.system-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
}

a.system-card:hover,
button.system-card:hover {
  border-color: #d6b25c;
  box-shadow: 0 12px 30px rgba(45, 48, 55, 0.08);
  transform: translateY(-2px);
}

.system-code {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 11px;
  color: #6f737c;
  background: #eeeeec;
  font-size: 11px;
  font-weight: 900;
}

.system-code.active {
  color: #2d3037;
  background: #ffd268;
}

.system-code.secure {
  color: #47745c;
  background: #e3f1e9;
}

.system-card-copy h3 {
  margin: 2px 0 6px;
  font-size: 14px;
}

.system-card-copy p {
  min-height: 34px;
  margin: 0 0 13px;
  color: #7b7f88;
  font-size: 10px;
  line-height: 1.5;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9699a0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.system-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.system-status.active {
  color: #548568;
}

.system-status.secure {
  color: #548568;
}

.system-status.planned {
  color: #ad8331;
}

.system-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #bbbdbf;
  font-size: 14px;
}

.setup-section {
  padding-top: 4px;
}

.setup-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.setup-column {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e1e1de;
  border-radius: 14px;
  background: #ededeb;
}

.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 3px 12px;
}

.column-title h3 {
  margin: 0;
  color: #565a63;
  font-size: 11px;
}

.column-title span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: #7d8087;
  background: #dededb;
  font-size: 9px;
}

.column-items {
  display: grid;
  gap: 9px;
}

.setup-task {
  padding: 14px;
  border: 1px solid #e4e4e1;
  border-radius: 10px;
  background: #fff;
}

.setup-task > span {
  color: #a07822;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.setup-task h4 {
  margin: 7px 0 16px;
  font-size: 11px;
  line-height: 1.4;
}

.setup-task > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setup-task i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #2f3136;
  background: #ffd268;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.setup-task small {
  color: #a1a4aa;
  font-size: 8px;
}

.setup-board.is-compact .setup-column:nth-child(3) .setup-task:nth-child(n + 3) {
  display: none;
}

.full-board {
  margin-top: 34px;
}

@media (max-width: 1120px) {
  .hub-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .hub-main {
    padding-inline: 28px;
  }

  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hub-shell {
    display: block;
  }

  .hub-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 18px;
  }

  .hub-brand {
    padding: 0;
    border: 0;
  }

  .hub-sidebar-toggle {
    display: none;
  }

  .hub-brand-logo {
    width: 114px;
    height: 44px;
  }

  .hub-brand > span,
  .sidebar-group,
  .hub-user {
    display: none;
  }

  .hub-nav {
    display: flex;
    padding: 10px 0 0;
    overflow-x: auto;
  }

  .hub-nav button {
    min-width: max-content;
    min-height: 38px;
  }

  .hub-nav button.is-current::before {
    display: none;
  }

  .hub-main {
    padding: 0 20px 40px;
  }

  .hub-topbar {
    min-height: 90px;
  }

  .hub-search {
    display: none;
  }

  .welcome-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .setup-progress {
    width: 100%;
  }

  .setup-board {
    grid-template-columns: 1fr;
  }

  .setup-board.is-compact .setup-column:nth-child(3) {
    display: none;
  }
}

@media (max-width: 580px) {
  .hub-main {
    padding-inline: 14px;
  }

  .hub-topbar h1 {
    font-size: 21px;
  }

  .notice-button {
    display: none;
  }

  .welcome-strip {
    margin-top: 18px;
    padding: 25px 22px;
  }

  .systems-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }
}

/* Mail pilot */
.mail-main {
  min-width: 0;
  padding-right: 22px;
  overflow: hidden;
}

.mail-topbar {
  padding-right: 0;
}

.mail-pilot-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #dce9df;
  border-radius: 14px;
  background: #f5faf6;
  color: #52705d;
}

.mail-pilot-status > i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #50a56e;
  box-shadow: 0 0 0 4px rgba(80, 165, 110, 0.13);
}

.mail-pilot-status span,
.mail-pilot-status strong {
  display: block;
}

.mail-pilot-status span {
  font-size: 8px;
  line-height: 1.35;
}

.mail-pilot-status strong {
  margin-bottom: 2px;
  color: #31563f;
  font-size: 9px;
}

.mail-empty-state {
  min-height: 440px;
  display: grid;
  grid-template-columns: auto minmax(0, 480px);
  place-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  border: 1px dashed #d6d7d4;
  border-radius: 24px;
  background: #fff;
}

.mail-empty-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--graphite-900);
  color: var(--accent);
  font-size: 19px;
  font-weight: 800;
}

.mail-empty-state h2 {
  margin: 7px 0 8px;
  font-size: 28px;
}

.mail-empty-state p {
  margin: 0;
  color: var(--graphite-600);
  font-size: 11px;
  line-height: 1.65;
}

.mail-send-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid #cfe4d5;
  border-radius: 13px;
  background: #f3faf5;
  color: #52705d;
  font-size: 8px;
}

.mail-send-success strong {
  color: #31563f;
  font-size: 9px;
}

.mail-pilot-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid #dfdfdc;
  border-radius: 16px;
  background: #fff;
}

.mail-pilot-summary > div {
  min-width: 0;
  padding: 13px 15px;
  border-left: 1px solid #ececea;
}

.mail-pilot-summary > div:first-child {
  border-left: 0;
}

.mail-pilot-summary span,
.mail-pilot-summary strong,
.mail-pilot-summary small {
  display: block;
}

.mail-pilot-summary span {
  color: #9b9da2;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-pilot-summary strong {
  margin: 3px 0 1px;
  overflow: hidden;
  color: #30333a;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.mail-pilot-summary small {
  overflow: hidden;
  color: #979aa1;
  font-size: 7px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mail-pilot-summary .mail-summary-ok {
  background: #f5faf6;
}

.mail-pilot-summary .mail-summary-ok strong {
  color: #3f7553;
}

.mail-workspace {
  height: calc(100vh - 190px);
  min-height: 610px;
  display: grid;
  grid-template-columns: 210px minmax(300px, 0.75fr) minmax(390px, 1.25fr);
  overflow: hidden;
  border: 1px solid #dedfdd;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 16px 40px rgba(37, 39, 45, 0.06);
}

.mail-folders,
.mail-list-panel,
.mail-reader {
  min-width: 0;
  min-height: 0;
}

.mail-folders {
  padding: 16px 12px;
  overflow-y: auto;
  border-right: 1px solid #e4e4e2;
  background: #f6f6f3;
}

.mail-compose {
  width: 100%;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dcae3c;
  border-radius: 10px;
  background: var(--accent);
  color: #24272d;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mail-compose:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(179, 126, 0, 0.18);
}

.mail-account-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 14px 2px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfdfdc;
}

.mail-account-card > i,
.mail-message-sender > i {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--graphite-900);
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.mail-account-card > i {
  width: 32px;
  height: 32px;
}

.mail-account-card span,
.mail-account-card strong,
.mail-account-card small {
  min-width: 0;
  display: block;
}

.mail-account-card strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
}

.mail-account-card small {
  margin-top: 2px;
  color: #96999f;
  font-size: 7px;
}

.mail-folders nav {
  display: grid;
  gap: 2px;
}

.mail-folders nav a {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border-radius: 9px;
  color: #5e626b;
  font-size: 8px;
  text-decoration: none;
}

.mail-folders nav a.is-child {
  padding-left: 24px;
}

.mail-folders nav a:hover,
.mail-folders nav a.is-current {
  background: #fff;
  color: #24272d;
}

.mail-folders nav a.is-current {
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 800;
}

.mail-folders nav a > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mail-folders nav a > span i {
  margin-right: 6px;
  color: #b6b8bd;
  font-style: normal;
}

.mail-folders nav a.is-current > span i {
  color: var(--accent);
}

.mail-folders nav a b {
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fde7b6;
  color: #78530c;
  font-size: 6px;
  text-align: center;
}

.mail-folders nav a small {
  color: #a6a8ad;
  font-size: 6px;
}

.mail-folders-note {
  margin: 18px 5px 4px;
  padding-top: 12px;
  border-top: 1px solid #dfdfdc;
  color: #9b9da2;
  font-size: 6px;
  line-height: 1.5;
}

.mail-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid #e4e4e2;
}

.mail-list-panel > header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e4e2;
}

.mail-list-panel > header h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.mail-search {
  width: min(178px, 48%);
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #dedfdd;
  border-radius: 9px;
  background: #fafafa;
}

.mail-search span {
  color: #9c9fa5;
}

.mail-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #41444b;
  font-size: 7px;
}

.mail-list {
  min-height: 0;
  overflow-y: auto;
}

.mail-list-item {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid #ececea;
  color: inherit;
  text-decoration: none;
}

.mail-list-item:hover {
  background: #fbfbf9;
}

.mail-list-item.is-selected {
  background: #fff8e9;
  box-shadow: inset 3px 0 0 var(--accent);
}

.mail-sender-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeeeea;
  color: #555963;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.mail-list-item.is-unread .mail-sender-avatar {
  background: var(--graphite-900);
  color: var(--accent);
}

.mail-list-copy,
.mail-list-head,
.mail-list-copy strong,
.mail-list-copy b,
.mail-list-copy small {
  min-width: 0;
  display: block;
}

.mail-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mail-list-copy strong {
  overflow: hidden;
  color: #4d5159;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mail-list-head time {
  flex: 0 0 auto;
  color: #999ca3;
  font-size: 9px;
}

.mail-list-copy b {
  margin: 5px 20px 3px 0;
  overflow: hidden;
  color: #30333a;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mail-list-item.is-unread .mail-list-copy b,
.mail-list-item.is-unread .mail-list-copy strong {
  color: #22252b;
  font-weight: 800;
}

.mail-list-copy small {
  overflow: hidden;
  color: #989ba2;
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mail-list-attachment {
  position: absolute;
  right: 16px;
  top: 38px;
  color: #777b84;
  font-size: 11px;
}

.mail-list-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #9b9da2;
  font-size: 6px;
}

.mail-list-meta i {
  color: #777b84;
  font-size: 10px;
  font-style: normal;
}

.mail-list-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 30px;
  color: #898c93;
  text-align: center;
}

.mail-list-empty strong {
  color: #555962;
  font-size: 10px;
}

.mail-list-empty span {
  max-width: 260px;
  font-size: 7px;
  line-height: 1.5;
}

.mail-pagination {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid #e4e4e2;
  background: #fafaf8;
  font-size: 7px;
}

.mail-pagination a {
  color: #5f646d;
  font-weight: 800;
  text-decoration: none;
}

.mail-pagination a:last-child {
  text-align: right;
}

.mail-pagination b {
  color: #8d9097;
  font-size: 7px;
}

.mail-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
}

.mail-reader-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-bottom: 1px solid #e5e5e3;
}

.mail-reader-toolbar > span {
  color: #8c9097;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mail-reader-toolbar > div {
  display: flex;
  gap: 5px;
}

.mail-reader-toolbar button,
.mail-reader-toolbar a {
  height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e1e1df;
  border-radius: 8px;
  background: #f5f5f2;
  color: #555962;
  font-size: 7px;
  text-decoration: none;
}

.mail-reader-toolbar button:disabled {
  color: #a3a5aa;
}

.mail-compose-panel {
  min-height: 0;
  padding: 22px 26px 32px;
  overflow-y: auto;
}

.mail-compose-form {
  display: grid;
  gap: 12px;
}

.mail-compose-form > label:not(.mail-send-confirm) {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.mail-compose-form > label > span {
  color: #6d7179;
  font-size: 8px;
  font-weight: 800;
}

.mail-compose-form input:not([type="checkbox"]):not([type="file"]),
.mail-compose-form textarea {
  width: 100%;
  border: 1px solid #dfe0de;
  border-radius: 9px;
  outline: 0;
  background: #fafaf8;
  color: #30333a;
  font: inherit;
  font-size: 9px;
}

.mail-compose-form input:not([type="checkbox"]):not([type="file"]) {
  height: 38px;
  padding: 0 11px;
}

.mail-compose-form input[readonly] {
  color: #7f838a;
  background: #f1f1ee;
}

.mail-compose-form input:focus,
.mail-compose-form textarea:focus {
  border-color: #d6aa40;
  box-shadow: 0 0 0 3px rgba(226, 175, 52, 0.12);
}

.mail-compose-form .mail-compose-body {
  align-items: start;
}

.mail-compose-form textarea {
  min-height: 230px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

.mail-compose-attachments {
  align-items: start !important;
}

.mail-file-picker {
  position: relative;
  min-height: 58px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #d2b66f;
  border-radius: 10px;
  background: #fffaf0;
  cursor: pointer;
}

.mail-file-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.mail-file-picker b {
  flex: 0 0 auto;
  color: #4f432b;
  font-size: 9px;
}

.mail-file-picker small {
  min-width: 0;
  overflow: hidden;
  color: #8b7b59;
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-send-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-left: 67px;
  padding: 10px;
  border-radius: 9px;
  background: #fff8e9;
}

.mail-send-confirm input {
  margin: 1px 0 0;
  accent-color: #b77c00;
}

.mail-send-confirm span {
  color: #5d5134;
  font-size: 7px;
  line-height: 1.5;
}

.mail-compose-note {
  margin: 0 0 0 67px;
  color: #95989f;
  font-size: 7px;
  line-height: 1.55;
}

.mail-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.mail-compose-actions a,
.mail-compose-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.mail-compose-actions a {
  border: 1px solid #dedfdd;
  color: #666a72;
}

.mail-compose-actions button {
  border: 1px solid #dcae3c;
  background: var(--accent);
  color: #24272d;
}

.mail-reader-content {
  min-height: 0;
  padding: 24px 28px 40px;
  overflow-y: auto;
}

.mail-message-state {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f2ef;
  color: #858991;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mail-reader-content > h2 {
  margin: 12px 0 18px;
  color: #26292f;
  font-size: clamp(20px, 2vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.mail-message-sender {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid #ececea;
  border-bottom: 1px solid #ececea;
}

.mail-message-sender > i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.mail-message-sender span,
.mail-message-sender strong,
.mail-message-sender small {
  min-width: 0;
  display: block;
}

.mail-message-sender strong {
  overflow: hidden;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mail-message-sender small,
.mail-message-sender time {
  color: #95989f;
  font-size: 7px;
}

.mail-message-sender small {
  margin-top: 3px;
}

.mail-message-recipients {
  display: grid;
  gap: 3px;
  margin: 12px 0 20px;
}

.mail-message-recipients > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 7px;
}

.mail-message-recipients dt,
.mail-message-recipients dd {
  margin: 0;
  color: #888b92;
  font-size: 7px;
  line-height: 1.5;
}

.mail-message-recipients dt {
  font-weight: 800;
}

.mail-message-body {
  color: #3d4149;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  line-height: 1.72;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.mail-message-html {
  white-space: normal;
}

.mail-original-view {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e2e2df;
  border-radius: 13px;
  background: #fff;
}

.mail-original-toolbar,
.mail-text-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7e7e4;
  background: #f8f8f5;
}

.mail-original-toolbar > span,
.mail-original-toolbar > span :is(strong, small) {
  min-width: 0;
  display: block;
}

.mail-original-toolbar strong,
.mail-text-view-toolbar > span {
  color: #4c5058;
  font-size: 7px;
  font-weight: 850;
}

.mail-original-toolbar small {
  margin-top: 2px;
  color: #96999f;
  font-size: 6px;
  line-height: 1.35;
}

.mail-original-toolbar > div {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.mail-original-toolbar a,
.mail-text-view-toolbar a {
  padding: 6px 8px;
  border: 1px solid #dedfdd;
  border-radius: 7px;
  background: #fff;
  color: #666a72;
  font-size: 6px;
  font-weight: 800;
  text-decoration: none;
}

.mail-original-frame {
  width: 100%;
  min-height: 640px;
  height: min(760px, calc(100vh - 300px));
  display: block;
  border: 0;
  background: #fff;
}

.mail-text-view-toolbar {
  margin: 18px 0 14px;
  border: 1px solid #e2e2df;
  border-radius: 10px;
}

.mail-message-html :is(p, div, blockquote, pre, table, ul, ol) {
  margin: 0 0 1em;
}

.mail-message-html :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.2em 0 0.55em;
  color: #2f333a;
  line-height: 1.25;
}

.mail-message-html a {
  color: #8b6200;
  text-decoration: underline;
}

.mail-message-html table {
  max-width: 100%;
  border-collapse: collapse;
}

.mail-message-html :is(td, th) {
  padding: 6px 8px;
  border: 1px solid #e1e1de;
  vertical-align: top;
}

.mail-message-html blockquote {
  padding-left: 12px;
  border-left: 3px solid #ded3b5;
  color: #6d7077;
}

.mail-blocked-image {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f2f2ef;
  color: #8a8d94;
  font-size: 8px;
}

.mail-attachments {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e2;
}

.mail-attachments h3 {
  margin: 0 0 10px;
  font-size: 9px;
}

.mail-attachments > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mail-attachments article {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e4e4e1;
  border-radius: 10px;
  background: #fafaf8;
}

.mail-attachments article > a {
  padding: 6px 8px;
  border: 1px solid #dedfdd;
  border-radius: 7px;
  color: #5e626b;
  font-size: 7px;
  font-weight: 800;
  text-decoration: none;
}

.mail-attachments article > i {
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ecece8;
  color: #737780;
  font-size: 5px;
  font-style: normal;
  font-weight: 800;
}

.mail-attachments article span,
.mail-attachments article strong,
.mail-attachments article small {
  min-width: 0;
  display: block;
}

.mail-attachments article strong {
  overflow: hidden;
  font-size: 7px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mail-attachments article small,
.mail-attachments > p {
  color: #999ca2;
  font-size: 6px;
}

.mail-attachments article small {
  margin-top: 3px;
}

.mail-attachments > p {
  margin: 9px 0 0;
  line-height: 1.5;
}

.mail-reader-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: #999ca2;
  text-align: center;
}

.mail-reader-empty > span {
  color: #c0c2c6;
  font-size: 35px;
}

.mail-reader-empty strong {
  color: #61656d;
  font-size: 11px;
}

.mail-reader-empty small {
  max-width: 260px;
  font-size: 7px;
  line-height: 1.5;
}

@media (max-width: 1240px) {
  .mail-workspace {
    grid-template-columns: 185px minmax(300px, 0.9fr) minmax(330px, 1.1fr);
  }

  .mail-reader-content {
    padding-inline: 22px;
  }
}

@media (max-width: 980px) {
  .mail-pilot-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mail-pilot-summary > div:nth-child(3) {
    border-top: 1px solid #ececea;
    border-left: 0;
  }

  .mail-pilot-summary > div:nth-child(4) {
    border-top: 1px solid #ececea;
  }

  .mail-workspace {
    height: auto;
    min-height: 0;
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .mail-reader {
    min-height: 520px;
    grid-column: 1 / -1;
    border-top: 1px solid #e4e4e2;
  }

  .mail-list-panel {
    height: 560px;
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .mail-main {
    padding-right: 20px;
  }

  .mail-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .mail-pilot-status {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .mail-main {
    padding-right: 14px;
  }

  .mail-pilot-summary {
    grid-template-columns: 1fr 1fr;
  }

  .mail-pilot-summary small {
    white-space: normal;
  }

  .mail-workspace {
    display: block;
    border-radius: 14px 14px 0 0;
  }

  .mail-folders {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #e4e4e2;
  }

  .mail-folders nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mail-list-panel {
    height: 520px;
  }

  .mail-list-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mail-search {
    width: 100%;
  }

  .mail-reader {
    min-height: 500px;
  }

  .mail-reader-content {
    padding: 20px 16px 34px;
  }

  .mail-reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mail-original-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mail-original-toolbar > div {
    width: 100%;
    flex-wrap: wrap;
  }

  .mail-original-frame {
    min-height: 520px;
    height: 70vh;
  }

  .mail-compose-panel {
    padding: 18px 14px 28px;
  }

  .mail-compose-form > label:not(.mail-send-confirm) {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .mail-send-confirm,
  .mail-compose-note {
    margin-left: 0;
  }

  .mail-message-sender {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .mail-message-sender time {
    grid-column: 2;
  }

  .mail-attachments > div {
    grid-template-columns: 1fr;
  }
}

/* Production document editor */
.hub-nav a > small {
  margin-left: auto;
  color: #d7b252;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-hub-main {
  padding-right: 26px;
  padding-left: 26px;
}

.document-private-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #dfe9e3;
  border-radius: 10px;
  color: #47745c;
  background: #f4faf6;
  font-size: 9px;
  font-weight: 800;
}

.document-private-badge span {
  color: #6b9a7e;
  font-size: 7px;
  transform: rotate(45deg);
}

.document-error {
  margin-top: 18px;
}

.document-workspace {
  min-height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: 236px minmax(420px, 1fr) 205px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dfdfdb;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(40, 43, 49, 0.04);
}

.document-library,
.document-controls {
  min-width: 0;
  padding: 23px 18px;
  background: #fff;
}

.document-library {
  border-right: 1px solid #e8e8e4;
}

.document-controls {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e8e8e4;
}

.document-panel-heading > span {
  color: #9a9da4;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.document-panel-heading h2 {
  margin: 7px 0 5px;
  font-size: 15px;
  letter-spacing: -0.025em;
}

.document-panel-heading p {
  margin: 0;
  color: #9a9da4;
  font-size: 8px;
  line-height: 1.5;
}

.document-asset-form {
  margin-top: 18px;
}

.document-asset-form select {
  width: 100%;
  height: 36px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid #deded9;
  border-radius: 8px;
  color: #60646c;
  background: #fff;
  font: inherit;
  font-size: 9px;
}

.document-asset-form label {
  min-height: 74px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 2px 8px;
  padding: 12px;
  border: 1px dashed #d2b262;
  border-radius: 10px;
  color: #80651f;
  background: #fffaec;
  cursor: pointer;
}

.document-asset-form label > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 21px;
  text-align: center;
}

.document-asset-form label strong {
  font-size: 8px;
}

.document-asset-form label small {
  color: #a58c52;
  font-size: 6px;
  line-height: 1.35;
}

.document-asset-form input,
.document-upload-form input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.document-assets-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.document-asset-item {
  position: relative;
  min-width: 0;
}

.document-asset-choice {
  width: 100%;
  min-height: 100px;
  padding: 9px 7px 8px;
  overflow: hidden;
  border: 1px solid #e1e1dd;
  border-radius: 10px;
  background: #fbfbf9;
  cursor: pointer;
}

.document-asset-choice:hover {
  border-color: #d2b262;
  background: #fffcf3;
}

.document-asset-choice img {
  width: 100%;
  height: 55px;
  object-fit: contain;
}

.document-asset-choice span,
.document-asset-choice small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-asset-choice span {
  margin-top: 5px;
  color: #62666e;
  font-size: 7px;
  font-weight: 800;
}

.document-asset-choice small {
  margin-top: 2px;
  color: #a2a5ab;
  font-size: 6px;
}

.document-asset-item > form {
  position: absolute;
  top: -5px;
  right: -5px;
}

.document-asset-item > form button {
  width: 20px;
  height: 20px;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid #e4e4e0;
  border-radius: 50%;
  color: #92959c;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.document-assets-empty {
  grid-column: 1 / -1;
  padding: 20px 12px;
  border: 1px solid #e5e5e1;
  border-radius: 10px;
  color: #989ba2;
  background: #fafaf8;
  text-align: center;
}

.document-assets-empty span {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  place-items: center;
  border-bottom: 2px solid #9da9bb;
  color: #768398;
  font-size: 9px;
  font-weight: 850;
  transform: rotate(-7deg);
}

.document-assets-empty p {
  margin: 11px 0 0;
  font-size: 7px;
  line-height: 1.45;
}

.document-security-note {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  margin-top: 20px;
  color: #969aa1;
}

.document-security-note span {
  color: #6b9a7e;
  font-size: 7px;
  transform: rotate(45deg);
}

.document-security-note p {
  margin: 0;
  font-size: 7px;
  line-height: 1.45;
}

.document-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f0f1ee;
}

.document-stage-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 17px;
  border-bottom: 1px solid #dfdfda;
  background: rgba(255, 255, 255, 0.88);
}

.document-stage-toolbar strong,
.document-stage-toolbar span {
  display: block;
}

.document-stage-toolbar strong {
  max-width: 420px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-stage-toolbar span {
  margin-top: 4px;
  color: #999da4;
  font-size: 7px;
}

.document-stage-toolbar a {
  flex: 0 0 auto;
  color: #7b6327;
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.document-upload-form {
  min-height: 680px;
  display: grid;
  padding: 34px;
  place-items: center;
}

.document-upload-form label {
  width: min(540px, 100%);
  min-height: 610px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dfdfdb;
  background: #fff;
  box-shadow: 0 18px 44px rgba(45, 48, 55, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.document-upload-form.is-dragging label,
.document-upload-form label:hover {
  border-color: #d4ad4e;
  background: #fffdf7;
}

.document-upload-icon {
  width: 68px;
  height: 82px;
  display: grid;
  margin-bottom: 22px;
  place-items: center;
  border: 2px solid #dca321;
  border-radius: 8px;
  color: #d99b17;
  font-size: 29px;
}

.document-upload-form label > strong {
  font-size: 13px;
}

.document-upload-form label > p {
  margin: 9px 0 0;
  color: #979aa1;
  font-size: 9px;
}

.document-upload-form label > small {
  margin-top: 20px;
  color: #b0b2b7;
  font-size: 7px;
}

.document-upload-form label > b {
  margin-top: 24px;
  padding: 11px 16px;
  border-radius: 9px;
  color: #272a30;
  background: #f6ad18;
  font-size: 8px;
}

.document-page-area {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  flex: 1;
}

.document-page-thumbnails {
  width: 104px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px 11px;
  overflow-y: auto;
  border-right: 1px solid #dfdfda;
  background: #e8e9e6;
}

.document-page-thumbnails button {
  position: relative;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.document-page-thumbnails button.is-current {
  border-color: #d2a83f;
  background: #fff6dd;
}

.document-page-thumbnails img {
  width: 100%;
  max-height: 110px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.document-page-thumbnails span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 5px;
  color: #6c7078;
  background: rgba(255, 255, 255, 0.92);
  font-size: 6px;
  font-weight: 800;
}

.document-canvas-scroller {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
  overflow: auto;
}

.document-canvas {
  position: relative;
  width: min(720px, 100%);
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 18px 46px rgba(45, 48, 55, 0.11);
}

.document-canvas > img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.document-overlay-layer {
  position: absolute;
  inset: 0;
}

.document-placement {
  position: absolute;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  outline: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  transform-origin: center;
}

.document-placement:active {
  cursor: grabbing;
}

.document-placement.is-selected {
  border-color: #df9f12;
  box-shadow: 0 0 0 2px rgba(246, 173, 24, 0.18);
}

.document-placement-resize {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 2;
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #df9f12;
  box-shadow: 0 1px 4px rgba(45, 48, 55, 0.3);
  cursor: nwse-resize;
  touch-action: none;
}

.document-placement.is-selected .document-placement-resize {
  display: block;
}

.document-placement img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.document-placement.is-text {
  display: block;
  padding: 3px 5px;
  overflow: visible;
  color: #1f2228;
  background: rgba(255, 255, 255, 0.16);
  font-family: Arial, "DejaVu Sans", sans-serif;
  line-height: 1.2;
  text-align: left;
  white-space: pre-wrap;
}

.document-placement.is-text > span {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.document-page-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-top: 1px solid #dfdfda;
  background: rgba(255, 255, 255, 0.88);
}

.document-page-footer button {
  width: 30px;
  height: 30px;
  border: 1px solid #ddddda;
  border-radius: 8px;
  color: #666a72;
  background: #fff;
  cursor: pointer;
}

.document-page-footer button:disabled {
  color: #c4c5c8;
  cursor: default;
}

.document-page-footer span {
  color: #858990;
  font-size: 8px;
}

.document-page-footer strong {
  color: #4d5159;
}

.document-control-hint {
  min-height: 52px;
  margin: 17px 0 12px;
  color: #8f939a;
  font-size: 8px;
  line-height: 1.5;
}

.document-control-group {
  display: grid;
  gap: 8px;
}

.document-control-group .document-add-text {
  color: #6f561a;
  border-color: #e1c16e;
  background: #fff9e8;
}

.document-text-controls {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid #e4d39f;
  border-radius: 9px;
  background: #fffcf3;
}

.document-text-controls[hidden] {
  display: none;
}

.document-text-controls label {
  display: grid;
  gap: 5px;
  color: #737780;
  font-size: 7px;
  font-weight: 800;
}

.document-text-controls textarea,
.document-text-controls input {
  width: 100%;
  border: 1px solid #deded9;
  border-radius: 7px;
  outline: none;
  color: #30333a;
  background: #fff;
  font: inherit;
  font-size: 9px;
}

.document-text-controls textarea {
  min-height: 72px;
  padding: 8px;
  resize: vertical;
}

.document-text-controls label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 5px;
}

.document-text-controls input {
  height: 32px;
  padding: 0 8px;
}

.document-text-controls b {
  color: #8c8f96;
  font-size: 7px;
}

.document-control-group button,
.document-export-actions button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #dfdfdc;
  border-radius: 8px;
  color: #61656d;
  background: #fff;
  font-size: 8px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.document-control-group button:hover:not(:disabled) {
  border-color: #d1ad55;
  background: #fffcf2;
}

.document-control-group button.is-danger {
  color: #a25952;
}

.document-control-group button:disabled,
.document-export-actions button:disabled {
  color: #bbbcc0;
  background: #fafaf8;
  cursor: default;
}

.document-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 25px;
}

.document-export-actions > small,
.document-export-actions > p {
  grid-column: 1 / -1;
}

.document-export-actions > small {
  color: #858990;
  font-size: 8px;
}

.document-export-actions button {
  color: #745b1d;
  background: #fff9e8;
  text-align: center;
}

.document-export-actions > p {
  min-height: 28px;
  margin: 2px 0 0;
  color: #a0a3a9;
  font-size: 7px;
  line-height: 1.4;
}

@media (max-width: 1250px) {
  .document-workspace {
    grid-template-columns: 220px minmax(390px, 1fr);
  }

  .document-controls {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    width: 210px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border: 1px solid #dfdfdb;
    border-radius: 14px;
    box-shadow: 0 16px 50px rgba(40, 43, 49, 0.16);
  }
}

@media (max-width: 820px) {
  .document-hub-main {
    padding-inline: 14px;
  }

  .document-topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
    padding-block: 15px;
  }

  .document-workspace {
    display: block;
    margin-top: 16px;
  }

  .document-library {
    border-right: 0;
    border-bottom: 1px solid #e8e8e4;
  }

  .document-assets-list {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }

  .document-stage {
    min-height: 600px;
  }

  .document-upload-form {
    min-height: 560px;
    padding: 20px;
  }

  .document-upload-form label {
    min-height: 500px;
  }

  .document-controls {
    right: 10px;
    bottom: 10px;
    width: min(220px, calc(100vw - 20px));
  }
}

@media (max-width: 560px) {
  .document-private-badge {
    display: none;
  }

  .document-assets-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-page-area {
    display: block;
  }

  .document-page-thumbnails {
    width: auto;
    display: flex;
    padding: 9px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #dfdfda;
  }

  .document-page-thumbnails button {
    width: 70px;
    flex: 0 0 auto;
  }

  .document-canvas-scroller {
    padding: 16px;
  }
}

/* Private document signing */
.document-editor-preview {
  min-height: calc(100vh - 138px);
  display: grid;
  grid-template-columns: 210px minmax(390px, 1fr) 190px;
  margin: 28px -24px 0;
  overflow: hidden;
  border: 1px solid #e1e1de;
  border-radius: 18px;
  background: #fff;
}

.document-assets-preview,
.document-actions-preview {
  padding: 24px 20px;
  background: #fff;
}

.document-assets-preview {
  border-right: 1px solid #ecece8;
}

.document-assets-preview > div:first-child > span,
.document-actions-preview > span {
  color: #a0a3aa;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.document-assets-preview h2 {
  margin: 7px 0 20px;
  font-size: 15px;
}

.document-asset-upload {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed #d6b25c;
  border-radius: 11px;
  color: #7f641e;
  background: #fff9e9;
  font-size: 18px;
}

.document-asset-upload small {
  font-size: 9px;
  font-weight: 800;
}

.document-assets-grid-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.document-assets-grid-preview button {
  min-height: 90px;
  padding: 9px;
  border: 1px solid #e4e4e0;
  border-radius: 11px;
  background: #fafaf8;
}

.document-assets-grid-preview i {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  place-items: center;
  color: #355a93;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.signature-sample {
  border-bottom: 2px solid #355a93;
  transform: rotate(-8deg);
}

.stamp-sample {
  border: 2px double #355a93;
  border-radius: 50%;
}

.document-assets-grid-preview span {
  color: #858991;
  font-size: 7px;
}

.document-assets-preview > p {
  margin: 24px 0 0;
  color: #a1a4aa;
  font-size: 8px;
  line-height: 1.5;
}

.document-stage-preview {
  display: grid;
  min-height: 650px;
  padding: 34px;
  place-items: center;
  background: #f1f2ef;
}

.document-sheet-preview {
  width: min(520px, 100%);
  min-height: 610px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e5e5e1;
  background: #fff;
  box-shadow: 0 15px 45px rgba(43, 46, 53, 0.07);
}

.document-upload-mark {
  width: 66px;
  height: 78px;
  display: grid;
  margin-bottom: 22px;
  place-items: center;
  border: 2px solid #e3a928;
  border-radius: 8px;
  color: #d99a13;
  font-size: 29px;
}

.document-sheet-preview > strong {
  font-size: 14px;
}

.document-sheet-preview > span {
  margin-top: 9px;
  color: #a0a3aa;
  font-size: 9px;
}

.document-sheet-preview > button {
  margin-top: 22px;
  padding: 11px 17px;
  border: 0;
  border-radius: 9px;
  color: #292c32;
  background: #f6ad18;
  font-size: 9px;
  font-weight: 800;
}

.document-actions-preview {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-left: 1px solid #ecece8;
}

.document-actions-preview > button,
.document-actions-preview > div button {
  min-height: 40px;
  border: 1px solid #e5e5e1;
  border-radius: 9px;
  color: #aaadb2;
  background: #fafaf8;
  font-size: 8px;
  text-align: left;
}

.document-actions-preview > div {
  margin-top: auto;
}

.document-actions-preview > div small {
  display: block;
  margin-bottom: 10px;
  color: #9a9da4;
  font-size: 8px;
}

.document-actions-preview > div button {
  width: calc(50% - 4px);
  color: #80651f;
  text-align: center;
}

.document-actions-preview > div button + button {
  margin-left: 8px;
}

@media (max-width: 1180px) {
  .document-editor-preview {
    grid-template-columns: 190px minmax(360px, 1fr);
  }

  .document-actions-preview {
    display: none;
  }
}

@media (max-width: 760px) {
  .document-editor-preview {
    display: block;
    margin-inline: 0;
  }

  .document-assets-preview {
    border-right: 0;
    border-bottom: 1px solid #ecece8;
  }

  .document-assets-grid-preview {
    grid-template-columns: repeat(2, 90px);
  }

  .document-stage-preview {
    min-height: 500px;
    padding: 20px;
  }

  .document-sheet-preview {
    min-height: 450px;
  }
}

/* Notifications */
.secondary-action {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #dededa;
  border-radius: 9px;
  color: #656971;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.notifications-summary {
  min-height: 92px;
  display: grid;
  grid-template-columns: 145px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(246, 173, 24, 0.24), transparent 32%),
    #31343a;
}

.notifications-summary > div {
  display: grid;
}

.notifications-summary span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.notifications-summary strong {
  margin-top: 4px;
  color: #ffc44b;
  font-size: 23px;
}

.notifications-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.55;
}

.notifications-summary > a,
.notifications-summary > button {
  padding: 0;
  border: 0;
  color: #ffc44b;
  background: transparent;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.notifications-card {
  margin-top: 18px;
  padding: 23px;
  border: 1px solid #e0e0dd;
  border-radius: 14px;
  background: #fff;
}

.notifications-card .section-heading {
  margin-bottom: 14px;
}

.notifications-list {
  display: grid;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 10px;
  border-top: 1px solid #ececea;
}

.notification-item.is-unread {
  margin-inline: -10px;
  padding-inline: 20px;
  border-radius: 10px;
  background: #fff9e9;
}

.notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.notification-item > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #312d25;
  background: #ffd268;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.notification-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.notification-item header strong {
  font-size: 10px;
}

.notification-item time {
  color: #a0a3aa;
  font-size: 7px;
}

.notification-item p {
  margin: 5px 0 3px;
  color: #5f636b;
  font-size: 10px;
  line-height: 1.45;
}

.notification-item div > span {
  color: #93969d;
  font-size: 8px;
}

.notification-item button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #dededa;
  border-radius: 8px;
  color: #6d7179;
  background: #fff;
  font-size: 8px;
  font-weight: 750;
  cursor: pointer;
}

.notifications-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.notifications-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #557a64;
  background: #e5f1e9;
  font-size: 17px;
}

.notifications-empty h2 {
  margin: 14px 0 0;
  font-size: 14px;
}

.notifications-empty p {
  max-width: 380px;
  margin: 6px 0 0;
  color: #92959c;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .notifications-summary {
    grid-template-columns: 100px 1fr;
  }

  .notifications-summary > a,
  .notifications-summary > button {
    grid-column: 1 / -1;
  }

  .notification-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .notification-item > form {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .login-shell {
    padding: 20px;
  }

  .login-card {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 520px;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 640px;
    padding: 54px 44px 34px;
  }

  .mobile-brand {
    display: inline-block;
    margin-bottom: 38px;
    color: var(--graphite-900);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .mobile-brand::after {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--accent);
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 0;
    background: var(--paper);
  }

  .login-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-panel {
    min-height: 100vh;
    padding: 40px 24px 24px;
  }

  .form-heading h2 {
    font-size: 28px;
  }
}

[hidden] {
  display: none !important;
}

.form-error {
  margin: 22px 0 -22px;
  padding: 12px 14px;
  border: 1px solid #efc5c5;
  border-radius: 10px;
  color: #8f2f2f;
  background: #fff4f4;
  font-size: 12px;
  line-height: 1.45;
}

.hub-nav a {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  text-decoration: none;
}

.hub-nav a > .hub-nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 850;
}

.hub-nav-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub-nav a:hover,
.hub-nav a.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.hub-nav a.is-current::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 4px;
  height: 27px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.hub-nav a.is-current > .hub-nav-icon {
  border-color: rgba(246, 173, 24, 0.32);
  color: #ffc44b;
  background: rgba(246, 173, 24, 0.12);
}

@media (min-width: 821px) {
  .hub-shell.is-sidebar-collapsed {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .hub-shell.is-sidebar-collapsed .hub-sidebar {
    padding-inline: 10px;
  }

  .hub-shell.is-sidebar-collapsed .hub-brand {
    padding-inline: 0;
  }

  .hub-shell.is-sidebar-collapsed .hub-brand-row {
    justify-content: center;
  }

  .hub-shell.is-sidebar-collapsed .hub-brand-logo,
  .hub-shell.is-sidebar-collapsed .hub-brand > span,
  .hub-shell.is-sidebar-collapsed .sidebar-group,
  .hub-shell.is-sidebar-collapsed .hub-nav-label,
  .hub-shell.is-sidebar-collapsed .hub-nav a > small,
  .hub-shell.is-sidebar-collapsed .hub-user > div:not(.user-avatar) {
    display: none;
  }

  .hub-shell.is-sidebar-collapsed .hub-nav a {
    justify-content: center;
    padding-inline: 0;
  }

  .hub-shell.is-sidebar-collapsed .hub-nav a.is-current::before {
    left: -10px;
  }

  .hub-shell.is-sidebar-collapsed .hub-nav .nav-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 16px;
    padding-inline: 3px;
  }

  .hub-shell.is-sidebar-collapsed .hub-user {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding-inline: 0;
  }
}

.hub-nav-placeholder {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

.hub-nav-placeholder > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 850;
}

.hub-nav-placeholder small {
  margin-left: auto;
  font-size: 8px;
  text-transform: uppercase;
}

.nav-count {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 7px;
  color: #2e3035;
  background: var(--accent);
  font-size: 8px;
}

.logout-form button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
}

.logout-form button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.section-heading > a {
  padding: 8px 0;
  color: #757983;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.invite-result {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid #e7c46e;
  border-radius: 14px;
  background: #fff8e5;
}

.invite-result strong,
.invite-result p {
  display: block;
  margin: 0;
}

.invite-result p {
  margin-top: 5px;
  color: #747780;
  font-size: 12px;
}

.invite-result button,
.admin-form button {
  margin-top: 14px;
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  color: #25272d;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.75fr);
  gap: 18px;
}

.admin-card {
  padding: 24px;
  border: 1px solid #e1e1de;
  border-radius: 14px;
  background: #fff;
}

.users-list {
  display: grid;
}

.user-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 126px 116px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 15px 0;
  border-top: 1px solid #ececea;
}

.user-profile-avatar {
  width: 46px;
  height: 46px;
  font-size: 12px;
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row strong {
  font-size: 12px;
}

.user-row span,
.user-row small {
  margin-top: 4px;
  color: #8a8d94;
  font-size: 9px;
}

.user-profile-role {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.user-profile-role em {
  color: #62666e;
  font-size: 10px;
  font-style: normal;
}

.user-profile-role small {
  margin: 0;
}

.presence-status {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  color: #858991 !important;
  font-size: 8px !important;
  font-weight: 750;
  line-height: 1.25;
}

.presence-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #b7bac0;
}

.presence-status.is-online {
  color: #2e7850 !important;
}

.presence-status.is-online i {
  background: #38b76f;
  box-shadow: 0 0 0 3px rgba(56, 183, 111, 0.14);
}

.user-edit-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #deded9;
  border-radius: 8px;
  color: #494d55;
  background: #fafaf8;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.user-edit-button span {
  margin: 0;
  color: inherit;
}

.user-edit-button:hover {
  border-color: #f0b331;
  color: #22252b;
  background: #fff8e8;
}

.user-contact-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.user-row .user-contact-item {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  color: #666a72;
  background: #f3f3f0;
  font-size: 8px;
  text-decoration: none;
}

.user-row a.user-contact-item:hover {
  color: #24272d;
  background: #ecece7;
}

.messenger-link {
  display: inline-grid !important;
  min-width: 23px;
  height: 23px;
  place-items: center;
  margin: 0 !important;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 6px !important;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.messenger-link.is-telegram {
  background: #229ed9;
}

.messenger-link.is-whatsapp {
  background: #25a85a;
}

.messenger-link.is-max {
  background: linear-gradient(135deg, #287dff, #7047eb);
}

.admin-form-error {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #e5b6af;
  border-radius: 9px;
  color: #9a3f33;
  background: #fff4f2;
  font-size: 10px;
  font-weight: 700;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form-pair,
.admin-form-messengers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-form-messengers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #62666e;
  font-size: 10px;
  font-weight: 750;
}

.admin-form input,
.admin-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dededa;
  border-radius: 9px;
  outline: none;
  background: #fff;
  font: inherit;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246, 173, 24, 0.14);
}

.admin-form .admin-photo-field input {
  height: auto;
  padding: 8px 10px;
  color: #737780;
  font-size: 9px;
}

.admin-photo-field small {
  color: #979aa1;
  font-size: 8px;
  font-weight: 500;
}

.access-fieldset {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 4px 0 0;
  padding: 18px;
  border: 1px solid #e2e2dd;
  border-radius: 12px;
  background: #fafaf8;
}

.access-fieldset legend {
  padding: 0 8px;
  color: #2a2d33;
  font-size: 12px;
  font-weight: 850;
}

.access-fieldset > p {
  margin: -4px 0 0;
  color: #858991;
  font-size: 9px;
  line-height: 1.55;
}

.access-group {
  display: grid;
  gap: 9px;
}

.access-group h3 {
  margin: 0;
  color: #73767e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-form .access-option {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #e5e5e0;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.admin-form .access-option:not(:has(.access-badge)) {
  grid-template-columns: 18px minmax(0, 1fr);
}

.admin-form .access-option:hover {
  border-color: #efc15b;
}

.admin-form .access-option.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.admin-form .access-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #f6ad18;
  box-shadow: none;
}

.access-badge {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  margin: 0 !important;
  border-radius: 8px;
  color: #30333a !important;
  background: #f5b42a;
  font-size: 7px !important;
  font-weight: 900;
}

.access-option-copy {
  display: grid !important;
  gap: 3px;
  min-width: 0;
  margin: 0 !important;
}

.access-option-copy strong {
  color: #31343b;
  font-size: 9px;
}

.access-option-copy small {
  color: #8b8e95;
  font-size: 7px;
  font-weight: 550;
  line-height: 1.35;
}

.employee-editor {
  min-width: 0;
  padding-bottom: 56px;
}

.employee-editor-topbar {
  align-items: end;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: #696d75;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  color: #22252b;
}

.employee-profile-header {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  margin: 30px 0 18px;
  padding: 22px 24px;
  border: 1px solid #e1e1dd;
  border-radius: 14px;
  background: #fff;
}

.employee-profile-avatar {
  width: 68px;
  height: 68px;
  font-size: 16px;
}

.employee-profile-header h2,
.employee-profile-header p {
  margin: 0;
}

.employee-profile-header h2 {
  margin-top: 3px;
  font-size: 20px;
}

.employee-profile-header p {
  margin-top: 5px;
  color: #8a8d94;
  font-size: 10px;
}

.employee-state {
  padding: 7px 10px;
  border-radius: 999px;
  color: #34734d;
  background: #edf8f0;
  font-size: 8px;
  font-weight: 800;
}

.employee-profile-states {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.employee-profile-states .presence-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f3f1;
}

.employee-profile-states .presence-status.is-online {
  background: #edf8f0;
}

.save-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #b8ddc4;
  border-radius: 10px;
  color: #316b45;
  background: #f1faf4;
  font-size: 9px;
}

.employee-editor-card {
  max-width: 980px;
}

.employee-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-edit-form > .admin-form-pair,
.employee-edit-form > .admin-form-messengers,
.employee-edit-form > .admin-photo-field,
.employee-edit-form > .access-fieldset,
.employee-edit-form > .employee-editor-actions {
  grid-column: 1 / -1;
}

.employee-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  padding-top: 2px;
}

.employee-editor-actions a {
  color: #777b83;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.employee-editor-actions button {
  margin: 0;
}

@media (max-width: 980px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .user-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .user-profile-role {
    grid-column: 2;
  }

  .user-edit-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .admin-form-pair,
  .admin-form-messengers {
    grid-template-columns: 1fr;
  }

  .access-options,
  .employee-edit-form {
    grid-template-columns: 1fr;
  }

  .employee-profile-header {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .employee-profile-avatar {
    width: 54px;
    height: 54px;
  }

  .employee-state {
    justify-self: start;
  }

  .employee-profile-states {
    grid-column: 2;
    justify-items: start;
  }
}

/* Shared Kanban */
.kanban-main {
  min-width: 0;
  padding-right: 28px;
  overflow: hidden;
}

.primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 17px;
  border-radius: 10px;
  color: #25272d;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(246, 173, 24, 0.18);
}

.primary-link:hover {
  background: var(--accent-hover);
}

.kanban-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 150px)) minmax(300px, 1fr);
  align-items: center;
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #e0e0dc;
  border-radius: 14px;
  background: #e0e0dc;
}

.kanban-overview > div,
.kanban-overview > p {
  min-height: 78px;
  margin: 0;
  padding: 17px 20px;
  background: #fff;
}

.kanban-overview > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kanban-overview span {
  color: #8b8e96;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.kanban-overview strong {
  margin-top: 3px;
  font-size: 21px;
}

.kanban-overview .has-alert strong {
  color: #b14b43;
}

.kanban-overview > p {
  display: flex;
  align-items: center;
  color: #777b84;
  font-size: 11px;
  line-height: 1.55;
}

.kanban-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(145px, 0.8fr)) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e0e0dc;
  border-radius: 14px;
  background: #fff;
}

.kanban-filters label,
.task-form label,
.comment-form label {
  display: grid;
  gap: 6px;
}

.kanban-filters label > span,
.task-form label > span,
.comment-form label > span,
.task-read-meta > span {
  color: #777b84;
  font-size: 9px;
  font-weight: 750;
}

.kanban-filters input,
.kanban-filters select,
.task-form input,
.task-form select,
.task-form textarea,
.comment-form textarea {
  width: 100%;
  border: 1px solid #dededa;
  border-radius: 9px;
  outline: none;
  color: var(--graphite-950);
  background: #fff;
}

.kanban-filters input,
.kanban-filters select,
.task-form input,
.task-form select {
  height: 41px;
  padding: 0 11px;
}

.task-form textarea,
.comment-form textarea {
  min-height: 88px;
  padding: 11px;
  line-height: 1.5;
  resize: vertical;
}

.kanban-filters input:focus,
.kanban-filters select:focus,
.task-form input:focus,
.task-form select:focus,
.task-form textarea:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246, 173, 24, 0.13);
}

.kanban-filters > button,
.task-form-actions button,
.comment-form button {
  min-height: 41px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #25272d;
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.kanban-filters > a {
  min-height: 41px;
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: #7b7f87;
  font-size: 10px;
  text-decoration: none;
}

.kanban-quick-filters {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.kanban-quick-filters a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dededa;
  border-radius: 9px;
  color: #747881;
  background: #fff;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.kanban-quick-filters a.is-active {
  border-color: #e6bd58;
  color: #76581b;
  background: #fff5da;
}

.task-composer {
  margin-top: 14px;
  border: 1px solid #dededa;
  border-radius: 14px;
  background: #fff;
}

.task-composer summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
}

.task-composer summary::-webkit-details-marker {
  display: none;
}

.task-composer summary > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: #6e5421;
  background: #fff2cf;
  font-size: 17px;
}

.task-composer summary strong {
  font-size: 11px;
}

.task-composer summary small {
  color: #9a9da4;
  font-size: 9px;
}

.task-composer[open] summary {
  border-bottom: 1px solid #e8e8e5;
}

.task-form {
  display: grid;
  gap: 14px;
}

.task-create-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  padding: 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

.task-form-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.task-form-actions span {
  color: #92959c;
  font-size: 9px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(252px, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.kanban-column {
  min-width: 252px;
  align-self: start;
  padding: 11px;
  border: 1px solid #e0e0dd;
  border-radius: 14px;
  background: #ebebe8;
}

.kanban-column > header {
  position: relative;
  min-height: 60px;
  padding: 3px 4px 11px;
}

.kanban-column > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-column > header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a9da4;
}

.column-planned > header i { background: #c99a2f; }
.column-in_progress > header i { background: #4381b5; }
.column-waiting > header i { background: #a06a9a; }
.column-done > header i { background: #548568; }

.kanban-column > header h2 {
  margin: 0;
  color: #4d5159;
  font-size: 11px;
}

.kanban-column > header > span {
  position: absolute;
  top: 1px;
  right: 3px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  color: #7f8289;
  background: #dcdcd8;
  font-size: 9px;
  font-weight: 750;
}

.kanban-column > header p {
  margin: 7px 0 0 15px;
  color: #96999f;
  font-size: 8px;
}

.kanban-cards {
  display: grid;
  gap: 9px;
}

.kanban-card {
  position: relative;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #e0e0dd;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(45, 48, 55, 0.035);
}

.kanban-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}

.kanban-card.priority-high::before { background: #d69234; }
.kanban-card.priority-urgent::before { background: #bd5148; }

.task-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.department-chip,
.priority-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 800;
}

.department-chip {
  overflow: hidden;
  color: #795b1e;
  background: #fff3d4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.priority-chip {
  flex: 0 0 auto;
  color: #888b92;
  background: #f1f1ef;
}

.priority-urgent .priority-chip,
.priority-chip.priority-urgent {
  color: #a23e37;
  background: #fee9e7;
}

.priority-high .priority-chip,
.priority-chip.priority-high {
  color: #9a641d;
  background: #fff0d9;
}

.kanban-card h3 {
  margin: 11px 0 0;
  font-size: 11px;
  line-height: 1.42;
}

.kanban-card h3 a {
  color: inherit;
  text-decoration: none;
}

.kanban-card h3 a:hover {
  color: #9a6a11;
}

.kanban-card > p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: #858991;
  font-size: 9px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.task-card-meta {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.task-assignee {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #72767e;
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task-assignee i {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #342e23;
  background: #ffd268;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.task-due {
  color: #9a9da4;
  font-size: 8px;
}

.task-due.is-overdue {
  color: #b14b43;
  font-weight: 750;
}

.kanban-card footer {
  min-height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #eeeeeb;
}

.kanban-card footer > a {
  color: #94979e;
  font-size: 8px;
  text-decoration: none;
}

.task-move-actions {
  display: flex;
  gap: 4px;
}

.task-move-actions form {
  margin: 0;
}

.task-move-actions button {
  width: 27px;
  height: 25px;
  border: 1px solid #e1e1dd;
  border-radius: 7px;
  color: #737780;
  background: #f7f7f5;
  cursor: pointer;
}

.task-move-actions button:hover {
  border-color: #ddb655;
  color: #6f5318;
  background: #fff7df;
}

.empty-column {
  min-height: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed #d0d0cc;
  border-radius: 10px;
  color: #a2a4a9;
}

.empty-column span {
  font-size: 17px;
}

.empty-column p {
  margin: 0;
  font-size: 8px;
}

/* Task detail */
.task-detail-topbar {
  align-items: flex-end;
  padding: 24px 0 20px;
}

.task-detail-topbar h1 {
  max-width: 760px;
  margin-top: 10px;
}

.back-link {
  color: #858991;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.task-heading-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.status-chip {
  color: #5d6e7d;
  background: #eaf1f6;
}

.status-chip.status-waiting { color: #7f547b; background: #f2e8f1; }
.status-chip.status-done { color: #47745c; background: #e5f1e9; }

.task-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 16px;
  margin-top: 24px;
}

.task-detail-card {
  padding: 23px;
  border: 1px solid #e0e0dd;
  border-radius: 14px;
  background: #fff;
}

.task-detail-card .section-heading {
  align-items: center;
  margin-bottom: 20px;
}

.read-only-note {
  color: #94979e;
  font-size: 9px;
}

.task-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-read-meta {
  display: grid;
  align-content: center;
  gap: 5px;
  padding-top: 5px;
}

.task-read-meta strong {
  font-size: 11px;
}

.task-read-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.task-read-view > div {
  display: grid;
  gap: 7px;
}

.task-read-view span {
  color: #858991;
  font-size: 9px;
}

.task-read-view strong,
.task-read-view p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.task-read-view p,
.comment-item p {
  white-space: pre-wrap;
}

.comments-list {
  max-height: 410px;
  display: grid;
  gap: 13px;
  overflow-y: auto;
}

.comment-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
}

.comment-item > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #332e25;
  background: #ffd268;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.comment-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.comment-item strong {
  font-size: 9px;
}

.comment-item time,
.activity-list time {
  color: #a1a4aa;
  font-size: 7px;
}

.comment-item p {
  margin: 5px 0 0;
  color: #60646d;
  font-size: 10px;
  line-height: 1.52;
}

.empty-comments {
  padding: 20px 0;
  color: #8c9097;
  text-align: center;
}

.empty-comments span {
  font-size: 10px;
  font-weight: 750;
}

.empty-comments p {
  margin: 5px 0 0;
  font-size: 8px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e7e7e4;
}

.comment-form button {
  justify-self: start;
}

.activity-card {
  margin-top: 16px;
}

.activity-list {
  display: grid;
}

.activity-list article {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid #ededeb;
}

.activity-list article > i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #fff3d6;
}

.activity-list p,
.activity-list span {
  margin: 0;
  color: #656971;
  font-size: 9px;
  line-height: 1.5;
}

.activity-list span {
  display: block;
  margin-top: 3px;
  color: #898c93;
}

.activity-list time {
  display: block;
  margin-top: 3px;
}

@media (max-width: 1180px) {
  .kanban-overview {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }

  .kanban-overview > p {
    grid-column: 1 / -1;
    min-height: 54px;
  }

  .kanban-filters {
    grid-template-columns: repeat(4, minmax(135px, 1fr));
  }

  .kanban-filters > button,
  .kanban-filters > a {
    justify-content: center;
  }

  .task-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hub-nav a,
  .hub-nav-placeholder {
    min-width: max-content;
    min-height: 38px;
  }

  .hub-nav a.is-current::before {
    display: none;
  }

  .kanban-main {
    padding-right: 14px;
  }

  .kanban-topbar,
  .task-detail-topbar {
    align-items: flex-start;
  }

  .kanban-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-create-grid,
  .task-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .kanban-topbar,
  .task-detail-topbar {
    min-height: 118px;
    flex-direction: column;
  }

  .kanban-overview {
    grid-template-columns: repeat(3, 1fr);
  }

  .kanban-overview > div,
  .kanban-overview > p {
    padding: 13px;
  }

  .kanban-overview > p {
    grid-column: 1 / -1;
  }

  .kanban-filters,
  .task-create-grid,
  .task-edit-grid,
  .task-read-view {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: 1;
  }

  .task-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-detail-card {
    padding: 18px;
  }

  .task-heading-chips {
    justify-content: flex-start;
  }
}

/* Management dashboard */
.dashboard-main {
  min-width: 0;
  padding-right: 32px;
}

.dashboard-stage {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #e7c66f;
  border-radius: 9px;
  color: #76591d;
  background: #fff7df;
  font-size: 9px;
  font-weight: 750;
}

.dashboard-intro {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding: 27px 30px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 26%, rgba(246, 173, 24, 0.17), transparent 31%),
    linear-gradient(125deg, #25272d, #33363d);
  box-shadow: 0 18px 42px rgba(32, 34, 39, 0.12);
}

.dashboard-intro .section-kicker {
  color: #e5b84d;
}

.dashboard-intro h2 {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.dashboard-intro p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 1.5;
}

.dashboard-system-progress {
  min-width: 190px;
  display: grid;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.dashboard-system-progress strong {
  color: var(--accent);
  font-size: 31px;
  line-height: 1;
}

.dashboard-system-progress strong small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.dashboard-system-progress > span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
}

.dashboard-system-progress a {
  margin-top: 15px;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-system-progress button {
  justify-self: start;
  margin-top: 15px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.live-sources-section {
  margin-top: 26px;
}

.live-sources-section > .section-heading {
  margin-bottom: 13px;
}

.live-sources-section > .section-heading h2 {
  margin-top: 6px;
  font-size: 18px;
}

.live-refresh-note {
  color: #999ca3;
  font-size: 8px;
}

.live-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.live-source-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #deded9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(40, 42, 47, 0.055);
}

.live-source-card > header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #ecece8;
}

.live-source-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-source-brand > i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #2d3036;
  background: #ffd268;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.live-source-brand strong,
.live-source-brand span {
  display: block;
}

.live-source-brand strong {
  font-size: 12px;
}

.live-source-brand span {
  margin-top: 3px;
  color: #9699a0;
  font-size: 7px;
}

.live-source-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4d735e;
  font-size: 7px;
  font-weight: 750;
  white-space: nowrap;
}

.live-source-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66a17e;
  box-shadow: 0 0 0 3px #e8f3ec;
}

.live-source-status.is-stale {
  color: #9a6a11;
}

.live-source-status.is-stale::before {
  background: #d8a83c;
  box-shadow: 0 0 0 3px #fff3d7;
}

.live-source-primary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px 10px;
  padding: 18px;
}

.live-source-primary > span {
  grid-column: 1 / -1;
  color: #898d95;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-source-primary > strong {
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.live-source-primary > b {
  align-self: center;
  justify-self: end;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 7px;
}

.live-source-primary > b.is-positive {
  color: #47745c;
  background: #e8f3ec;
}

.live-source-primary > b.is-negative {
  color: #a34c45;
  background: #fae9e7;
}

.live-source-primary > small {
  grid-column: 1 / -1;
  color: #a0a3aa;
  font-size: 7px;
}

.live-source-primary.has-companion {
  grid-template-columns: minmax(0, 1fr) minmax(92px, 0.72fr);
  column-gap: 18px;
}

.live-source-primary.has-companion > span,
.live-source-primary.has-companion > strong,
.live-source-primary.has-companion > b {
  grid-column: 1;
}

.live-source-primary.has-companion > span {
  grid-row: 1;
}

.live-source-primary.has-companion > strong {
  grid-row: 2;
}

.live-source-primary.has-companion > b {
  grid-row: 3;
  justify-self: start;
}

.live-source-primary.has-companion > small {
  grid-row: 4;
}

.live-source-primary-companion {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  padding-left: 18px;
  border-left: 1px solid #ecece8;
}

.live-source-primary-companion span,
.live-source-primary-companion strong {
  display: block;
}

.live-source-primary-companion span {
  color: #898d95;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-source-primary-companion strong {
  margin-top: 6px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.live-source-primary-companion small {
  display: block;
  margin-top: 6px;
  color: #9da0a7;
  font-size: 6px;
}

.live-source-forecast {
  padding: 13px 18px 15px;
  border-top: 1px solid #e4ebe6;
  background: #f7fbf8;
}

.live-source-forecast-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.live-source-forecast-heading span {
  color: #4f765f;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.live-source-forecast-heading small {
  color: #8fa096;
  font-size: 6px;
}

.live-source-forecast-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-source-forecast-values > div {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid #dfe9e2;
}

.live-source-forecast-values > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.live-source-forecast-values span,
.live-source-forecast-values strong,
.live-source-forecast-values small {
  display: block;
}

.live-source-forecast-values span {
  color: #7e8b83;
  font-size: 7px;
}

.live-source-forecast-values strong {
  margin-top: 4px;
  color: #343a36;
  font-size: 16px;
}

.live-source-forecast-values small {
  margin-top: 4px;
  overflow: hidden;
  color: #91a097;
  font-size: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-source-finance {
  padding: 13px 18px 15px;
  border-top: 1px solid #ecece8;
  background: #fffdf7;
}

.live-source-finance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.live-source-finance-heading span {
  color: #8b6a25;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.live-source-finance-heading small {
  color: #a29b8b;
  font-size: 6px;
  text-align: right;
}

.live-source-finance-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.live-source-finance-values.is-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 0;
}

.live-source-finance-values.is-four > div:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.live-source-finance-values.is-four > div:nth-child(n + 3) {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ebe5d7;
}

.live-source-finance-values > div {
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid #ebe5d7;
}

.live-source-finance-values > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.live-source-finance-values span,
.live-source-finance-values strong,
.live-source-finance-values small {
  display: block;
}

.live-source-finance-values span {
  overflow: hidden;
  color: #8f9299;
  font-size: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-source-finance-values strong {
  margin-top: 4px;
  overflow: hidden;
  color: #34373d;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-source-finance-values small {
  margin-top: 3px;
  overflow: hidden;
  color: #a4a6ac;
  font-size: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-source-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #ecece8;
  border-bottom: 1px solid #ecece8;
  background: #fafaf8;
}

.live-source-metrics > div {
  min-width: 0;
  min-height: 78px;
  display: grid;
  align-content: center;
  padding: 12px 14px;
  border-left: 1px solid #ecece8;
}

.live-source-metrics > div:first-child {
  border-left: 0;
}

.live-source-metrics.is-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-source-metrics.is-four > div:nth-child(odd) {
  border-left: 0;
}

.live-source-metrics.is-four > div:nth-child(n + 3) {
  border-top: 1px solid #ecece8;
}

.live-source-metrics span,
.live-source-metrics strong,
.live-source-metrics small {
  display: block;
}

.live-source-metrics span {
  color: #8f9299;
  font-size: 7px;
}

.live-source-metrics strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-source-metrics small {
  margin-top: 4px;
  overflow: hidden;
  color: #a4a6ac;
  font-size: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-source-insights {
  min-height: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 11px 18px;
}

.live-source-insights > span {
  min-width: 0;
  display: grid;
  align-content: center;
  color: #8e9198;
  font-size: 6px;
  line-height: 1.35;
}

.live-source-insights > span strong {
  display: block;
  margin-bottom: 3px;
  color: #373940;
  font-size: 10px;
}

.live-source-insights.is-current > span strong {
  color: #47745c;
}

.live-source-card > footer {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-top: 1px solid #ecece8;
}

.live-source-card > footer span {
  color: #9da0a6;
  font-size: 6px;
}

.live-source-card > footer a {
  color: #555961;
  font-size: 7px;
  font-weight: 750;
  text-decoration: none;
}

.live-source-unavailable {
  min-height: 234px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 30px;
  color: #999ca3;
  text-align: center;
}

.live-source-unavailable > span {
  font-size: 21px;
}

.live-source-unavailable strong {
  margin-top: 7px;
  color: #686c74;
  font-size: 10px;
}

.live-source-unavailable p {
  margin: 6px 0 0;
  font-size: 7px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.dashboard-metrics article {
  min-height: 116px;
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid #e0e0dc;
  border-radius: 13px;
  background: #fff;
}

.dashboard-metrics article > span {
  color: #898d95;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-metrics article > strong {
  margin-top: 5px;
  font-size: 26px;
  line-height: 1;
}

.dashboard-metrics article > small {
  margin-top: 8px;
  color: #a0a3aa;
  font-size: 7px;
  line-height: 1.35;
}

.dashboard-metrics article.is-alert {
  border-color: #e7b6b1;
  background: #fff8f7;
}

.dashboard-metrics article.is-alert > strong {
  color: #b14b43;
}

.dashboard-metrics article.is-warning {
  border-color: #e8cd87;
  background: #fffaf0;
}

.dashboard-metrics article.is-warning > strong {
  color: #9a6a11;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-grid-primary {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
}

.dashboard-grid-secondary {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.dashboard-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e0e0dc;
  border-radius: 14px;
  background: #fff;
}

.dashboard-card .section-heading {
  margin-bottom: 16px;
}

.dashboard-card .section-heading h2 {
  margin-top: 5px;
  font-size: 16px;
}

.department-load-list,
.workload-list,
.risk-list,
.dashboard-activity-list {
  display: grid;
}

.department-load-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(90px, 0.75fr) 72px 24px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-top: 1px solid #ececea;
  color: inherit;
  text-decoration: none;
}

.department-load-row:hover,
.workload-row:hover,
.risk-row:hover,
.dashboard-activity-list > a:hover {
  background: #faf9f6;
}

.department-load-name strong,
.department-load-name span {
  display: block;
}

.department-load-name strong {
  font-size: 9px;
}

.department-load-name span {
  margin-top: 4px;
  color: #9699a0;
  font-size: 7px;
}

.department-load-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #ecece8;
}

.department-load-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e2ae34, var(--accent));
}

.department-load-row > b,
.department-load-row > small {
  justify-self: end;
  font-size: 7px;
  font-weight: 750;
  white-space: nowrap;
}

.department-load-row > b {
  color: #956618;
}

.department-load-row > small {
  color: #aaadb2;
}

.department-load-row > em {
  justify-self: end;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.workload-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 45px auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border-top: 1px solid #ececea;
  color: inherit;
  text-decoration: none;
}

.workload-row > i,
.dashboard-activity-list > a > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #342e23;
  background: #ffd268;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.workload-row > div strong,
.workload-row > div span,
.workload-row > p strong,
.workload-row > p span {
  display: block;
}

.workload-row > div strong {
  font-size: 9px;
}

.workload-row > div span {
  margin-top: 3px;
  color: #9699a0;
  font-size: 7px;
}

.workload-row > p {
  margin: 0;
  text-align: center;
}

.workload-row > p strong {
  font-size: 12px;
}

.workload-row > p span {
  margin-top: 2px;
  color: #a0a3aa;
  font-size: 6px;
}

.workload-row > b {
  padding: 4px 5px;
  border-radius: 6px;
  color: #a3423c;
  background: #fae8e6;
  font-size: 6px;
}

.risk-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 62px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ececea;
  color: inherit;
  text-decoration: none;
}

.risk-marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6b459;
}

.risk-marker.is-overdue,
.risk-marker.priority-urgent {
  background: #c65a51;
  box-shadow: 0 0 0 4px #f9e5e3;
}

.risk-row > div strong,
.risk-row > div span {
  display: block;
}

.risk-row > div strong {
  overflow: hidden;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.risk-row > div span {
  margin-top: 4px;
  color: #9699a0;
  font-size: 7px;
}

.risk-row > b {
  padding: 4px 6px;
  border-radius: 6px;
  color: #8d6517;
  background: #fff1ca;
  font-size: 6px;
}

.risk-row > b.priority-urgent {
  color: #a3423c;
  background: #fae8e6;
}

.risk-row time {
  justify-self: end;
  color: #9699a0;
  font-size: 7px;
}

.risk-row time.is-overdue {
  color: #b14b43;
  font-weight: 750;
}

.completion-total {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.completion-total strong {
  font-size: 29px;
  line-height: 1;
}

.completion-total span {
  max-width: 105px;
  color: #93969d;
  font-size: 7px;
  line-height: 1.35;
}

.completion-chart {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  align-items: end;
  gap: 4px;
  margin-top: 19px;
  padding-top: 8px;
  border-bottom: 1px solid #dddeda;
}

.completion-chart > div {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.completion-chart i {
  width: 100%;
  min-height: 5px;
  border-radius: 4px 4px 0 0;
  background: #ecece8;
}

.completion-chart i.has-value {
  background: linear-gradient(180deg, var(--accent), #d59c1e);
}

.completion-chart span {
  position: absolute;
  bottom: -16px;
  left: 0;
  color: #a1a4aa;
  font-size: 6px;
}

.completion-note {
  margin: 26px 0 0;
  color: #9a9da4;
  font-size: 7px;
  line-height: 1.45;
}

.dashboard-activity-card {
  margin-top: 14px;
}

.dashboard-activity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.dashboard-activity-list > a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ececea;
  color: inherit;
  text-decoration: none;
}

.dashboard-activity-list p,
.dashboard-activity-list span {
  margin: 0;
  font-size: 8px;
  line-height: 1.45;
}

.dashboard-activity-list span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #92959c;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-activity-list time {
  color: #a1a4aa;
  font-size: 6px;
  white-space: nowrap;
}

.dashboard-empty {
  margin: 0;
  padding: 24px 0;
  color: #92959c;
  font-size: 9px;
  text-align: center;
}

.dashboard-empty-good span {
  display: block;
  color: #4c775f;
  font-size: 21px;
}

.dashboard-empty-good p {
  margin: 7px 0 0;
}

@media (max-width: 1180px) {
  .live-sources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-source-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .dashboard-grid-primary,
  .dashboard-grid-secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .live-sources-grid {
    grid-template-columns: 1fr;
  }

  .live-source-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .dashboard-main {
    padding-right: 20px;
  }

  .dashboard-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-system-progress {
    width: 100%;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .dashboard-activity-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .dashboard-main {
    padding-right: 14px;
  }

  .dashboard-topbar {
    min-height: 118px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .dashboard-intro,
  .dashboard-card {
    padding: 20px;
  }

  .live-sources-section > .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .live-source-card > header,
  .live-source-card > footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .live-source-metrics {
    grid-template-columns: 1fr;
  }

  .live-source-metrics.is-four {
    grid-template-columns: 1fr;
  }

  .live-source-finance-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .live-source-forecast-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .live-source-forecast-values {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-source-forecast-values > div,
  .live-source-forecast-values > div:first-child {
    padding: 0 0 10px;
    border-bottom: 1px solid #dfe9e2;
    border-left: 0;
  }

  .live-source-forecast-values > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .live-source-finance-heading small {
    text-align: left;
  }

  .live-source-finance-values {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .live-source-finance-values.is-four {
    grid-template-columns: 1fr;
  }

  .live-source-finance-values > div,
  .live-source-finance-values > div:first-child {
    padding: 0 0 9px;
    border-bottom: 1px solid #ebe5d7;
    border-left: 0;
  }

  .live-source-finance-values.is-four > div:nth-child(n + 3) {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .live-source-finance-values > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .live-source-metrics > div {
    min-height: 58px;
    border-top: 1px solid #ecece8;
    border-left: 0;
  }

  .live-source-metrics > div:first-child {
    border-top: 0;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .department-load-row {
    grid-template-columns: minmax(0, 1fr) 30px;
    padding: 8px 0;
  }

  .department-load-bar,
  .department-load-row > b,
  .department-load-row > small {
    display: none;
  }

  .risk-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    padding: 7px 0;
  }

  .risk-row > b {
    display: none;
  }

  .dashboard-activity-list > a {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .dashboard-activity-list time {
    grid-column: 2;
  }
}
