:root {
  --navy: #112e3b;
  --ink: #193643;
  --teal: #087d7f;
  --muted: #6a808b;
  --line: #dfe7e9;
  --canvas: #f5f8f8;
  --gold: #ead29d;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #ccdadd;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  line-height: 1.6;
  margin-top: 8px;
  min-width: 0;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #6bbbb6;
  outline-offset: 1px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #66b9b8;
  outline-offset: 4px;
}
label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--teal);
  color: white;
}
.secondary {
  background: white;
  border: 1px solid #cedde1;
  color: var(--ink);
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px;
  font-size: 12px;
}
.danger {
  color: #aa483d;
}
.light-button {
  background: var(--gold);
  color: var(--navy);
}
.wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.brand {
  font-weight: 850;
  letter-spacing: 0.05em;
  font-size: 23px;
}
.brand span {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-left: 1px solid #4a646e;
  padding-left: 14px;
  margin-left: 13px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin: 0 0 10px;
}
.muted {
  color: var(--muted);
  line-height: 1.8;
}
.helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.text-link {
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-intro {
  background: var(--navy);
  color: white;
  padding: 65px max(45px, 9vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-intro .brand {
  margin-bottom: 90px;
}
.login-intro .eyebrow {
  color: #95d4cf;
}
.login-intro h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 15px 0;
}
.login-intro p:not(.eyebrow) {
  color: #b4cbd3;
  font-size: 15px;
  line-height: 2;
}
.login-pills {
  display: flex;
  gap: 8px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.login-pills span {
  border: 1px solid #4a626a;
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 12px;
}
.login-flow {
  border-top: 1px solid #405a65;
  margin-top: 65px;
  padding-top: 24px;
  font-size: 12px;
  color: #a4c7cd;
  white-space: nowrap;
}
.login-flow i {
  margin: 0 8px;
  font-style: normal;
  color: #668994;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-panel form {
  width: 100%;
  max-width: 340px;
}
.login-panel h2 {
  font-size: 27px;
  letter-spacing: 0.03em;
}
.login-panel label {
  display: block;
  margin: 25px 0;
}
.login-panel input {
  background: #fff;
  padding: 13px;
}
.login-panel .primary {
  padding: 14px;
  margin-top: 30px;
}
.login-panel small {
  margin-top: 24px;
  color: #91a1a8;
}
#login-status {
  color: #af4a39;
  font-size: 12px;
  line-height: 1.8;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--navy);
  color: #afc5ce;
  padding: 29px 19px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  color: white;
  padding: 0 10px;
  font-size: 21px;
}
.sidebar .brand span {
  font-size: 13px;
  padding-left: 10px;
  margin-left: 10px;
}
.store-label {
  padding: 24px 16px 21px;
  margin: 22px 0 16px;
  border-top: 1px solid #37535f;
  border-bottom: 1px solid #37535f;
}
.store-label span {
  font-size: 10px;
  color: #7ebbb8;
  display: block;
  margin-bottom: 7px;
}
.store-label strong {
  color: #f6fafb;
  font-size: 15px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  overflow-y: auto;
}
.sidebar nav a {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar nav a span {
  font-size: 10px;
  min-width: 17px;
  font-weight: 500;
  color: #6e9aab;
}
.sidebar nav a:hover {
  background: #1b3c4b;
}
.sidebar nav a.active {
  background: #254b56;
  color: #ebfcfc;
}
.sidebar nav a.active span {
  color: #93d4ce;
}
.sidebar-footer {
  margin-top: auto;
  padding: 22px 12px 0;
}
.sidebar-footer p {
  font-size: 11px;
  margin-bottom: 4px;
}
.sidebar-footer .quiet {
  padding-left: 0;
  color: #93b9c6;
}
.sidebar-footer small {
  font-size: 9px;
  color: #628591;
  margin-top: 15px;
}
.main-shell {
  margin-left: 240px;
  width: calc(100% - 240px);
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  background: #fbfdfd;
  font-size: 12px;
  color: var(--muted);
}
.topbar > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
#menu-button {
  display: none;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 38px 42px 70px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 29px;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.page-heading .muted {
  font-size: 12px;
  margin: 0;
}
.welcome-banner {
  background: var(--navy);
  border-radius: 16px;
  padding: 34px 40px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.welcome-banner .eyebrow {
  color: #98d1cc;
}
.welcome-banner h2 {
  font-size: 27px;
  letter-spacing: 0.025em;
  margin: 15px 0;
}
.welcome-banner p:not(.eyebrow) {
  color: #b4cbd2;
  font-size: 13px;
  line-height: 1.9;
}
.welcome-banner button {
  font-size: 12px;
  margin-top: 8px;
}
.flow-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 25px 0 30px;
  min-width: 140px;
}
.flow-art span {
  border: 1px solid #506e78;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 12px;
  color: #badbdd;
  min-width: 140px;
  text-align: center;
}
.flow-art i {
  color: #8badaf;
  font-style: normal;
  padding: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  margin: 14px 0 8px;
  letter-spacing: -0.03em;
}
.stats small {
  font-size: 10px;
}
.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px;
  margin-bottom: 24px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 15px;
}
.panel-heading h2 {
  font-size: 17px;
  letter-spacing: 0.02em;
  margin: 0;
}
.panel-heading button {
  font-size: 12px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid #edf1f2;
}
.steps li:last-child {
  border: 0;
  padding-bottom: 0;
}
.steps b {
  font-size: 15px;
  color: var(--teal);
  font-weight: 500;
}
.steps li > div {
  flex: 1;
}
.steps strong {
  font-size: 12px;
}
.steps p {
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0 0;
}
.status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f2;
  padding: 16px 0;
  font-size: 12px;
  gap: 12px;
}
.status-list > div:first-child {
  padding-top: 4px;
}
.status-list > div:last-child {
  border: 0;
}
.status-list strong {
  font-size: 13px;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  border-radius: 30px;
  padding: 5px 9px;
  background: #eef3f4;
  color: #617780;
  white-space: nowrap;
  font-weight: 500;
}
.pill.completed,
.pill.accepted,
.pill.confirmed,
.pill.done,
.pill.approved {
  background: #e1f3ed;
  color: #197265;
}
.pill.queued,
.pill.running,
.pill.pending,
.pill.draft,
.pill.new {
  background: #fbf1dc;
  color: #8d6d23;
}
.pill.failed,
.pill.unknown {
  background: #fbe9e4;
  color: #a24839;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.item-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.item-card h3 {
  font-size: 18px;
  line-height: 1.6;
  margin: 15px 0 9px;
}
.item-card h2 {
  font-size: 20px;
  margin: 16px 0;
}
.item-card p {
  font-size: 12px;
  line-height: 1.9;
  color: #59717b;
  overflow-wrap: anywhere;
}
.item-card > small {
  margin-top: 8px;
}
.item-card > .pill {
  align-self: flex-start;
}
.item-card > strong {
  margin-top: auto;
  padding-top: 9px;
}
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #edf1f2;
}
.card-actions button {
  font-size: 11px;
}
.content-caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.content-cards .content-caption {
  max-height: 280px;
  overflow: auto;
  margin-bottom: 20px;
}
.channel-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--teal);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -4px 0 25px;
}
.toolbar p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty {
  text-align: center;
  border: 1px dashed #cddcde;
  border-radius: 12px;
  padding: 42px 24px;
  background: #fbfdfd;
}
.empty-symbol {
  font-size: 26px;
  color: #85b8b8;
  font-weight: 300;
}
.empty h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 13px 0;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 8px 0 20px;
}
.empty button {
  font-size: 12px;
}
.empty.compact {
  padding: 25px 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
}
.full {
  grid-column: 1/-1;
}
.unstyled {
  padding: 0;
  border: 0;
  margin: 0;
}
.form-grid small {
  font-weight: 400;
  margin-top: 6px;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  padding: 8px 0;
  white-space: normal;
}
.check-field input,
.checks input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: var(--teal);
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.required {
  color: #ae6b51;
}
fieldset:not(.unstyled) {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
}
legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-weight: 500;
  background: #f5f8f8;
  padding: 13px;
  white-space: nowrap;
}
td {
  padding: 16px 13px;
  border-bottom: 1px solid #eaf0f1;
  line-height: 1.8;
}
td strong {
  font-size: 12px;
}
td .card-actions {
  margin: 0;
  border: 0;
  padding: 0;
}
td small {
  font-size: 10px;
  margin-top: 5px;
}
.result-cell {
  max-width: 250px;
  overflow-wrap: anywhere;
}
.notice {
  border: 1px solid #e5ddc6;
  background: #fffaf0;
  color: #877344;
  padding: 17px 21px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.channel-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #e7f1f1;
  color: var(--teal);
  font-size: 24px;
  font-weight: 700;
}
.channel-monogram.line {
  font-size: 14px;
}
.channel-monogram.facebook {
  font-family: Georgia, serif;
  font-size: 32px;
}
.channel-grid .item-card > p {
  min-height: 50px;
}
code {
  display: block;
  background: #f1f5f5;
  border-radius: 6px;
  padding: 10px;
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.audit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 360px;
  overflow: auto;
}
.audit-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.audit-list time {
  color: var(--muted);
  white-space: nowrap;
}
dialog {
  width: min(720px, calc(100vw - 36px));
  max-height: 90vh;
  overflow: auto;
  border: none;
  border-radius: 17px;
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 30px 120px #16303c40;
  background: white;
}
dialog::backdrop {
  background: #102e3b70;
  backdrop-filter: blur(3px);
}
dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}
dialog h2 {
  font-size: 23px;
  margin: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.error {
  color: #b44131;
  font-size: 12px;
  line-height: 1.8;
}
.review-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: #f8fbfa;
}
.review-preview p {
  white-space: pre-wrap;
  line-height: 1.9;
  max-height: 240px;
  overflow: auto;
}
.review-preview a {
  color: var(--teal);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 25px;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 30px #15394b25;
  z-index: 100;
  font-size: 13px;
  max-width: 90vw;
  line-height: 1.7;
}
#toast.error {
  background: #943d31;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .cards.content-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
    padding: 25px 14px;
  }
  .main-shell {
    margin-left: 215px;
    width: calc(100% - 215px);
  }
  main {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .stats {
    gap: 12px;
  }
  .stats article {
    padding: 18px;
  }
  .stats strong {
    font-size: 29px;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .welcome-banner {
    padding: 30px;
  }
  .flow-art {
    margin-right: 0;
  }
  .page-heading h1 {
    font-size: 26px;
  }
}
@media (max-width: 850px) {
  .login-intro {
    padding: 45px 35px;
  }
  .login-intro .brand {
    margin-bottom: 50px;
  }
  .login-panel {
    padding: 30px;
  }
  .login-flow {
    white-space: normal;
    line-height: 2.2;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .welcome-banner h2 {
    font-size: 23px;
  }
  .flow-art {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > button {
    font-size: 12px;
  }
  .sidebar {
    width: 205px;
  }
  .main-shell {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  main {
    padding: 25px 20px;
  }
  .sidebar nav a {
    padding: 11px 10px;
  }
}
@media (max-width: 650px) {
  .login-screen {
    display: block;
  }
  .login-intro {
    padding: 30px;
  }
  .login-intro .brand {
    margin-bottom: 35px;
  }
  .login-intro h1 {
    font-size: 33px;
  }
  .login-intro p:not(.eyebrow) {
    font-size: 13px;
  }
  .login-flow {
    display: none;
  }
  .login-pills {
    margin-top: 15px;
  }
  .login-panel {
    padding: 35px 30px;
  }
  .login-panel h2 {
    font-size: 25px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
    transition: transform 0.2s;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 100px #102e3b55;
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  #menu-button {
    display: block;
  }
  .topbar {
    height: 60px;
    padding: 0 14px;
    gap: 8px;
  }
  .topbar > div {
    gap: 8px;
  }
  .topbar #date-label {
    font-size: 10px;
  }
  .topbar #breadcrumb {
    display: none;
  }
  main {
    padding: 25px 16px 50px;
  }
  .page-heading {
    flex-direction: column;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .welcome-banner {
    padding: 26px;
  }
  .welcome-banner h2 {
    font-size: 24px;
    line-height: 1.5;
  }
  .stats {
    gap: 10px;
    margin: 20px 0;
  }
  .stats article {
    padding: 18px 15px;
  }
  .stats small {
    font-size: 9px;
  }
  .stats strong {
    font-size: 30px;
  }
  .panel {
    padding: 20px;
    margin-bottom: 18px;
  }
  .panel-heading {
    margin-bottom: 20px;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .panel-heading button {
    font-size: 10px;
    padding: 9px 11px;
  }
  .two-column {
    gap: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .full {
    grid-column: auto;
  }
  .form-grid .unstyled.full {
    grid-column: 1/-1;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .item-card {
    padding: 22px;
  }
  .card-actions {
    gap: 5px;
  }
  .steps li {
    gap: 12px;
  }
  .steps .quiet {
    font-size: 10px;
  }
  .steps strong {
    font-size: 12px;
  }
  dialog {
    padding: 24px 20px;
  }
  dialog h2 {
    font-size: 21px;
  }
  .form-actions {
    grid-column: 1/-1;
  }
  .audit-list li {
    font-size: 10px;
  }
  .notice {
    padding: 15px 18px;
  }
  .channel-grid .item-card > p {
    min-height: 0;
  }
  .table-wrap table {
    min-width: 520px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Workpilot 品牌與平台公司管理 */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  line-height: 1.2;
}
.brand span,
.sidebar .brand span {
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.login-intro .brand {
  margin-bottom: 60px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-main {
  max-width: 1208px;
  margin: 0 auto;
  padding: 42px 24px 60px;
}
.admin-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.search-label {
  width: min(100%, 330px);
}
#admin-dialog {
  width: min(850px, calc(100vw - 32px));
}
#admin-dialog table td {
  vertical-align: middle;
}
#admin-dialog .notice {
  margin: 16px 0;
}
#admin-login-status {
  line-height: 1.8;
}
.store-label strong {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .admin-topbar {
    padding: 20px;
    align-items: flex-start;
  }
  .admin-topbar .admin-actions {
    justify-content: flex-end;
    max-width: 175px;
  }
  .admin-main {
    padding: 28px 16px;
  }
  .admin-list-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .search-label {
    width: 100%;
  }
}
@media (max-width: 650px) {
  #company-list table,
  #company-list tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  #company-list thead {
    display: none;
  }
  #company-list tbody {
    display: grid;
    gap: 18px;
  }
  #company-list tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
  }
  #company-list td {
    padding: 6px 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  #company-list td:first-child,
  #company-list td:last-child {
    grid-column: 1 / -1;
  }
  #company-list td:first-child strong {
    font-size: 15px;
  }
  #company-list td:nth-child(2)::before {
    content: '統一編號';
  }
  #company-list td:nth-child(3)::before {
    content: '產業';
  }
  #company-list td:nth-child(4)::before {
    content: '啟用成員';
  }
  #company-list td:nth-child(5)::before {
    content: '狀態';
  }
  #company-list td::before {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 5px;
  }
  #company-list td:last-child button {
    width: 100%;
  }
}

.product-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
}
.product-switch a {
  color: inherit;
  text-underline-offset: 4px;
}
.product-switch a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.sidebar .product-switch {
  color: #c6e2dd;
}
:root {
  --ai-accent: #136b62;
}
.ai-usage-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  margin: 0 0 24px;
  border: 1px solid #c9e1d9;
  border-radius: 18px;
  background: #eff8f3;
}
.ai-usage-card h3 {
  margin: 6px 0 10px;
  color: var(--ai-accent);
}
.ai-usage-card p {
  margin: 5px 0;
}
.ai-usage-card > .pill,
.ai-usage-card > button {
  flex-shrink: 0;
}
.generation-progress {
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.generation-progress summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.generation-focus {
  padding: 20px;
  border: 1px solid #c9e1d9;
  border-radius: 16px;
  background: #fff;
}
.generation-focus h3 {
  margin: 12px 0;
}
.generation-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #e5e9e6;
}
.generation-row > div:first-child {
  min-width: 0;
}
.generation-row small {
  display: block;
  margin-top: 4px;
  color: #66736c;
}
.generation-row p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #58635f;
}
.generation-row > div:last-child {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .ai-usage-card,
  .generation-row {
    flex-direction: column;
    gap: 12px;
  }
  .ai-usage-card {
    padding: 18px;
  }
  .generation-row > div:last-child {
    justify-content: flex-start;
  }
}
