/* NStore | Roman G. | buuded */
:root {
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #24262b;
  background: #fff;
  --ink: #292b30;
  --muted: #73757d;
  --line: #e0e1e5;
  --rail: #f5f5f6;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  min-height: 36px;
  padding: 7px 15px;
  border-radius: 9px;
  border: 1px solid #d9dbe0;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
button:hover {
  background: #f5f5f6;
}
button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
button.primary:hover {
  background: #40434b;
}
button.danger {
  color: #c12f35;
}
button:disabled {
  cursor: default;
  background: #ececef;
  color: #91939b;
  border-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
::selection {
  background: #cdd0d6;
  color: #16181d;
}
input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d5d7dd;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}
input::placeholder {
  color: #797c85;
}
input:focus,
select:focus {
  outline: 2px solid #717783;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.025em;
  font-weight: 650;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 650;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 650;
  padding: 0 9px;
}
.brand:hover {
  text-decoration: none;
}
.nav-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 10px 14px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 15px;
}
.nav a.active {
  background: #e5e5e8;
  font-weight: 550;
}
.nav a:hover {
  background: #eaeaed;
  text-decoration: none;
}
.nav svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
  border-top: 1px solid #d8d9df;
  padding: 20px 10px 0;
  font-size: 13px;
}
.workspace {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  min-height: 88px;
  padding: 21px 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.prototype {
  color: #73757d;
  font-size: 13px;
  white-space: nowrap;
}
main {
  padding: 32px 34px;
  flex: 1;
}
.muted {
  color: var(--muted);
}
.profile {
  padding: 0 0 26px;
}
.profile h2 {
  font-size: 29px;
  margin-bottom: 10px;
}
.profile .email {
  margin-top: 10px;
  font-size: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 2px 10px;
  background: #ececef;
  border-radius: 8px;
  color: #555963;
}
.badge.blocked {
  background: #fff0f0;
  color: #b33239;
}
.facts {
  display: flex;
  border-block: 1px solid #d7d9de;
  padding: 23px 0;
  margin-bottom: 32px;
}
.fact {
  flex: 1;
  padding: 0 25px;
  border-left: 1px solid #d7d9de;
}
.fact:first-child {
  padding-left: 0;
  border: 0;
}
.fact span {
  display: block;
  color: #74767d;
  margin-bottom: 4px;
}
.fact strong {
  font-size: 26px;
  font-weight: 600;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(350px, 1.55fr) minmax(240px, 1fr);
  gap: 20px;
}
.panel {
  border: 1px solid #d4d6dc;
  border-radius: var(--radius);
  padding: 23px;
}
.panel > p {
  margin-top: 5px;
  color: #62656e;
}
.plans {
  margin-top: 24px;
}
.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.plan:last-child {
  padding-bottom: 0;
}
.plan strong {
  min-width: 95px;
  font-size: 17px;
}
.plan span {
  color: #555963;
}
.device-card {
  text-align: center;
}
.device-card h2 {
  text-align: left;
}
.laptop {
  margin: 38px auto 15px;
  width: 90px;
  height: 76px;
  stroke: #535761;
  stroke-width: 4;
  fill: none;
  stroke-linejoin: round;
}
.device-card h3 {
  font-size: 22px;
}
.device-card p {
  margin: 8px 0 24px;
}
.code-panel {
  margin-top: 28px;
}
.code-panel h2 {
  margin-bottom: 17px;
}
.input-row {
  display: flex;
  gap: 12px;
}
.input-row button {
  min-width: 150px;
}
.tools {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.tools select {
  width: 205px;
}
.table-wrap {
  border: 1px solid #d9dbe1;
  border-radius: 12px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid #e4e5e9;
  font-weight: 400;
}
th {
  color: #646871;
  background: #fcfcfd;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr.selected {
  background: #e9eaed;
}
td button {
  min-height: 32px;
  padding: 4px 13px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) 310px;
  gap: 24px;
}
.inspector {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.inspector h2 {
  font-size: 23px;
  margin-bottom: 22px;
}
.segments {
  display: flex;
  gap: 3px;
  background: #eeeef0;
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 25px;
}
.segments button {
  flex: 1;
  background: transparent;
  border-color: transparent;
}
.segments button.active {
  background: #fff;
  border-color: #dddfe4;
}
.inspector .detail {
  padding: 12px 0;
}
.inspector .actions {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.inspector .actions button {
  text-align: left;
  white-space: normal;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.inline-status {
  font-size: 12px;
  color: #777b84;
}
.stack {
  display: grid;
  gap: 18px;
}
.simple-table {
  margin-top: 22px;
}
.auth-wrap {
  max-width: 450px;
  margin: 42px auto;
}
.auth-wrap h2 {
  margin-bottom: 10px;
}
.auth-wrap > p {
  margin-bottom: 26px;
}
.auth-wrap form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.password-wrap {
  display: flex;
  border: 1px solid #d5d7dd;
  border-radius: 9px;
  overflow: hidden;
}
.password-wrap input {
  border: 0;
  min-width: 0;
}
.password-wrap button {
  border: 0;
  min-width: 70px;
  font-size: 12px;
}
.auth-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.form-note {
  font-size: 12px;
  color: #727680;
}
.account-status {
  padding: 16px 0;
  font-size: 13px;
}
.term-selector {
  display: flex;
  gap: 7px;
  margin: 24px 0;
}
.term-selector button.active {
  background: var(--ink);
  color: #fff;
}
footer {
  padding: 25px 34px 30px;
  color: #787b83;
  font-size: 12px;
}
dialog {
  border: 1px solid #d9dce2;
  border-radius: 16px;
  padding: 28px;
  width: min(490px, calc(100vw - 32px));
  color: var(--ink);
}
dialog::backdrop {
  background: #10131b38;
}
dialog h2 {
  margin-bottom: 12px;
}
dialog form {
  display: grid;
  gap: 14px;
}
dialog p {
  margin-bottom: 18px;
  color: #666b74;
}
dialog .buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 24px;
  max-width: 420px;
  padding: 13px 19px;
  background: #292b30;
  color: #fff;
  border-radius: 11px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1150px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .inspector .actions {
    display: flex;
    flex-wrap: wrap;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .device-card {
    text-align: left;
  }
  .device-card .laptop {
    margin: 24px 0 12px;
  }
  .profile h2 {
    font-size: 26px;
  }
}
@media (max-width: 740px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 14px 16px;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
  }
  .nav a {
    font-size: 13px;
    white-space: nowrap;
    padding: 8px;
  }
  .nav-label {
    display: none;
  }
  .nav svg {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    margin: 0;
    border: 0;
    padding: 0 8px;
    gap: 18px;
  }
  .workspace {
    margin: 0;
  }
  header {
    padding: 20px;
    min-height: 75px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 24px;
  }
  main {
    padding: 24px 20px;
  }
  .tools {
    flex-direction: column;
  }
  .tools select {
    width: 100%;
  }
  .input-row {
    flex-direction: column;
  }
  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts {
    padding: 20px 0;
  }
  .fact {
    padding: 0 12px;
  }
  .fact strong {
    font-size: 22px;
  }
  .fact span {
    font-size: 12px;
  }
  .profile h2 {
    font-size: 23px;
  }
  footer {
    padding: 24px 20px;
  }
  .auth-wrap {
    margin: 10px auto;
  }
  .panel {
    padding: 19px;
  }
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Desktop typography and inspector follow the approved graphite concept. */
:root {
  font-size: 16px;
}
h1 {
  font-size: 32px;
}
.prototype {
  font-size: 14px;
  margin-left: auto;
}
.nav a {
  font-size: 16px;
}
table {
  font-size: 16px;
}
footer {
  font-size: 14px;
}
.profile h2 {
  font-size: 32px;
}
.inspector .actions button {
  min-height: 46px;
  padding: 11px 14px;
}
.action-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.action-label svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-create {
  margin-left: 14px;
}
.inspector h2 {
  margin-bottom: 24px;
}
@media (max-width: 740px) {
  h1 {
    font-size: 24px;
  }
  .profile h2 {
    font-size: 23px;
  }
  .prototype {
    font-size: 12px;
  }
  .nav a {
    font-size: 13px;
  }
  footer {
    font-size: 12px;
  }
  .header-create {
    margin-left: 0;
  }
}

/* Public product surface and live account forms. */
.public-page .sidebar { display:none; }
.public-page .workspace { margin-left:0; }
.public-page header,.public-page main,.public-page footer { max-width:1120px;margin:auto; }
.public-page header { padding:28px 34px; }
.welcome {padding:64px 0 76px;max-width:850px;}
.welcome h1 {font-size:clamp(42px,7vw,78px);line-height:1.05;margin:26px 0;letter-spacing:-.035em;}
.welcome p {max-width:660px;font-size:19px;line-height:1.65;}
.welcome .muted {font-size:14px;margin-top:22px;}
.welcome-actions {display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-top:32px;}
.download {background:var(--ink);color:white;padding:15px 24px;border-radius:10px;font-weight:600;}
.product-details {border-top:1px solid var(--line);padding:42px 0;max-width:850px;}
.product-details h2 {margin-bottom:24px;}
.product-details dt {font-size:19px;font-weight:600;margin-top:24px;}
.product-details dd {margin:8px 0 24px;color:#5f626c;max-width:720px;font-size:16px;}
.product-details li {padding:8px 0;font-size:16px;}
.auth-panel {max-width:480px;display:grid;gap:22px;}
form {display:grid;gap:16px;max-width:650px;}
form label {display:grid;gap:7px;}
.checkbox {display:flex;align-items:center;gap:9px;}
.checkbox input {width:18px;min-height:18px;}
.panel {margin:28px 0;}
.panel h2 {margin-bottom:20px;}
code {overflow-wrap:anywhere;font-size:11px;}
#created-code:not(:empty) {padding:20px;background:#f0f2f4;margin:20px 0;overflow-wrap:anywhere;}
.header-account {font-size:14px;white-space:nowrap;}
@media(max-width:700px){.welcome{padding:34px 0;}.public-page header{padding:20px;}.public-page main{padding:20px;}.facts{flex-wrap:wrap;}.workspace header{gap:15px;flex-wrap:wrap;}}

.nav a.active {background:var(--ink);color:#fff;}
.public-page header,.public-page main,.public-page footer {width:100%;}
