:root {
  --ink: #18211f;
  --muted: #65716d;
  --line: #dfe7e2;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --brand: #0f6f5f;
  --brand-dark: #0b4f45;
  --gold: #b98534;
  --danger: #b43b3b;
  --shadow: 0 18px 60px rgba(24, 33, 31, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15,111,95,0.09), transparent 32%),
    linear-gradient(315deg, rgba(185,133,52,0.13), transparent 38%),
    var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.shell { min-height: 100vh; padding: 28px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  max-width: 1180px; margin: 0 auto 22px;
}
.brand-mark { display: flex; align-items: center; gap: 14px; }
.sun {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c4, #e1a845 55%, #966421);
  box-shadow: inset 0 -6px 14px rgba(69,42,10,.2), 0 10px 24px rgba(185,133,52,.22);
}
.brand-title { font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; }
.brand-subtitle { color: var(--muted); font-size: .82rem; margin-top: 2px; }

.hero {
  max-width: 1180px; margin: 0 auto 18px; padding: 34px 36px;
  background: rgba(255,255,255,.76); border: 1px solid rgba(223,231,226,.9);
  box-shadow: var(--shadow); border-radius: 8px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: end;
}
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: .04em; }
.hero p { color: var(--muted); line-height: 1.8; margin: 16px 0 0; max-width: 620px; }
.hero-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  min-height: 38px; padding: 9px 14px; border-radius: 6px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(24,33,31,.09); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: white; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: white; }
.btn.danger { color: white; background: var(--danger); border-color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 30px; padding: 6px 10px; font-size: .82rem; }

.workspace {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.panel {
  background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; box-shadow: 0 12px 34px rgba(24,33,31,.08);
}
.panel-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.panel-title { font-weight: 900; letter-spacing: .05em; }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search {
  width: min(320px, 72vw); border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 11px; background: #fff;
}

.tabs { display: flex; gap: 8px; max-width: 1180px; margin: 0 auto 14px; }
.tab {
  border: 1px solid var(--line); background: rgba(255,255,255,.66);
  padding: 10px 14px; border-radius: 6px; cursor: pointer; font-weight: 900;
}
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.view { display: none; }
.view.active { display: block; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: #f7f6f0; }
td { font-size: .92rem; }
.row-title { font-weight: 900; }
.row-meta { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.empty { padding: 42px 18px; text-align: center; color: var(--muted); }
.check-cell { width: 42px; }

.cloud-bar {
  position: sticky; top: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; background: #10201d; color: white;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.cloud-bar .left, .cloud-bar .right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cloud-bar .name { font-weight: 900; letter-spacing: .05em; }
.cloud-bar .status { color: #b7d8ce; font-size: .78rem; }
.cloud-bar button, .cloud-bar a {
  border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(255,255,255,.08);
  color: white; padding: 6px 10px; font-size: .78rem; font-weight: 800; cursor: pointer;
}
.cloud-bar button.primary { background: #1f9d82; border-color: #1f9d82; }
.cloud-bar button.gold { background: #b98534; border-color: #b98534; }
.cloud-bar input[type="file"] { display: none; }

@media (max-width: 820px) {
  .shell { padding: 16px; }
  .topbar, .hero { display: block; }
  .hero { padding: 24px; }
  .hero-actions { justify-content: flex-start; margin-top: 18px; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}

