.translations { margin-top: 28px; }
.translation { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; min-width: 0; }
.translation legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.translation label:first-of-type { margin-top: 0; }
:root {
  --ink:#172d2a;
  --muted:#73817d;
  --green:#246c53;
  --green-dark:#19513e;
  --bg:#f6f8f5;
  --line:#e4eae4;
  --soft:#edf4ec;
  --white:#fff;
  --red:#ab3944;
  --radius:15px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.6;
}

a {
  color:var(--green);
  text-decoration:none;
}

a:hover {
  text-decoration:underline;
}

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

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

:focus-visible {
  outline:3px solid #69a78a;
  outline-offset:3px;
}

h1,h2,h3,p {
  margin-top:0;
}

h1 {
  font-size:clamp(28px,3vw,39px);
  line-height:1.2;
  letter-spacing:-1.4px;
  margin-bottom:13px;
  font-weight:650;
}

h2 {
  font-size:19px;
  letter-spacing:-.4px;
  margin-bottom:4px;
}

h3 {
  font-size:16px;
  margin-bottom:5px;
}

small {
  font-size:12px;
}

.muted {
  color:var(--muted);
}

.accent {
  color:#66976d;
}

.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:2px;
  color:var(--green);
  margin-bottom:16px;
}

.shell {
  display:flex;
  min-height:100vh;
}

.sidebar {
  width:245px;
  flex-shrink:0;
  background:var(--white);
  border-right:1px solid var(--line);
  padding:36px 21px 20px;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh;
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--ink);
  font-weight:750;
  font-size:19px;
  letter-spacing:-.6px;
}

.brand:hover {
  text-decoration:none;
}

.brand-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--green);
  color:white;
  width:39px;
  height:42px;
  flex-shrink:0;
  border-radius:12px;
  font-size:32px;
  line-height:1;
  font-weight:650;
}

.brand-icon span {
  color:#bada9a;
  font-size:24px;
  margin-top:12px;
}

.brand small {
  display:block;
  font-size:7px;
  letter-spacing:1.5px;
  font-weight:550;
  color:var(--muted);
  margin-top:1px;
}

.nav-label {
  font-size:9px;
  letter-spacing:1.7px;
  color:#8c9792;
  margin:53px 13px 15px;
}

.nav-link {
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 15px;
  border-radius:8px;
  color:#71807a;
  font-size:13px;
  margin-bottom:7px;
}

.nav-link span {
  font-size:21px;
  line-height:1;
}

.nav-link.active {
  background:var(--soft);
  color:var(--green);
  font-weight:600;
}

.nav-link:hover {
  background:#f3f6f1;
  text-decoration:none;
}

.sidebar-bottom {
  margin-top:auto;
  border-top:1px solid var(--line);
  padding-top:20px;
  display:flex;
  gap:9px;
  align-items:center;
  font-size:11px;
}

.sidebar-bottom small {
  display:block;
  font-size:9px;
  color:var(--muted);
}

.avatar {
  border-radius:50%;
  width:34px;
  height:34px;
  background:#e8eee8;
  display:grid;
  place-items:center;
  color:var(--green);
}

.sidebar-bottom form {
  margin-left:auto;
}

.logout {
  border:0;
  background:none;
  color:var(--muted);
  font-size:23px;
  cursor:pointer;
}

.main {
  width:100%;
  min-width:0;
  max-width:1600px;
  padding:0 44px;
}

.topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:81px;
  border-bottom:1px solid var(--line);
  color:#929c96;
  font-size:11px;
}

.topline strong {
  color:#63746c;
  font-weight:500;
}

.page-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:39px 0 30px;
}

.page-header p:last-child {
  margin-bottom:0;
}

.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  padding:12px 20px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
  line-height:1.5;
}

.button:hover {
  text-decoration:none;
  filter:brightness(.96);
}

.primary {
  background:var(--green);
  color:white;
  box-shadow:0 3px 5px #2045340d;
}

.secondary {
  background:white;
  border-color:#dfe6de;
  color:#52695a;
}

.danger {
  background:var(--red);
  color:white;
}

.full {
  width:100%;
}

.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:19px;
  margin:0 0 30px;
}

.stat {
  background:white;
  padding:21px 25px;
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.stat>span {
  font-size:12px;
  color:#64766b;
}

.stat strong {
  display:block;
  font-size:34px;
  font-weight:600;
  letter-spacing:-1px;
  margin:8px 0 1px;
}

.stat small {
  color:#99a39b;
  font-size:10px;
}

.dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#5d9d6d;
  margin:0 5px 2px 0;
}

.dot.draft {
  background:#c2a46b;
}

.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}

.panel-heading {
  padding:23px 25px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.panel-heading p {
  margin:2px 0 0;
  font-size:11px;
}

.search {
  display:flex;
  gap:8px;
}

.search input {
  width:245px;
  background:#fafcf9;
  padding:9px 12px;
  font-size:11px;
}

.search .button {
  padding:9px 12px;
}

.table-wrap {
  position:relative;
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
}

th {
  font-size:9px;
  color:#94a093;
  letter-spacing:1.1px;
  background:#fbfcf9;
  font-weight:550;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:14px 22px;
  white-space:nowrap;
}

td {
  font-size:12px;
  padding:20px 22px;
  border-bottom:1px solid #eef1eb;
}

tr:last-child td {
  border-bottom:0;
}

.app-cell {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:170px;
}

.app-cell img, .app-image-placeholder {
  width:46px;
  height:46px;
  background:#f0f3ed;
  border:1px solid var(--line);
  border-radius:12px;
  object-fit:cover;
}

.app-image-placeholder {
  display:grid;
  place-items:center;
  flex-shrink:0;
  color:var(--ink);
}

.image-preview img {
  display:block;
  width:96px;
  height:96px;
  object-fit:contain;
  margin-bottom:8px;
  border-radius:12px;
}

.app-title {
  font-size:13px;
  color:var(--ink);
  font-weight:600;
}

.app-cell small {
  display:block;
  color:#97a096;
  font-size:10px;
}

.app-store-links {
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-top:6px;
  font-size:11px;
}

.app-store-links a {
  text-decoration:underline;
  text-underline-offset:3px;
}

.featured {
  color:#9c8554;
}

.store {
  display:inline-block;
  border:1px solid #e4e9e1;
  border-radius:5px;
  font-size:9px;
  color:#718172;
  padding:2px 7px;
  margin:2px 0;
}

.age {
  color:#7e8b7d;
}

.pill {
  display:inline-block;
  font-size:9px;
  border-radius:6px;
  padding:4px 9px;
  font-weight:550;
  white-space:nowrap;
}

.pill.live {
  background:#eaf4e9;
  color:#4a8654;
}

.pill.live:before {
  content:'•';
  margin-right:5px;
}

.pill.pending {
  color: #854d0e;
  background: #fef3c7;
}

.pill.neutral {
  background:#f0f1e9;
  color:#8b907d;
}

.edit-link {
  white-space:nowrap;
  font-size:11px;
}

.empty {
  text-align:center;
  padding:48px 20px 56px;
  border-top:1px solid var(--line);
}

.empty-icon {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin:0 auto 22px;
  background:#edf4e8;
  border-radius:16px;
  font-size:32px;
  color:#729268;
}

.empty h3 {
  font-size:19px;
}

.empty p {
  font-size:12px;
  margin:8px 0 24px;
}

.api-banner {
  display:flex;
  align-items:center;
  gap:18px;
  background:#edf2e7;
  border:1px solid #e1e8d8;
  border-radius:12px;
  margin-top:25px;
  padding:22px 26px;
}

.api-banner h3 {
  font-size:13px;
  color:#536b46;
}

.api-banner p {
  font-size:11px;
  color:#829274;
  margin:0;
}

.api-banner>a {
  margin-left:auto;
  font-size:11px;
  color:#647c56;
  white-space:nowrap;
}

.api-mark {
  display:grid;
  place-items:center;
  font-size:26px;
  width:40px;
  height:40px;
  flex-shrink:0;
  border-radius:10px;
  color:#779266;
  background:#e2ead8;
}

footer {
  display:flex;
  justify-content:space-between;
  color:#a5afa1;
  font-size:10px;
  margin:30px 0 22px;
}

.alert {
  padding:15px 20px;
  border-radius:9px;
  margin:20px 0;
  font-size:13px;
}

.alert.success {
  background:#e9f4e9;
  color:#3a754b;
  border:1px solid #cde5ce;
}

.alert.error {
  background:#fceeed;
  color:#a53a43;
  border:1px solid #efd6d7;
}

.alert ul {
  margin-bottom:0;
  padding-left:18px;
}

.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:25px;
  padding:20px;
  border-top:1px solid var(--line);
  font-size:12px;
}

label {
  display:block;
  font-size:12px;
  font-weight:550;
  margin:22px 0 7px;
}

label>span:not(.label-note) {
  color:inherit;
}

input:not([type=checkbox]),textarea,select {
  display:block;
  width:100%;
  border:1px solid #dfe6dd;
  background:#fff;
  border-radius:7px;
  padding:11px 13px;
  color:var(--ink);
  min-width:0;
}

input::placeholder,textarea::placeholder {
  color:#acb4a8;
}

textarea {
  resize:vertical;
}

.form-grid {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(275px,1fr);
  gap:24px;
}

.form-panel {
  padding:27px;
  margin-bottom:23px;
}

.form-panel>p {
  font-size:12px;
}

.section-number {
  display:inline-grid;
  place-items:center;
  background:#edf3e9;
  border-radius:6px;
  font-size:10px;
  color:#7c9570;
  width:26px;
  height:26px;
  margin-right:9px;
  vertical-align:2px;
}

.hint {
  display:block;
  color:#929e8d;
  font-size:10px;
  margin-top:7px;
  line-height:1.7;
}

.label-note {
  float:right;
  font-size:10px;
  color:#9ba491;
  font-weight:400;
}

.check {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  cursor:pointer;
}

.check input {
  accent-color:var(--green);
  margin:4px 0 0;
  width:16px;
  height:16px;
  flex-shrink:0;
}

.check small {
  display:block;
  color:#8b9983;
  font-size:11px;
  font-weight:400;
  margin-top:4px;
}

.publication {
  background:#fcfdfb;
}

.form-actions {
  display:grid;
  gap:10px;
}

.delete-link {
  display:block;
  text-align:center;
  margin-top:22px;
  font-size:11px;
  color:#b36168;
}

.confirmation {
  max-width:690px;
  margin:60px auto;
  padding:40px;
}

.confirmation h1 {
  font-size:29px;
}

.inline-actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}

.api-doc {
  max-width:1000px;
}

.api-doc h2 {
  margin-top:30px;
  margin-bottom:15px;
}

.api-doc h2:first-child {
  margin-top:0;
}

.api-doc p {
  font-size:13px;
}

pre {
  background:#193c30;
  color:#e4f0dc;
  border-radius:10px;
  padding:22px;
  overflow:auto;
  font-size:12px;
  line-height:1.8;
}

code {
  font-family:ui-monospace,SFMono-Regular,monospace;
  font-size:.92em;
}

.api-doc table td {
  line-height:1.9;
}

.login-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100vh;
}

.login-story {
  padding:50px 60px;
  background:#e9f0e3;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:700px;
  position:relative;
  overflow:hidden;
}

.login-story:after {
  content:'';
  width:380px;
  height:380px;
  border:60px solid #dce7d3;
  border-radius:50%;
  position:absolute;
  right:-225px;
  bottom:0;
  pointer-events:none;
}

.login-story h1 {
  font-size:clamp(44px,4.5vw,72px);
  line-height:1.09;
  letter-spacing:-3px;
  margin:28px 0;
}

.login-story em {
  font-family:Georgia,serif;
  font-weight:400;
  color:#648352;
}

.login-story p:not(.eyebrow) {
  color:#7d8c72;
  font-size:13px;
}

.story-foot {
  font-size:10px;
  color:#91a083;
}

.login-form {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:50px;
}

.login-card {
  width:100%;
  max-width:365px;
}

.login-card h2 {
  font-size:27px;
  letter-spacing:-1px;
}

.login-card>.muted {
  font-size:12px;
  margin-top:9px;
}

.login-card form {
  margin-top:35px;
}

.login-card .primary {
  margin-top:29px;
  justify-content:space-between;
}

.login-note {
  font-size:10px;
  color:#a1ac9b;
  text-align:center;
  margin-top:25px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.error-page {
  padding:25px;
}

@media(min-width:1600px) {
  .main {
    margin:0 auto;
  }
}

@media(max-width:1150px) {
  .sidebar {
    width:205px;
    padding:30px 15px 20px;
  }
  .brand {
    font-size:16px;
  }
  .main {
    padding:0 26px;
  }
  .page-header {
    align-items:flex-start;
  }
  .page-header .button {
    margin-top:20px;
  }
  .panel-heading {
    align-items:flex-start;
    flex-direction:column;
  }
  .search {
    width:100%;
  }
  .search input {
    flex:1;
    width:auto;
  }
  .form-grid {
    grid-template-columns:1fr;
  }
  .login-story {
    padding:40px;
  }
  .api-banner>a {
    font-size:10px;
  }
  td,th {
    padding-left:15px;
    padding-right:15px;
  }
}

@media(max-width:760px) {
  .shell {
    display:block;
  }
  .sidebar {
    position:static;
    height:auto;
    width:100%;
    padding:18px 20px;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:block;
  }
  .brand small,.nav-label,.sidebar-bottom,.sidebar nav {
    display:none;
  }
  .main {
    padding:0 18px;
  }
  .topline {
    min-height:60px;
  }
  .page-header {
    display:block;
    margin-top:27px;
  }
  .page-header .button {
    margin-top:20px;
  }
  .stats {
    gap:8px;
  }
  .stat {
    padding:15px 12px;
  }
  .stat>span {
    font-size:10px;
  }
  .stat strong {
    font-size:27px;
  }
  .stat small {
    font-size:9px;
  }
  .api-banner {
    padding:18px;
    flex-wrap:wrap;
    gap:12px;
  }
  .api-banner>a {
    margin-left:52px;
  }
  .api-banner p {
    max-width:260px;
  }
  .panel-heading {
    padding:20px;
  }
  .form-panel {
    padding:21px;
  }
  .login-layout {
    grid-template-columns:1fr;
  }
  .login-story {
    min-height:0;
    padding:28px;
  }
  .login-story>div:not(.brand),.story-foot {
    display:none;
  }
  .login-story:after {
    display:none;
  }
  .login-form {
    padding:50px 25px;
  }
  .login-card h2 {
    font-size:25px;
  }
  footer span {
    display:none;
  }
  .confirmation {
    padding:25px;
    margin:30px 0;
  }
  .confirmation h1 {
    font-size:25px;
  }
}

@media(max-width:760px) {
  .sidebar nav {
    display:flex;
    gap:8px;
    margin-top:15px;
  }
  .nav-link {
    padding:8px 11px;
    margin-bottom:0;
    font-size:11px;
  }
  .sidebar-bottom {
    display:flex;
    position:absolute;
    right:20px;
    top:21px;
    border:0;
    padding:0;
    margin:0;
  }
  .sidebar-bottom>.avatar,.sidebar-bottom>div:not(.avatar) {
    display:none;
  }
  .sidebar-bottom form {
    margin:0;
  }
  .sidebar .brand {
    max-width:calc(100% - 45px);
  }
}

.search input[type=search] {
  width:245px;
}

@media(max-width:1150px) {
  .search input[type=search] {
    width:auto;
    flex:1;
  }
}
