@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #17221d; --paper: #f4f1e8; --panel: #fffdf7; --line: #d8d6ca;
  --muted: #6b756d; --green: #1d684c; --lime: #c9ef72; --coral: #f07a5f;
  --shadow: 0 18px 50px rgba(31, 47, 38, 0.1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Space Grotesk', sans-serif; line-height: 1.5; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(#bfc5b5 0.7px, transparent 0.7px); background-size: 18px 18px; }
header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: rgba(244,241,232,.9); }
header h1 { margin: 0; font-size: 1.35rem; letter-spacing: 0; } .sub { margin-left: .45rem; color: var(--muted); font-size: .85rem; font-weight: 500; }
nav { display: flex; gap: 1.2rem; } nav a { color: var(--green); text-decoration: none; font-size: .85rem; font-weight: 600; } nav a:hover { color: var(--coral); }
main { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 6.5rem) 1.25rem; display: grid; gap: 1.25rem; }
.card { background: rgba(255,253,247,.92); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
#auth { display: grid; grid-template-columns: minmax(220px, .85fr) 1.4fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; border-top: 5px solid var(--green); }
#auth > h2, #auth > p { grid-column: 1; } #auth > h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.05; max-width: 10ch; } #auth > p { color: var(--muted); margin: -1rem 0 0; max-width: 28ch; }
#auth > .row { grid-column: 2; grid-row: 1 / span 2; }
.card h2 { margin: 0 0 .65rem; font-size: 1.2rem; letter-spacing: 0; } .card h3 { margin: 0 0 .65rem; color: var(--green); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.card p { color: var(--muted); margin: .3rem 0; } .row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-start; }
.auth-panel { width: min(100%, 390px); } .auth-switcher { display: flex; gap: .3rem; padding: .25rem; margin-bottom: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; } .switch { flex: 1; background: transparent; color: var(--muted); padding: .55rem .7rem; } .switch:hover, .switch.active { background: var(--green); color: #fffdf7; } .field { display: flex; flex-direction: column; gap: .65rem; min-width: 0; }
input { width: 100%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); padding: .8rem .85rem; border-radius: 4px; font: inherit; font-size: .9rem; } input:focus { outline: 2px solid var(--lime); border-color: var(--green); }
button { background: var(--green); color: #fffdf7; border: 0; border-radius: 4px; padding: .78rem 1rem; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; } button:hover { background: var(--coral); } button:disabled { opacity: .55; cursor: not-allowed; }
button.copy { background: transparent; border: 1px solid var(--line); color: var(--green); padding: .2rem .5rem; font-size: .75rem; } button.copy:hover { background: var(--lime); }
#workspace .row:first-child { justify-content: space-between; align-items: center; } #workspace h2 { font-size: 1.55rem; margin-bottom: .1rem; } #workspace table { margin: 1rem 0 1.2rem; }
#organization-form input { max-width: 320px; } table { width: 100%; border-collapse: collapse; font-size: .88rem; } th, td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); } th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.kv > div { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: .55rem 0; } .kv label { width: 125px; color: var(--muted); font-size: .78rem; text-transform: uppercase; } .kv code { flex: 1; min-width: 180px; background: var(--paper); padding: .45rem .6rem; border-radius: 4px; word-break: break-all; }
.warn { color: var(--coral); font-size: .75rem; } .error { color: #b63d2b; margin-top: .8rem; font-size: .85rem; } .muted { color: var(--muted); font-size: .82rem; }
.code { background: #18231e; color: #e6f1cf; border-radius: 4px; padding: 1rem; overflow-x: auto; font-family: 'DM Mono', monospace; font-size: .78rem; white-space: pre; } code { font-family: 'DM Mono', monospace; font-size: .82em; }
.check { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .82rem; }
.check input { width: auto; }


@media (max-width: 720px) { header { align-items: flex-start; flex-direction: column; } nav { gap: .8rem; } #auth { display: block; } #auth > p { margin: .7rem 0 1.6rem; } #auth .row { display: grid; grid-template-columns: 1fr; } .card { padding: 1.15rem; } table { display: block; overflow-x: auto; white-space: nowrap; } }
