@font-face {
  font-family: Manrope;
  src: url('/branding/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/branding/fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --forest: #062e26;
  --green: #105641;
  --gold: #d5a64f;
  --cream: #f7f4ec;
  --paper: #fffefb;
  --ink: #17231d;
  --muted: #53655c;
  --line: #d3dcd2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--forest); }
h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
h2 { font-size: 1.85rem; }
a { color: var(--green); text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, select { outline-offset: 3px; }
:focus-visible { outline: 3px solid #9b711e; }
.loading, noscript p { padding: 2rem; }
.auth-layout { display: grid; grid-template-columns: minmax(280px, .88fr) 1.12fr; min-height: 100vh; min-height: 100svh; }
.brand { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 2rem; overflow: hidden; background: radial-gradient(ellipse at 48% 42%, #103f31, #03231c 72%); color: #f3e7c9; border-right: 1px solid var(--gold); }
.brand::before { content: ''; position: absolute; pointer-events: none; inset: 1.35rem; z-index: -1; border: 1px solid rgb(213 166 79 / 28%); }
.brand-symbol { width: clamp(110px, 15vw, 195px); height: auto; }
.brand-type { margin-top: 1.2rem; display: grid; text-align: center; gap: .2rem; }
.brand-type span:first-child { font: 500 clamp(2.6rem, 5vw, 4rem)/1 var(--serif); letter-spacing: .12em; padding-left: .12em; }
.brand-type span:last-child { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.auth-content { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 6vw, 6rem); }
.auth-panel { width: 100%; max-width: 430px; }
.section-name { margin-bottom: .7rem; color: var(--green); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; }
.description, .muted { color: var(--muted); line-height: 1.65; }
.description { margin-top: .7rem; }
.stack { display: grid; gap: 1rem; margin-top: 1.65rem; }
label { display: grid; gap: .42rem; font-size: .88rem; font-weight: 700; }
input, select { width: 100%; min-width: 0; min-height: 46px; padding: .65rem .85rem; border: 1px solid #a8b8ad; background: var(--paper); border-radius: 8px; color: var(--ink); font-size: 1rem; font-weight: 500; }
button { min-height: 40px; padding: .5rem .85rem; border-radius: 7px; font-weight: 700; font-size: .84rem; }
.primary { min-height: 46px; margin-top: .25rem; border: 1px solid var(--green); background: var(--green); color: white; }
.primary:hover { background: var(--forest); }
.secondary { border: 1px solid #b3bdac; background: #f8faf6; color: var(--green); }
.quiet { border: 0; background: transparent; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-block; margin-top: 1.45rem; }
[data-setup] p { line-height: 1.6; }
.setup-fields { margin: 1rem 0 0; border-left: 3px solid var(--gold); padding: .5rem 1rem; background: var(--paper); }
.setup-fields dt { font-size: .75rem; font-weight: 700; color: var(--muted); }
.setup-fields dd { margin: .15rem 0 .6rem; overflow-wrap: anywhere; }
.setup-fields dd:last-child { margin-bottom: 0; }
.setup-key { font-family: monospace; font-size: 1rem; line-height: 1.6; }
.feedback:not(:empty) { margin-top: 1rem; padding: .8rem 1rem; color: #164632; background: #e5f1e8; border-left: 3px solid #4e805f; line-height: 1.5; }
.feedback.error:not(:empty) { color: #702a21; background: #faeae5; border-color: #a64639; }
header { background: var(--forest); color: var(--paper); border-bottom: 2px solid var(--gold); }
.header-inner, .workspace { max-width: 1180px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 1rem; }
.identity { display: flex; gap: .7rem; align-items: center; }
.identity img { width: 44px; height: 44px; object-fit: contain; }
.identity span { font: 600 1.65rem/1 var(--serif); letter-spacing: .06em; }
.identity small { display: block; margin-top: .25rem; font: 500 .63rem/1.4 Manrope, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 1rem; }
nav a, nav button { color: var(--paper); font-size: .85rem; }
nav button { background: transparent; border: 1px solid #91a99e; }
.workspace { padding-block: clamp(2rem, 5vw, 4rem); }
.work-grid { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); align-items: start; gap: 1.4rem; }
.card { min-width: 0; padding: clamp(1.1rem, 2.6vw, 1.8rem); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.card-title, .list-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; flex-wrap: wrap; }
.side-stack, .accounts { display: grid; gap: 1rem; }
.accounts { padding: 0; list-style: none; gap: 0; }
.accounts li { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; overflow-wrap: anywhere; }
.accounts p { margin-top: .4rem; font-size: .9rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.status { font-size: .72rem; line-height: 1.4; font-weight: 700; padding: .24rem .56rem; border-radius: 99px; color: #204c39; background: #e5f0e6; }
.status.invited { background: #fbf0d6; color: #705516; }
.status.suspended { background: #faeae5; color: #702a21; }
.card > .muted:not(:empty), .invite > p:not(:empty), .invite label { margin-top: 1rem; }
.invite { border-top: 3px solid var(--gold); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .auth-layout, .work-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-rows: auto 1fr; }
  .brand { flex-direction: row; gap: .85rem; justify-content: flex-start; padding: 1.25rem 1.5rem; border: 0; border-bottom: 2px solid var(--gold); }
  .brand::before { content: none; }
  .brand-symbol { width: 54px; }
  .brand-type { text-align: left; margin: 0; }
  .brand-type span:first-child { font-size: 1.65rem; letter-spacing: .05em; padding-left: 0; }
  .brand-type span:last-child { font-size: .62rem; }
  .auth-content { align-items: flex-start; padding: 2.7rem 1.35rem; }
  .work-grid { gap: 1rem; }
  .header-inner, nav { gap: .6rem; }
  .header-inner { flex-wrap: wrap; padding-block: .8rem; }
  .header-inner nav { flex-wrap: wrap; }
}
