:root {
  --ink: #19221f;
  --muted: #6f7874;
  --paper: #f4f3ed;
  --card: #fbfbf8;
  --line: #dedfd8;
  --accent: #df5b38;
  --accent-dark: #bd4125;
  --green: #214a40;
  --lime: #c9d765;
  --shadow: 0 18px 55px rgba(36, 47, 42, .08);
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--paper)
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper)
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #1f3e36;
  color: #fff;
  padding: 30px 20px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 0 10px 34px
}

.brand small {
  display: block;
  color: #aabdb6;
  font-size: 8px;
  letter-spacing: .23em;
  margin-top: 1px
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px;
  background: var(--lime);
  border-radius: 4px;
  transform: rotate(-3deg)
}

.brand-mark span {
  display: block;
  width: 5px;
  background: #203f37;
  border-radius: 5px
}

.brand-mark span:nth-child(1) {
  height: 13px
}

.brand-mark span:nth-child(2) {
  height: 21px
}

.brand-mark span:nth-child(3) {
  height: 17px
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.nav-item {
  border: 0;
  background: transparent;
  color: #aec0ba;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border-radius: 8px;
  padding: 12px 13px;
  cursor: pointer;
  font-size: 14px;
  transition: .2s
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, .09);
  color: #fff
}

.nav-item.active {
  box-shadow: inset 3px 0 var(--lime)
}

.nav-item .icon {
  width: 20px;
  text-align: center;
  font-size: 18px
}

.nav-count {
  margin-left: auto;
  background: #38584f;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 10px
}

.sidebar-spacer {
  flex: 1
}

.plan-card {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .08);
  border-radius: 9px;
  padding: 14px;
  margin-bottom: 18px
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #b7c8c2
}

.plan-head b {
  font-size: 8px;
  color: var(--lime);
  border: 1px solid #687c58;
  padding: 2px 5px;
  border-radius: 3px
}

.usage-bar {
  height: 4px;
  background: #36534b;
  margin: 12px 0 8px;
  border-radius: 2px
}

.usage-bar i {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--lime)
}

.plan-card p {
  margin: 0;
  font-size: 10px;
  color: #91a69e
}

.plan-card strong {
  color: #fff
}

.profile {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 5px 0;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d6a16d;
  color: #fff;
  font-size: 12px
}

.profile>span:nth-child(2) {
  font-size: 12px;
  font-weight: 600
}

.profile small {
  display: block;
  font-size: 8px;
  color: #8fa49d;
  font-weight: 400
}

.more {
  margin-left: auto;
  color: #8fa49d;
  font-size: 10px
}

main {
  margin-left: 248px;
  min-height: 100vh
}

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: rgba(244, 243, 237, .86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 15
}

.breadcrumb {
  font-size: 12px;
  color: #8a918e
}

.breadcrumb i {
  font-style: normal;
  margin: 0 9px;
  color: #c5c8c4
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px
}

.status-dot {
  font-size: 10px;
  color: #75807c;
  display: flex;
  align-items: center;
  gap: 7px
}

.status-dot i {
  width: 7px;
  height: 7px;
  background: #4aaa69;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 170, 105, .12)
}

.icon-button {
  border: 0;
  background: none;
  position: relative;
  font-size: 20px;
  color: #515d58
}

.icon-button span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  right: 2px;
  top: 2px
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 20px
}

.view {
  display: none;
  padding: 46px 48px 58px;
  max-width: 1400px;
  margin: 0 auto
}

.view.active {
  display: block
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 225px
}

.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .19em;
  color: #74807b;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--accent)
}

.hero h1,
.section-head h1,
.chat-header h1 {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 39px;
  line-height: 1.3;
  letter-spacing: -.035em;
  margin: 0;
  font-weight: 800
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative
}

.hero h1 em:after {
  content: "";
  position: absolute;
  left: 0;
  right: 2px;
  bottom: -3px;
  height: 5px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6Q50 1 99 5T199 3' fill='none' stroke='%23df5b38' stroke-width='2'/%3E%3C/svg%3E") center/100% 100%
}

.hero-copy {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0 0
}

.hero-art {
  width: 280px;
  height: 190px;
  position: relative;
  margin-right: 40px
}

.orbit {
  position: absolute;
  border: 1px solid #d5d8ce;
  border-radius: 50%;
  transform: rotate(-18deg)
}

.orbit-a {
  inset: 15px 15px
}

.orbit-b {
  inset: 43px -8px 35px 20px;
  transform: rotate(24deg)
}

.book {
  position: absolute;
  left: 91px;
  top: 62px;
  width: 105px;
  height: 72px;
  transform: rotate(-8deg);
  background: var(--green);
  border-radius: 4px 8px 8px 4px;
  box-shadow: 12px 12px 0 #e4ddce
}

.book:before {
  content: "";
  position: absolute;
  inset: 9px;
  background: #f5f1df;
  border-radius: 2px
}

.book:after {
  content: "";
  position: absolute;
  left: 51px;
  top: 9px;
  bottom: 9px;
  border-left: 1px solid #b8b7a8
}

.book span,
.book i {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: #ccd0bd;
  width: 31px;
  top: 28px
}

.book span {
  left: 14px
}

.book i {
  right: 13px
}

.spark {
  position: absolute;
  color: var(--accent)
}

.s1 {
  left: 39px;
  top: 46px;
  font-size: 24px
}

.s2 {
  right: 25px;
  top: 22px;
  font-size: 16px;
  color: var(--lime)
}

.s3 {
  right: 17px;
  bottom: 20px;
  font-size: 28px
}

.steps {
  height: 78px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  margin-bottom: 28px
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  opacity: .42
}

.step.active,
.step.done {
  opacity: 1
}

.step>span {
  font-size: 10px;
  font-weight: 700;
  width: 29px;
  height: 29px;
  border: 1px solid #aeb5b1;
  border-radius: 50%;
  display: grid;
  place-items: center
}

.step.active>span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent)
}

.step.done>span {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

.step b {
  display: block;
  font-size: 12px
}

.step small {
  font-size: 9px;
  color: #8d9692
}

.steps>i {
  height: 1px;
  background: #d6d9d4;
  flex: 1;
  margin: 0 21px;
  position: relative
}

.steps>i:after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 4px;
  height: 4px;
  border-top: 1px solid #aaa;
  border-right: 1px solid #aaa;
  transform: rotate(45deg)
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 22px
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 5px;
  padding: 25px
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px
}

.panel-heading>div {
  display: flex;
  align-items: center;
  gap: 12px
}

.panel-index {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700
}

.panel h2 {
  font-size: 16px;
  margin: 0
}

.secure,
.lock {
  font-size: 9px;
  color: #71827a;
  background: #edf1eb;
  padding: 5px 8px;
  border-radius: 3px
}

.dropzone {
  height: 205px;
  border: 1px dashed #b8bdb7;
  background: #f6f6f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
  position: relative
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--accent);
  background: #fff8f4;
  transform: translateY(-2px)
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.upload-icon {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: #e8ebe3;
  display: grid;
  place-items: center;
  margin-bottom: 12px
}

.upload-icon i {
  font-style: normal;
  font-size: 22px;
  color: var(--green)
}

.dropzone strong {
  font-size: 13px
}

.dropzone p {
  font-size: 10px;
  color: #8b9390;
  margin: 5px 0 11px
}

.dropzone small {
  font-size: 8px;
  color: #9ca39f
}

.demo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 17px;
  font-size: 10px;
  color: #8a928e
}

.demo-row button {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 10px;
  cursor: pointer;
  font-weight: 600
}

.demo-row b {
  margin-left: 5px
}

.settings-panel {
  transition: .3s
}

.settings-panel.locked .form-grid,
.settings-panel.locked .primary-button,
.settings-panel.locked .estimate {
  opacity: .42;
  pointer-events: none
}

.file-card {
  background: #eef2ea;
  border: 1px solid #dce1d9;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 17px
}

.file-card.hidden {
  display: none
}

.pdf-icon {
  background: var(--accent);
  color: #fff;
  padding: 9px 5px;
  font-size: 7px;
  font-weight: 800;
  border-radius: 3px
}

.file-card div {
  min-width: 0;
  flex: 1
}

.file-card b {
  display: block;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.file-card small {
  display: block;
  color: #7e8984;
  font-size: 8px
}

.file-card button {
  border: 0;
  background: none;
  color: #83908a;
  font-size: 20px;
  cursor: pointer
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 13px
}

.form-grid label>span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #59635e;
  margin-bottom: 7px
}

.form-grid select {
  width: 100%;
  appearance: none;
  border: 1px solid #dadcd6;
  background: #f8f8f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 5 3 3 3-3' fill='none' stroke='%23666'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 10px 12px;
  border-radius: 3px;
  color: #343d39;
  font-size: 10px
}

.primary-button,
.secondary-button {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  transition: .2s
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 18px rgba(223, 91, 56, .2)
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px)
}

.primary-button:disabled,
.disabled {
  opacity: .42;
  pointer-events: none
}

.settings-panel>.primary-button {
  width: 100%;
  height: 42px;
  margin-top: 20px;
  position: relative
}

.primary-button i {
  font-style: normal;
  position: absolute;
  right: 15px
}

.estimate {
  text-align: center;
  color: #999f9c;
  font-size: 8px;
  margin: 8px 0 0
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 27px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0
}

.value-strip>div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border-right: 1px solid var(--line)
}

.value-strip>div:last-child {
  border: 0
}

.value-strip>div>span {
  font-size: 9px;
  color: var(--accent);
  font-weight: 700
}

.value-strip p {
  margin: 0
}

.value-strip b {
  display: block;
  font-size: 10px
}

.value-strip small {
  font-size: 8px;
  color: #8b9490
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px
}

.section-head h1,
.chat-header h1 {
  font-size: 31px
}

.section-head>div>p:last-child,
.chat-header>div>p:last-child {
  font-size: 12px;
  color: var(--muted)
}

.download-actions {
  display: flex;
  gap: 9px
}

.download-actions a {
  height: 39px;
  padding: 0 16px
}

.secondary-button {
  border: 1px solid #ccd0ca;
  color: var(--green);
  background: #fafaf7
}

.deck-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 25px
}

.slide-list {
  height: calc(100vh - 210px);
  overflow: auto;
  padding-right: 8px
}

.slide-thumb {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 8px;
  cursor: pointer;
  transition: .2s;
  position: relative
}

.slide-thumb.active {
  border: 2px solid var(--accent);
  padding: 7px
}

.slide-thumb small {
  position: absolute;
  left: -19px;
  top: 4px;
  font-size: 8px;
  color: #8d9491
}

.mini-slide {
  aspect-ratio: 16/9;
  background: #f4f3ed;
  padding: 10px;
  overflow: hidden
}

.mini-slide b {
  display: block;
  font-size: 8px;
  line-height: 1.3;
  margin-bottom: 6px
}

.mini-slide i {
  display: block;
  width: 65%;
  height: 3px;
  background: #c5cbc4;
  margin: 4px 0
}

.empty-mini {
  text-align: center;
  color: #999;
  font-size: 10px;
  padding: 40px 0
}

.slide-stage-wrap {
  min-width: 0
}

.slide-stage {
  aspect-ratio: 16/9;
  background: #f8f7f1;
  box-shadow: 0 16px 55px rgba(28, 40, 34, .14);
  border: 1px solid #e1e1da;
  position: relative;
  overflow: hidden;
  padding: 8% 9%;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.slide-stage:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--accent)
}

.slide-stage:after {
  content: attr(data-page);
  position: absolute;
  right: 5%;
  top: 7%;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700
}

.slide-stage h2 {
  font-family: "Noto Sans TC";
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.25;
  margin: 0 0 6%;
  max-width: 90%
}

.slide-stage ul {
  margin: 0;
  padding: 0;
  list-style: none
}

.slide-stage li {
  font-size: clamp(11px, 1.55vw, 20px);
  margin: 2.5% 0;
  color: #42504a;
  padding-left: 24px;
  position: relative
}

.slide-stage li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 7px;
  height: 7px;
  background: var(--lime);
  transform: rotate(45deg)
}

.stage-empty {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #85908a
}

.stage-empty span {
  font-size: 36px
}

.stage-empty b {
  font-size: 15px
}

.stage-empty small {
  font-size: 10px
}

.speaker-notes {
  background: #fff;
  border: 1px solid var(--line);
  margin-top: 16px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px
}

.notes-label {
  border-right: 1px solid var(--line)
}

.notes-label span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  margin-right: 7px
}

.notes-label b {
  font-size: 11px
}

.notes-label small {
  display: block;
  margin: 7px 0 0 34px;
  color: #969d99;
  font-size: 8px
}

.speaker-notes p {
  font-family: "Noto Sans TC";
  font-size: 11px;
  line-height: 1.8;
  color: #59645f;
  margin: 0
}

.chat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 27px
}

.document-chip {
  background: #fbfbf8;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-width: 240px
}

.document-chip>span {
  background: var(--accent);
  color: #fff;
  font-size: 7px;
  padding: 8px 5px;
  border-radius: 2px
}

.document-chip b {
  display: block;
  font-size: 10px
}

.document-chip small {
  font-size: 8px;
  color: #8c9490
}

.chat-shell {
  background: #fff;
  border: 1px solid var(--line);
  height: calc(100vh - 280px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow)
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 35px 8%;
  display: flex;
  flex-direction: column;
  gap: 23px
}

.message {
  display: flex;
  gap: 12px;
  max-width: 780px
}

.message.user {
  margin-left: auto;
  flex-direction: row-reverse
}

.message.user>div {
  background: var(--green);
  color: #fff;
  padding: 13px 16px;
  border-radius: 12px 2px 12px 12px;
  font-size: 12px
}

.bot-avatar {
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  font-size: 12px;
  color: var(--green)
}

.message.assistant>div {
  background: #f5f5f0;
  padding: 15px 17px;
  border-radius: 2px 12px 12px 12px;
  min-width: 0
}

.message.assistant b {
  font-size: 12px
}

.message.assistant p {
  font-family: "Noto Sans TC";
  font-size: 11px;
  line-height: 1.8;
  color: #59635f;
  margin: 7px 0;
  white-space: pre-line
}

.suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px
}

.suggestions button {
  border: 1px solid #d7dad4;
  background: #fff;
  padding: 7px 10px;
  border-radius: 15px;
  color: #56615c;
  font-size: 9px;
  cursor: pointer
}

.source-list {
  border-top: 1px solid #dbded7;
  margin-top: 12px;
  padding-top: 10px
}

.source-list>span {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8a938e
}

.source {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px
}

.source b {
  background: #e4e9df;
  color: #375047;
  padding: 3px 6px;
  border-radius: 2px;
  white-space: nowrap;
  font-size: 8px !important
}

.source p {
  margin: 0 !important;
  font-size: 9px !important;
  line-height: 1.5 !important
}

.chat-input {
  border-top: 1px solid var(--line);
  padding: 15px 6% 12px;
  position: relative
}

.chat-input textarea {
  width: 100%;
  resize: none;
  border: 1px solid #d8dbd5;
  background: #f9f9f6;
  border-radius: 4px;
  padding: 13px 50px 13px 14px;
  outline: none;
  font-size: 11px;
  max-height: 110px
}

.chat-input textarea:focus {
  border-color: #7d948a
}

.chat-input button {
  position: absolute;
  right: calc(6% + 7px);
  top: 22px;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  cursor: pointer
}

.chat-input small {
  display: block;
  text-align: center;
  font-size: 8px;
  color: #a0a6a3;
  margin-top: 6px
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #203f37;
  color: #fff;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
  z-index: 50;
  transform: translateY(90px);
  opacity: 0;
  transition: .3s
}

.toast.show {
  transform: none;
  opacity: 1
}

.toast span {
  color: var(--lime)
}

.toast p {
  margin: 0;
  font-size: 11px
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(244, 243, 237, .94);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column
}

.loading-overlay.hidden {
  display: none
}

.loader-mark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  width: 62px;
  height: 62px;
  padding: 14px;
  background: var(--lime);
  margin-bottom: 20px;
  animation: float 1.5s ease-in-out infinite
}

.loader-mark i {
  display: block;
  width: 8px;
  background: var(--green);
  animation: bars 1s ease-in-out infinite
}

.loader-mark i:nth-child(1) {
  height: 18px
}

.loader-mark i:nth-child(2) {
  height: 32px;
  animation-delay: .15s
}

.loader-mark i:nth-child(3) {
  height: 25px;
  animation-delay: .3s
}

.loading-overlay b {
  font-family: "Noto Sans TC";
  font-size: 18px
}

.loading-overlay p {
  font-size: 11px;
  color: var(--muted)
}

.loading-track {
  width: 240px;
  height: 3px;
  background: #d9ddd5;
  margin-top: 12px;
  overflow: hidden
}

.loading-track span {
  display: block;
  height: 100%;
  width: 45%;
  background: var(--accent);
  animation: load 1.4s ease-in-out infinite
}

@keyframes bars {
  50% {
    height: 10px
  }
}

@keyframes float {
  50% {
    transform: translateY(-5px) rotate(2deg)
  }
}

@keyframes load {
  0% {
    transform: translateX(-110%)
  }

  100% {
    transform: translateX(240%)
  }
}

@media(max-width:950px) {
  .sidebar {
    transform: translateX(-100%);
    transition: .3s
  }

  .sidebar.open {
    transform: none
  }

  .menu-toggle {
    display: block
  }

  .topbar {
    padding: 0 22px;
    justify-content: flex-start;
    gap: 20px
  }

  .top-actions {
    margin-left: auto
  }

  main {
    margin-left: 0
  }

  .view {
    padding: 35px 24px
  }

  .hero-art {
    display: none
  }

  .workspace-grid {
    grid-template-columns: 1fr
  }

  .value-strip {
    grid-template-columns: 1fr;
    gap: 13px
  }

  .value-strip>div {
    border: 0
  }

  .deck-layout {
    grid-template-columns: 130px 1fr
  }

  .speaker-notes {
    grid-template-columns: 1fr
  }

  .notes-label {
    border: 0
  }

  .chat-header {
    align-items: flex-start;
    gap: 20px
  }
}

@media(max-width:650px) {
  .hero {
    min-height: 250px
  }

  .hero h1 {
    font-size: 31px
  }

  .steps .step {
    min-width: 0
  }

  .steps .step div {
    display: none
  }

  .steps>i {
    margin: 0 10px
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .deck-layout {
    display: block
  }

  .slide-list {
    display: flex;
    height: auto;
    overflow-x: auto;
    margin-bottom: 15px
  }

  .slide-thumb {
    min-width: 120px;
    margin-right: 10px
  }

  .section-head,
  .chat-header {
    display: block
  }

  .download-actions {
    margin-top: 16px
  }

  .document-chip {
    margin-top: 18px
  }

  .chat-shell {
    height: calc(100vh - 330px)
  }

  .messages {
    padding: 25px 15px
  }

  .topbar .status-dot {
    display: none
  }
}



/* --- Provider Card Styles --- */
.provider-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 28px;
  margin-bottom: 6px;
}

.provider-head {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.provider-head span {
  font-size: 14px;
  font-weight: 500;
  color: #aec0ba;
  display: flex;
  align-items: center;
  gap: 6px;
}

.provider-select-wrapper {
  position: relative;
}

.provider-select {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='m2 4 3 3 3-3' fill='none' stroke='%23aec0ba'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  font-size: 12px !important;
  line-height: 1.3 !important;
  padding: 5px 8px !important;
  height: 28px !important;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  -webkit-text-size-adjust: none;
}

.provider-select:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.14);
}

.provider-select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(201, 215, 101, 0.2);
}

.provider-select option {
  background: #1f3e36;
  color: #fff;
  padding: 4px 6px !important;
  font-size: 12px !important;
}

/* --- Auth Header & Modal Styles --- */
.auth-header-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-btn {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.auth-btn:hover {
  background: #254b42;
}

.auth-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafaf7;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.auth-user-chip strong {
  color: var(--green);
}

.auth-user-chip small {
  color: #79837e;
  font-size: 9px;
  background: #eef1ec;
  padding: 2px 6px;
  border-radius: 10px;
}

.auth-logout-btn {
  background: transparent;
  border: 1px solid #d0d6d2;
  color: #63706a;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
  transition: .2s;
}

.auth-logout-btn:hover {
  background: #f0f3ee;
  color: #d9534f;
  border-color: #d9534f;
}

/* Auth Modal Window */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 26, 0.6);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-overlay.hidden {
  display: none;
}

.auth-modal-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  padding: 28px 30px;
  position: relative;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: 0;
  font-size: 22px;
  color: #8c9490;
  cursor: pointer;
  line-height: 1;
}

.auth-modal-close:hover {
  color: #203f37;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #78827d;
  cursor: pointer;
  transition: .2s;
}

.auth-tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--accent);
}

.auth-form h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #1a2a24;
}

.auth-sub {
  margin: 0 0 18px;
  font-size: 11px;
  color: #737c77;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #404d47;
  margin-bottom: 5px;
}

.auth-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d4d8d2;
  border-radius: 4px;
  background: #f9f9f6;
  font-size: 12px;
  outline: none;
  transition: .2s;
}

.auth-field input:focus {
  border-color: var(--green);
  background: #fff;
}

.auth-error-msg {
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 14px;
}

.auth-success-msg {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 14px;
}

.auth-submit-btn {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.auth-hint {
  font-size: 10px;
  color: #88908b;
  margin-top: 14px;
  text-align: center;
}

.auth-hint code {
  background: #f0f2ee;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--green);
}

/* === Admin Control Dashboard & Profile Settings Styles === */

.admin-only.hidden {
  display: none !important;
}

.nav-item.admin-only {
  color: #d97706;
  font-weight: 600;
}

.nav-item.admin-only:hover {
  background: #fef3c7;
  color: #b45309;
}

.badge-pending,
.badge-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
}

.admin-modal-card {
  max-width: 720px;
  width: 92%;
}

.admin-modal-header h2 {
  font-size: 16px;
  color: #111827;
  margin-bottom: 4px;
}

.admin-modal-header p {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 12px;
}

.admin-table-wrapper {
  max-height: 380px;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.admin-table th {
  background: #f9fafb;
  color: #374151;
  padding: 8px 12px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.btn-sm {
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s ease;

  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 4px;
}

.btn-sm:hover {
  opacity: 0.85;
}

.btn-approve {
  background: #10b981;
  color: white;
}

.btn-reject {
  background: #ef4444;
  color: white;
}

.btn-action {
  background: #3b82f6;
  color: white;
}

.btn-warning {
  background: #f59e0b;
  color: white;
}

.role-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.role-chip.admin {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.role-chip.user {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.status-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.status-chip.approved {
  background: #d1fae5;
  color: #065f46;
}

.status-chip.pending {
  background: #fee2e2;
  color: #991b1b;
}

.status-chip.rejected {
  background: #f3f4f6;
  color: #4b5563;
}

.modal-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 14px 0;
}

.text-center {
  text-align: center;
}

.muted {
  color: #9ca3af;
}

/* === Admin View Standalone Tab Styles === */
#adminView {
  padding: 32px 40px;
  overflow-y: auto;
  height: 100%;
}

.view:not(.active) {
  display: none !important;
}

.admin-panel-shell {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* === Admin View & Metric Cards Styles === */

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-metric-card {
  background: white;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-metric-card .metric-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-metric-card div b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.admin-metric-card div small {
  font-size: 11px;
  color: #64748b;
}

.admin-metric-card.warning .metric-icon {
  background: #fef3c7;
  color: #d97706;
}

.admin-metric-card.primary .metric-icon {
  background: #dbeafe;
  color: #2563eb;
}

.admin-panel-shell {
  background: white;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* === Profile View Styles === */
.user-only.hidden {
  display: none !important;
}

.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.profile-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-row span {
  color: #6b7280;
  font-size: 13px;
}

.info-row strong {
  font-size: 14px;
  color: #111827;
}

/* === Hide Hidden and Empty Error/Success Message Boxes === */
.hidden,
.auth-error-msg:empty,
.auth-success-msg:empty,
.auth-error-msg.hidden,
.auth-success-msg.hidden {
  display: none !important;
}