:root {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans Thai", "Segoe UI", sans-serif;
  color: #182925;
  background: #f6f5f1;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #4bc5a4; outline-offset: 3px; }

.brand-symbol { position: relative; display: inline-block; width: 28px; height: 28px; flex: 0 0 28px; }
.brand-symbol span { position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 5px; transform: rotate(-14deg); }
.brand-symbol span:first-child { left: 2px; top: 2px; }
.brand-symbol span:last-child { right: 2px; bottom: 2px; background: #d6f36b; border-color: #d6f36b; mix-blend-mode: screen; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 20px; letter-spacing: -.045em; white-space: nowrap; }
.wordmark-light { color: #f7f8f4; }
.section-eyebrow { margin: 0 0 10px; color: #52786e; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.loading-view { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 14px; color: #52635b; font-weight: 600; }
.loading-view .brand-symbol { color: #173d34; }
.file-notice-layout { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #edf1e9; }
.file-notice { width: min(100%, 520px); padding: clamp(25px, 5vw, 43px); border: 1px solid #dbe4d8; border-radius: 18px; background: #fff; box-shadow: 0 22px 65px rgba(25, 55, 39, .07); }
.file-notice > .brand-symbol { color: #173d34; margin-bottom: 30px; }
.file-notice h1 { margin: 0; font-size: clamp(26px, 5vw, 37px); line-height: 1.25; letter-spacing: -.04em; }
.file-notice > p:not(.section-eyebrow) { color: #64776a; font-size: 14px; line-height: 1.7; }
.file-notice .file-notice-detail { margin-top: 22px; padding-top: 17px; border-top: 1px solid #e4ebe2; }

.login-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, .96fr) minmax(400px, 1fr); }
.login-story { min-height: 100dvh; padding: 40px clamp(34px, 5vw, 84px) 34px; display: flex; flex-direction: column; justify-content: space-between; color: #f2f7ed; background: #142f2a; position: relative; overflow: hidden; }
.login-story::after { content: ""; position: absolute; width: 66vw; max-width: 760px; aspect-ratio: 1; right: -48%; bottom: -46%; border: 1px solid rgba(214, 243, 107, .17); border-radius: 50%; box-shadow: 0 0 0 100px rgba(214, 243, 107, .035), 0 0 0 220px rgba(214, 243, 107, .018); pointer-events: none; }
.story-top, .story-center, .story-bottom { position: relative; z-index: 1; }
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.story-caption { font-size: 12px; color: #a9c4b5; white-space: nowrap; }
.story-center { max-width: 650px; margin: auto 0; padding: 52px 0 70px; }
.story-kicker { color: #d6f36b; font-size: 13px; font-weight: 700; margin: 0 0 24px; }
.story-center h1 { margin: 0; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.15; letter-spacing: -.055em; font-weight: 760; }
.story-center > p:last-child { max-width: 450px; margin: 28px 0 0; font-size: 17px; line-height: 1.8; color: #bacfc2; }
.story-bottom { display: flex; align-items: center; gap: 18px; color: #a9c4b5; font-size: 11px; letter-spacing: .04em; }
.story-line { width: 36px; height: 1px; background: #d6f36b; }
.login-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 54px 40px 30px; }
.login-card { width: min(100%, 420px); margin: auto 0; }
.login-card h2 { margin: 0; font-size: clamp(30px, 3.2vw, 43px); letter-spacing: -.045em; line-height: 1.2; }
.login-help { margin: 15px 0 38px; color: #6c7970; font-size: 15px; line-height: 1.65; }
.field { margin-bottom: 21px; }
.field label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.field input { width: 100%; height: 54px; border: 1px solid #cdd5cd; border-radius: 10px; padding: 0 15px; background: #fff; color: #182925; outline: none; font-size: 16px; transition: border-color .18s, box-shadow .18s; }
.field input::placeholder { color: #89968c; }
.field input:focus { border-color: #2c8c71; box-shadow: 0 0 0 4px rgba(44, 140, 113, .13); }
.field input[aria-invalid="true"] { border-color: #b54842; }
.password-field { position: relative; }
.password-field input { padding-right: 74px; }
.reveal-button { position: absolute; right: 10px; top: 8px; height: 38px; padding: 0 9px; border: 0; background: transparent; color: #2a7561; font-size: 13px; font-weight: 700; }
.form-message { margin: 2px 0 18px; padding: 12px 14px; border-radius: 9px; background: #f9e8e5; color: #913c35; font-size: 13px; line-height: 1.5; }
.form-message[data-kind="success"] { background: #e6f3e8; color: #176e57; }
.primary-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; padding: 0 17px; background: #176e57; color: #fff; font-size: 15px; font-weight: 750; transition: background .18s, transform .18s; }
.primary-button:hover { background: #0d5f4a; transform: translateY(-1px); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-arrow { font-size: 22px; font-weight: 400; line-height: 1; }
.login-footnote { margin: 24px 0 0; color: #7a877e; font-size: 12px; }
.side-footer { width: min(100%, 420px); color: #92a097; font-size: 11px; margin: 30px 0 0; }

.invite-layout { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; background: #edf1e9; }
.invite-card { width: min(100%, 470px); padding: clamp(27px, 5vw, 43px); border: 1px solid #dbe4d8; border-radius: 18px; background: #fff; box-shadow: 0 22px 65px rgba(25, 55, 39, .07); }
.invite-card .wordmark { color: #173d34; margin-bottom: 45px; }
.invite-card h1 { margin: 0; font-size: clamp(30px, 6vw, 40px); letter-spacing: -.045em; }
.invite-description { margin: 13px 0 29px; color: #64776a; line-height: 1.65; overflow-wrap: anywhere; }
.invite-card .form-message { margin: 0 0 20px; }
.invite-card .primary-button { margin-top: 8px; }
.text-button { display: block; width: 100%; margin-top: 14px; padding: 10px; border: 0; background: transparent; color: #176e57; font-size: 13px; font-weight: 750; text-align: center; }
.text-button:hover { text-decoration: underline; }

.workspace-layout { min-height: 100dvh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { min-height: 100dvh; display: flex; flex-direction: column; padding: 29px 18px 24px; background: #142f2a; color: #ebf3e9; }
.sidebar-head { padding: 0 14px 34px; }
.sidebar-head p { color: #9db7a9; font-size: 12px; margin: 10px 0 0 39px; }
.sidebar-section { padding: 17px 10px; border-top: 1px solid rgba(224, 242, 225, .13); }
.sidebar-label { display: block; color: #9db7a9; font-size: 11px; font-weight: 750; letter-spacing: .07em; margin: 0 0 12px 8px; }
.sidebar select { width: 100%; min-height: 43px; appearance: none; border: 1px solid #47675b; border-radius: 8px; padding: 0 30px 0 12px; background: #204239; color: #f5f8f2; font-size: 13px; font-weight: 650; }
.brand-nav { flex: 1; }
.brand-list { display: grid; gap: 5px; }
.brand-button { display: flex; width: 100%; align-items: center; gap: 11px; border: 0; border-radius: 8px; padding: 11px; background: transparent; color: #bed0c4; text-align: left; font-size: 13px; font-weight: 600; }
.brand-button:hover { background: rgba(235, 248, 233, .08); color: #fff; }
.brand-button[aria-current="true"] { background: #d6f36b; color: #1b382d; }
.brand-initial { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 6px; background: rgba(225, 246, 216, .14); font-size: 12px; font-weight: 800; }
.brand-button[aria-current="true"] .brand-initial { background: rgba(22, 60, 44, .12); }
.sidebar-empty { margin: 4px 9px; color: #b8cabc; font-size: 12px; line-height: 1.6; }
.sidebar-foot { border-top: 1px solid rgba(224, 242, 225, .13); padding: 18px 10px 0; }
.signed-in-email { margin: 0 0 12px; overflow-wrap: anywhere; font-size: 12px; color: #bad1c2; }
.logout-button { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; padding: 7px 0; color: #eef5ed; background: transparent; font-size: 13px; font-weight: 700; }
.logout-button:hover { color: #d6f36b; }
.main-content { min-width: 0; padding: 50px clamp(24px, 4.2vw, 76px) 80px; }
.content-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1060px; margin: 0 auto 42px; }
.content-topbar h1 { font-size: clamp(30px, 3vw, 43px); letter-spacing: -.045em; margin: 0; line-height: 1.2; }
.role-badge, .approval-badge { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.role-badge { color: #476057; background: #e7ece5; }
.workspace-message { max-width: 1060px; margin: 0 auto 20px; padding: 14px 16px; color: #913c35; background: #f9e8e5; border-radius: 9px; font-size: 13px; }
.empty-panel, .brand-detail { max-width: 1060px; margin: 0 auto; }
.empty-panel { min-height: 370px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px dashed #c8d3c9; border-radius: 16px; background: #fff; text-align: center; padding: 40px; }
.empty-mark { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: #e7f2e9; color: #27795c; font-size: 30px; font-weight: 300; }
.empty-panel h2 { margin: 18px 0 8px; font-size: 21px; letter-spacing: -.025em; }
.empty-panel p { margin: 0; color: #75847a; font-size: 14px; }
.brand-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.brand-heading h2 { margin: 0; font-size: clamp(27px, 2.7vw, 37px); letter-spacing: -.04em; line-height: 1.25; }
.brand-access-role { margin: -11px 0 22px; color: #65786d; font-size: 12px; font-weight: 700; }
.approval-badge { color: #1c7052; background: #dff1df; }
.approval-badge.is-off { color: #696f67; background: #e8ebe4; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.overview-card { display: flex; flex-direction: column; min-height: 146px; padding: 24px; border: 1px solid #e1e6dd; border-radius: 14px; background: #fff; }
.overview-card > span { font-size: 12px; font-weight: 650; color: #6d7d72; }
.overview-card strong { margin: auto 0 5px; font-size: 37px; line-height: 1.05; letter-spacing: -.045em; }
.overview-card .timezone-value { font-size: clamp(18px, 2vw, 23px); letter-spacing: -.025em; overflow-wrap: anywhere; }
.overview-card small { color: #8a968c; font-size: 11px; }
.posting-panel { margin-top: 26px; padding: clamp(20px, 3vw, 32px); border: 1px solid #dfe7dc; border-radius: 15px; background: #fff; }
.posting-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.posting-panel-head h3 { margin: 0; font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -.035em; }
.posting-step { color: #789186; font-size: 11px; font-weight: 750; white-space: nowrap; }
.account-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0 0; padding: 20px; border: 1px solid #dce8da; border-radius: 11px; background: #f6faf4; }
.account-line strong { font-size: 14px; }
.account-line p { margin: 5px 0 0; color: #62766b; font-size: 12px; line-height: 1.55; }
.account-line .secondary-button { flex: 0 0 auto; }
.posting-message { margin: 14px 0 0; padding: 11px 13px; border-radius: 8px; background: #faebe8; color: #923e38; font-size: 12px; line-height: 1.5; }
.posting-message[data-kind="success"] { background: #e8f4e9; color: #176e57; }
.meta-page-picker { margin-top: 18px; padding: 19px; border: 1px solid #d9e5d8; border-radius: 11px; }
.meta-page-picker > strong { font-size: 14px; }
.meta-page-picker > p { margin: 6px 0 16px; color: #66796b; font-size: 12px; line-height: 1.6; }
.meta-page-list { display: grid; gap: 9px; }
.meta-page-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px; border: 1px solid #e5ebe3; border-radius: 9px; }
.meta-page-row strong, .draft-row strong { display: block; font-size: 13px; }
.meta-page-row small, .draft-row small { display: block; margin-top: 4px; color: #738277; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.posting-divider { height: 1px; margin: 30px 0; background: #e6ece3; }
.post-draft-form { margin-top: 20px; }
.post-draft-form .field { margin-bottom: 16px; }
.post-draft-form input, .post-draft-form select, .post-draft-form textarea { width: 100%; border: 1px solid #cdd8cc; border-radius: 9px; padding: 12px 13px; background: #fff; color: #182925; outline: none; }
.post-draft-form input, .post-draft-form select { min-height: 47px; }
.post-draft-form textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.post-draft-form input:focus, .post-draft-form select:focus, .post-draft-form textarea:focus { border-color: #2c8c71; box-shadow: 0 0 0 4px rgba(44, 140, 113, .13); }
.post-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.post-actions small { color: #7b8b7d; font-size: 11px; }
.draft-list-head { display: flex; justify-content: space-between; margin: 28px 0 10px; font-size: 13px; }
.draft-list-head span { color: #7b8b7d; font-size: 11px; }
.post-draft-list { display: grid; gap: 8px; }
.draft-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid #e5ebe3; border-radius: 9px; }
.draft-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto; }
.draft-action-button { min-height: 33px; border: 1px solid #176e57; border-radius: 7px; padding: 0 10px; background: #176e57; color: #fff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.draft-action-button:hover { background: #0d5f4a; }
.draft-action-button:disabled { opacity: .6; cursor: wait; }
.posting-empty { margin: 0; padding: 17px; border: 1px dashed #d2dfd1; border-radius: 9px; color: #7b8b7d; font-size: 12px; text-align: center; }
.schedule-heading { margin: 42px 0 20px; }
.schedule-heading h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.schedule-list { display: grid; gap: 9px; }
.schedule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; min-height: 68px; border: 1px solid #e2e8df; border-radius: 10px; padding: 13px 17px; background: #fff; }
.schedule-row strong { display: block; font-size: 13px; }
.schedule-row small { display: block; margin-top: 4px; color: #849187; font-size: 11px; }
.schedule-time { color: #53655b; font-size: 12px; white-space: nowrap; }
.status-badge { border-radius: 999px; padding: 5px 9px; color: #557060; background: #e8eee7; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-badge.is-blocked { color: #985040; background: #f9ebe2; }
.schedule-empty { padding: 36px 25px; border: 1px dashed #cdd9cd; border-radius: 12px; text-align: center; color: #7b897d; background: #fcfdfa; font-size: 13px; }
.owner-invite-panel { max-width: 1060px; margin: 54px auto 0; padding: 26px clamp(18px, 3vw, 30px); border: 1px solid #dfe7dc; border-radius: 15px; background: #fff; }
.owner-invite-panel .schedule-heading { margin: 0 0 10px; }
.owner-invite-panel > p { margin: 0 0 25px; color: #6d7d72; font-size: 13px; line-height: 1.6; }
.invite-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr); gap: 16px; }
.invite-fields .field { margin-bottom: 15px; }
.invite-fields select { width: 100%; height: 54px; padding: 0 13px; border: 1px solid #cdd5cd; border-radius: 10px; background: #fff; color: #182925; }
.invite-brand-fieldset { margin: 8px 0 22px; padding: 13px 15px 16px; border: 1px solid #dfe7dc; border-radius: 10px; }
.invite-brand-fieldset legend { padding: 0 5px; font-size: 13px; font-weight: 700; }
.invite-brand-options { display: grid; gap: 10px; }
.invite-brand-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 170px); gap: 14px; align-items: center; }
.invite-brand-option label { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
.invite-brand-option label span { overflow-wrap: anywhere; }
.invite-brand-option select { width: 100%; min-height: 36px; border: 1px solid #cdd5cd; border-radius: 8px; padding: 0 8px; background: #fff; }
.secondary-button { min-height: 41px; border: 1px solid #176e57; border-radius: 8px; padding: 0 15px; background: #eaf5ed; color: #176e57; font-size: 13px; font-weight: 750; }
.secondary-button:hover { background: #d9eee0; }
.secondary-button:disabled { opacity: .6; cursor: wait; }
.owner-invite-panel .form-message { margin: 17px 0 0; }
.invite-result { margin-top: 19px; padding: 17px; border-radius: 10px; background: #eff6e9; }
.invite-result label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 750; }
.invite-link-row { display: flex; gap: 9px; }
.invite-link-row input { min-width: 0; flex: 1; height: 41px; padding: 0 9px; border: 1px solid #bdd4c0; border-radius: 8px; background: #fff; color: #263a2c; }
.invite-result small { display: block; margin-top: 11px; color: #6a7c6b; line-height: 1.5; }
.account-security { max-width: 1060px; margin: 28px auto 0; padding: 20px clamp(18px, 3vw, 30px); border: 1px solid #dfe7dc; border-radius: 15px; background: #fff; }
.account-security summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 750; }
.account-security summary span { color: #176e57; font-size: 13px; }
.account-security > p { color: #6d7d72; font-size: 13px; line-height: 1.6; }
.account-security form { max-width: 440px; }
.account-security .form-message { margin-top: 8px; }

@media (max-width: 900px) {
  .story-caption { display: none; }
  .login-layout { grid-template-columns: minmax(310px, .82fr) minmax(350px, 1fr); }
  .login-story { padding-left: 34px; padding-right: 34px; }
}
@media (max-width: 700px) {
  .login-layout { display: block; }
  .login-story { min-height: 230px; padding: 24px 24px 28px; }
  .story-center { margin: 34px 0 0; padding: 0; }
  .story-kicker, .story-bottom, .story-center > p:last-child { display: none; }
  .story-center h1 { font-size: 27px; line-height: 1.3; }
  .story-center h1 br { display: none; }
  .login-side { min-height: calc(100dvh - 230px); padding: 36px 24px 24px; }
  .login-card { margin: 0; }
  .login-card h2 { font-size: 30px; }
  .login-help { margin-bottom: 30px; }
  .side-footer { margin-top: auto; padding-top: 48px; }
  .workspace-layout { display: block; }
  .sidebar { min-height: 0; padding: 20px 20px 14px; }
  .sidebar-head { padding: 0 0 14px; }
  .sidebar-head p { display: none; }
  .sidebar-section { padding: 12px 0; }
  .brand-nav { padding-bottom: 5px; }
  .brand-list { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 5px; }
  .brand-button { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .sidebar-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0 0; }
  .signed-in-email { margin: 0; }
  .logout-button { width: auto; gap: 12px; white-space: nowrap; }
  .main-content { padding: 32px 20px 70px; }
  .content-topbar { margin-bottom: 28px; }
  .overview-card { min-height: 130px; padding: 18px; }
  .account-line, .meta-page-row { align-items: stretch; flex-direction: column; }
  .draft-row { align-items: stretch; flex-direction: column; }
  .draft-actions { justify-content: space-between; }
  .account-line .secondary-button, .meta-page-row .secondary-button { width: 100%; }
  .schedule-row { grid-template-columns: minmax(0, 1fr) auto; }
  .schedule-time { grid-column: 1; grid-row: 2; }
  .status-badge { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 450px) {
  .invite-fields { grid-template-columns: 1fr; gap: 0; }
  .invite-brand-option { grid-template-columns: 1fr; gap: 5px; }
  .invite-brand-option select { margin-left: 23px; width: calc(100% - 23px); }
  .invite-link-row { flex-direction: column; }
  .overview-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .overview-card { min-height: 122px; padding: 14px; }
  .overview-card strong { font-size: 29px; }
  .brand-heading { align-items: start; flex-direction: column; gap: 13px; }
}
@media (max-width: 360px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 105px; }
  .overview-card .timezone-value { overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
