/* Dashboard workspace */
.dashboard-page {
  --ink: #eef3ed;
  --muted: #9ea9a0;
  --surface: #1a1f1c;
  --line: rgba(213, 232, 216, .1);
  background: #101311;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
.dashboard-nav {
  max-width: 1440px;
  margin: auto;
  padding: 20px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.dashboard-nav .brand { font-weight: 700; letter-spacing: -.04em; }
.dashboard-nav nav a { color: #a6b0a7; transition: color .18s ease; }
.dashboard-nav nav a:hover { color: #fff; }
.dashboard-nav-link { color: #cbdacb; }
.workspace, .sign-in-layout { max-width: 1440px; margin: auto; padding: 56px clamp(22px, 5vw, 72px) 96px; }
.workspace-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 34px; }
.workspace-top h1, .welcome-copy h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.06; letter-spacing: -.055em; margin: 10px 0 12px; }
.workspace-top p, .welcome-copy > p:not(.dashboard-eyebrow) { color: var(--muted); line-height: 1.65; }
.dashboard-eyebrow { color: #a6d5b5; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.heading-period { color: #a6d5b5; }
.workspace-actions { display: flex; align-items: center; gap: 9px; }
.workspace-actions img { width: 72px; height: 54px; object-fit: contain; margin-right: 8px; }
.outline-button { border: 1px solid #ffffff20; background: #ffffff08; color: #e4ebe3; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.outline-button:hover { background: #ffffff12; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 22px; align-items: start; }
.workspace-main, .workspace-aside { min-width: 0; display: grid; gap: 18px; }
.remote-panel, .info-card, .getting-started, .settings-card, .sign-in-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 50px #0002;
}
.remote-panel { padding: clamp(22px, 3vw, 34px); background: radial-gradient(circle at 100% 0%, #759b8030, transparent 42%), var(--surface); }
.remote-heading, .section-head, .getting-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.remote-heading h2, .section-head h2 { margin: 6px 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; }
.remote-heading p, .info-card p, .section-head p, .getting-started p { color: var(--muted); line-height: 1.65; }
.relay-status { padding: 8px 12px; border: 1px solid #cbe5cf24; border-radius: 99px; color: #c2ddc7; font-size: 11px; white-space: nowrap; }
.remote-targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 12px; }
.remote-targets label, .sign-in-card label, .settings-card label { display: grid; gap: 8px; color: #b6c0b7; font-size: 12px; }
.remote-targets select, .remote-panel textarea, .sign-in-card input, .settings-card input:not([type=checkbox]) {
  width: 100%; box-sizing: border-box; background: #111714; color: var(--ink); border: 1px solid #ffffff1a; border-radius: 12px; padding: 13px; font: inherit;
}
.remote-panel textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.remote-panel textarea:focus-visible, .remote-targets select:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #a6d5b5; outline-offset: 3px; }
.remote-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.dashboard-button { border: 0; border-radius: 12px; background: #c8e1cc; color: #17251b; font-weight: 650; padding: 13px 19px; cursor: pointer; }
.dashboard-button:disabled { opacity: .48; cursor: not-allowed; }
.remote-footnote, .remote-form-footer small, .subtle-label { color: #8c998e; font-size: 11px; }
.info-card { padding: 22px; }
.info-card h2 { font-size: 22px; letter-spacing: -.035em; margin: 16px 0 8px; }
.card-kicker { display: flex; align-items: center; gap: 10px; color: #aebbb0; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.icon-box { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #aed1b51c; color: #bde5c5; font-size: 17px; }
.card-link { display: flex; justify-content: space-between; color: #c4dfc7; padding-top: 14px; border-top: 1px solid var(--line); text-decoration: none; font-size: 12px; }
.notice { padding: 12px; background: #ffffff07; border-radius: 10px; color: #aebcb0; font-size: 12px; line-height: 1.55; }
.activity-section { padding: 16px 2px; }
.task-list { display: grid; gap: 10px; margin-top: 18px; }
.task-item, .empty-state { border: 1px solid var(--line); border-radius: 15px; background: #1a1f1c; padding: 18px; }
.empty-state { color: var(--muted); }
.getting-started { padding: 24px; margin: 0 0 22px; }
.getting-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.getting-steps label { padding: 14px; border-radius: 12px; background: #ffffff06; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.settings-card { padding: 22px; }
.sign-in-layout { min-height: 75vh; display: grid; grid-template-columns: 1fr minmax(320px, 460px); align-items: center; gap: clamp(30px, 8vw, 120px); }
.sign-in-card { padding: clamp(28px, 4vw, 44px); }
.sign-in-card form { display: grid; gap: 16px; }
.welcome-mascot { display: flex; align-items: center; gap: 16px; color: #bdcfbf; margin-top: 38px; }
.welcome-mascot img { width: 100px; }
.dashboard-footer { border-top: 1px solid var(--line); padding: 28px clamp(22px,5vw,72px); color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .workspace-grid, .sign-in-layout { grid-template-columns: 1fr; }
  .workspace-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .getting-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sign-in-layout { min-height: auto; }
}
@media (max-width: 560px) {
  .dashboard-nav nav { display: none; }
  .workspace-top { align-items: flex-start; flex-direction: column; }
  .workspace-actions img { display: none; }
  .remote-targets, .workspace-aside, .settings-grid, .getting-steps { grid-template-columns: 1fr; }
  .remote-heading, .section-head { flex-direction: column; }
  .workspace, .sign-in-layout { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Keep the account actions close to the current plan and usage. */
#plan-owner-controls { margin-top: 20px; padding: 16px; border: 1px solid #cce4d01a; border-radius: 14px; background: #111914; }
.owner-plan-heading { display: flex; gap: 8px; align-items: center; color: #b7d9bf; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.owner-plan-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ad6a7; }
#owner-plan-summary { margin: 12px 0 15px; color: #dce9dc; font-size: 13px; }
#plan-owner-controls .outline-button { width: 100%; text-align: center; }
#plan-owner-controls .card-link { margin-top: 12px; }
#plan-owner-controls .owner-plan-note { margin: 12px 0 0; color: #8c9b8d; font-size: 11px; }
.workspace-grid { align-items: start; }
.remote-panel { border-color: #c1dfc528; }
.task-list .empty-state { padding: 38px 20px; }

.owner-admin { margin: 0 0 24px; padding: 24px; border: 1px solid #cbe5cf25; border-radius: 18px; background: #1a211c; }
.owner-admin form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: end; }
.owner-admin label { display: grid; gap: 7px; font-size: 12px; color: #c1cdc2; }
.owner-admin input:not([type=checkbox]), .owner-admin select { width: 100%; padding: 10px; border-radius: 9px; border: 1px solid #ffffff25; background: #101712; color: #edf4ee; }
.owner-admin #admin-message, .owner-admin #admin-audit { white-space: pre-wrap; font-size: 12px; color: #bfd5c2; }
@media(max-width:700px) { .owner-admin form { grid-template-columns: 1fr; } }
.activity-section { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.activity-section .section-head { align-items: center; }
.activity-section .section-head h2 { margin: 6px 0 3px; }
.activity-section .section-head p { margin: 0; }
.activity-section .task-list { margin-top: 20px; }
.activity-section .empty-state { min-height: 96px; display: grid; place-items: center; box-sizing: border-box; border: 1px dashed #ffffff20; background: #111713; border-radius: 13px; padding: 20px; text-align: center; color: #a6b5a8; }
@media(max-width:560px) { .activity-section { padding: 20px; } }

/* Form controls */
.dashboard-page select {
  appearance: none;
  color-scheme: dark;
  width: 100%;
  min-height: 46px;
  padding: 11px 38px 11px 14px;
  border: 1px solid #ffffff20;
  border-radius: 11px;
  background-color: #141b17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23a9b9ac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.dashboard-page select:hover:not(:disabled) { border-color: #a6d5b56b; background-color: #1b251e; }
.dashboard-page select:focus-visible { outline: 2px solid #a6d5b5; outline-offset: 2px; }
.dashboard-page select:disabled { opacity: .5; cursor: not-allowed; }
.dashboard-page select option { background: #1a211c; color: #eef3ed; }
.dashboard-page input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #87978a;
  border-radius: 5px;
  background: #131a16;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color .16s ease, border-color .16s ease;
}
.dashboard-page input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 6px;
  border-left: 2px solid #15251a;
  border-bottom: 2px solid #15251a;
  transform: rotate(-45deg) scale(0);
  margin-top: -3px;
}
.dashboard-page input[type="checkbox"]:checked { background: #a9d5b2; border-color: #a9d5b2; }
.dashboard-page input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.dashboard-page input[type="checkbox"]:focus-visible { outline: 2px solid #a6d5b5; outline-offset: 3px; }
.dashboard-page input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.owner-admin label:has(input[type="checkbox"]), .notification-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  cursor: pointer;
}
@media (forced-colors: active) {
  .dashboard-page select, .dashboard-page input[type="checkbox"] { appearance: auto; }
}

.dashboard-loading { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #101612; color: #edf5ed; transition: opacity .24s ease, visibility .24s ease; }
.dashboard-loading.is-finished { opacity: 0; visibility: hidden; pointer-events: none; }
.dashboard-loading-glow { position: absolute; width: min(480px, 85vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #8dbb9833, transparent 68%); }
.dashboard-loading img { position: relative; width: 112px; height: 82px; object-fit: contain; animation: dashboard-loading-bob 1.5s ease-in-out infinite; }
.dashboard-loading strong { position: relative; margin-top: 23px; font-size: 20px; letter-spacing: -.035em; }
.dashboard-loading span { position: relative; margin-top: 9px; color: #a2b3a5; font-size: 13px; }
.dashboard-loading-dots { display: flex; gap: 6px; margin-top: 22px; }
.dashboard-loading-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b6d5bd; animation: dashboard-loading-dot 1s ease-in-out infinite alternate; }
.dashboard-loading-dots i:nth-child(2) { animation-delay: .15s; }
.dashboard-loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dashboard-loading-bob { 50% { transform: translateY(-7px); } }
@keyframes dashboard-loading-dot { from { opacity: .3; transform: translateY(0); } to { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dashboard-loading, .dashboard-loading img, .dashboard-loading-dots i { animation: none; transition: none; } }
