:root {
  --ink: #17211f;
  --muted: #697572;
  --line: #dfe6e3;
  --soft: #f5f7f6;
  --paper: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0a5b55;
  --teal-soft: #e6f4f1;
  --navy: #132b35;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(20, 44, 38, .11);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--soft); }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-hidden { display: none !important; }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; }
.muted { color: var(--muted); }
code { font-family: "SFMono-Regular", Consolas, monospace; }

.brand-lockup { display: flex; align-items: center; gap: 11px; font-size: 1.24rem; letter-spacing: -.035em; }
.brand-lockup--large { font-size: 1.45rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 11px; }
.brand-mark svg { width: 29px; height: 29px; stroke-width: 2; }
.brand-lockup--large .brand-mark { width: 45px; height: 45px; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); }
.login-brand { position: relative; overflow: hidden; background: var(--navy); color: white; padding: 56px clamp(42px, 6vw, 100px); display: flex; flex-direction: column; justify-content: space-between; }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-brand::before { width: 520px; height: 520px; right: -240px; bottom: -140px; }
.login-brand::after { width: 340px; height: 340px; right: -140px; bottom: -50px; }
.login-brand .brand-mark { background: #2fa99c; }
.login-copy { position: relative; z-index: 1; max-width: 590px; }
.login-copy .eyebrow { color: #74d4c8; }
.login-copy h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(3.2rem, 5.4vw, 6rem); line-height: .97; letter-spacing: -.055em; margin: 20px 0 30px; }
.login-copy p { color: #bed0cd; font-size: 1.05rem; line-height: 1.75; max-width: 510px; }
.login-signal { display: flex; align-items: center; gap: 11px; color: #a9bfbc; font-size: .85rem; position: relative; z-index: 1; }
.status-dot { width: 8px; height: 8px; background: #54d5a5; border-radius: 50%; box-shadow: 0 0 0 5px rgba(84,213,165,.12); }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(410px, 100%); }
.mobile-brand { display: none; margin-bottom: 50px; }
.login-card h2 { margin: 10px 0 5px; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 500; letter-spacing: -.035em; }
.login-card > .muted { margin: 0 0 36px; }
.field { display: grid; gap: 8px; margin: 18px 0; font-size: .84rem; font-weight: 700; color: #31403d; }
.field small { color: var(--muted); font-weight: 500; }
.field input, .modal-fields input { width: 100%; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 13px 14px; color: var(--ink); outline: 0; transition: border .2s, box-shadow .2s; }
.field input:focus, .modal-fields input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.11); }
.input-wrap { position: relative; display: block; }
.input-wrap > svg { position: absolute; width: 18px; left: 14px; top: 50%; transform: translateY(-50%); color: #84908d; }
.input-wrap input { padding-left: 43px; }
.input-action { position: absolute !important; right: 6px; top: 50%; transform: translateY(-50%); }
.button { border: 0; border-radius: 9px; min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; font-size: .88rem; transition: transform .15s, background .2s, border-color .2s; }
.button:active { transform: translateY(1px); }
.button svg { width: 18px; height: 18px; }
.button--primary { background: var(--teal); color: white; }
.button--primary:hover { background: var(--teal-dark); }
.button--dark { background: var(--navy); color: white; }
.button--ghost { color: #40504c; background: white; border: 1px solid var(--line); }
.button--wide { width: 100%; }
.button--small { min-height: 34px; padding: 7px 12px; font-size: .8rem; }
.login-card .button { margin-top: 10px; min-height: 50px; }
.login-card .button svg { margin-left: auto; }
.login-error { color: var(--danger); font-size: .82rem; min-height: 18px; }
.login-footnote { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 28px; }
.login-footnote code { color: var(--teal); background: var(--teal-soft); padding: 2px 5px; border-radius: 4px; }
.icon-button { border: 0; background: transparent; color: #65716f; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; }
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 19px; height: 19px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 256px; background: white; border-right: 1px solid var(--line); padding: 26px 18px 18px; display: flex; flex-direction: column; }
.sidebar .brand-lockup { padding: 0 9px 25px; }
.sidebar-upload { margin-bottom: 21px; }
.main-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-label { padding: 14px 12px 7px; color: #9aa4a1; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.nav-item { width: 100%; min-height: 42px; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 12px; color: #5b6865; font-size: .85rem; font-weight: 650; text-align: left; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: var(--soft); color: var(--ink); }
.nav-item.is-active { color: var(--teal); background: var(--teal-soft); }
.nav-count { margin-left: auto; background: #edf0ef; color: #6d7875; font-size: .68rem; min-width: 22px; padding: 3px 6px; text-align: center; border-radius: 10px; }
.storage-card { margin-top: auto; background: var(--soft); padding: 14px; border-radius: 10px; }
.storage-title { display: flex; justify-content: space-between; font-size: .72rem; color: #6a7673; }
.storage-title strong { color: var(--teal); }
.progress { height: 5px; background: #dce3e1; border-radius: 4px; margin: 10px 0 8px; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--teal); transition: width .5s; }
.storage-card p { margin: 0; color: #7c8885; font-size: .7rem; }
.storage-card p strong { color: #384743; }
.profile { border: 0; background: transparent; border-top: 1px solid var(--line); margin-top: 14px; padding: 16px 4px 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.profile > svg { width: 17px; margin-left: auto; color: #9aa4a2; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 9px; font-size: .7rem; font-weight: 800; }
.profile-copy { display: grid; min-width: 0; }
.profile-copy strong { font-size: .75rem; }
.profile-copy small { color: #84908d; font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 125px; }

.main-content { grid-column: 2; min-width: 0; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 15; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 clamp(22px, 3vw, 44px); }
.search { max-width: 560px; flex: 1; position: relative; }
.search > svg { position: absolute; width: 18px; left: 14px; top: 50%; transform: translateY(-50%); color: #85918e; }
.search input { width: 100%; border: 1px solid transparent; background: var(--soft); border-radius: 9px; padding: 11px 65px 11px 43px; outline: 0; font-size: .84rem; }
.search input:focus { border-color: #a9cbc6; background: white; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #8c9694; background: white; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; font-size: .65rem; }
.top-upload { margin-left: auto; }
.mobile-menu { display: none; }
.page { padding: 38px clamp(22px, 3vw, 44px) 70px; max-width: 1540px; margin: auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.page-heading h1 { font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; margin: 8px 0 10px; }
.page-heading p { color: var(--muted); margin: 0; font-size: .9rem; }
.view-actions { display: flex; }
.segmented { width: 39px; height: 37px; border: 1px solid var(--line); background: white; color: #7b8784; display: grid; place-items: center; }
.segmented:first-child { border-radius: 8px 0 0 8px; }
.segmented:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.segmented svg { width: 17px; }
.segmented.is-active { color: var(--teal); background: var(--teal-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 16px; display: flex; align-items: center; gap: 13px; }
.stat-icon { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; }
.stat-icon svg { width: 20px; }
.stat-icon--green { background: #e5f4ef; color: #168064; }
.stat-icon--blue { background: #e8f0fa; color: #3e70aa; }
.stat-icon--orange { background: #fbefe3; color: #b56520; }
.stat-icon--purple { background: #f0eafa; color: #7755a6; }
.stat-card div { display: grid; }
.stat-card span { color: var(--muted); font-size: .72rem; }
.stat-card strong { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.content-toolbar { display: flex; align-items: center; gap: 15px; justify-content: space-between; margin-bottom: 18px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); color: #66726f; background: white; padding: 7px 13px; border-radius: 18px; font-size: .74rem; font-weight: 700; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: white; }
.content-toolbar select { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 30px 8px 11px; color: #56625f; font-size: .74rem; outline: 0; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.files-grid.is-list { display: flex; flex-direction: column; gap: 7px; }
.file-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.file-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,53,48,.08); border-color: #c9d5d2; }
.file-preview { height: 148px; background: #eef2f1; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: white; color: var(--teal); box-shadow: 0 7px 20px rgba(20,52,44,.08); }
.file-icon svg { width: 29px; height: 29px; }
.file-icon--video { color: #bd6420; background: #fff8f1; }
.file-icon--audio { color: #7755a6; background: #faf7ff; }
.file-icon--document { color: #3e70aa; background: #f5f9ff; }
.file-icon--archive { color: #826a25; background: #fffbee; }
.play-badge { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: white; background: rgba(19,43,53,.78); backdrop-filter: blur(3px); }
.play-badge svg { width: 16px; fill: currentColor; }
.file-info { padding: 13px 14px 15px; }
.file-title-row { display: flex; align-items: center; gap: 8px; }
.file-title { font-weight: 750; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.more-button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #8b9693; display: grid; place-items: center; }
.more-button:hover { background: var(--soft); }
.more-button svg { width: 17px; }
.file-meta { display: flex; justify-content: space-between; color: #8a9592; font-size: .67rem; margin-top: 6px; }
.file-folder { color: var(--teal); max-width: 54%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files-grid.is-list .file-card { display: grid; grid-template-columns: 64px 1fr; min-height: 66px; }
.files-grid.is-list .file-preview { height: 100%; border: 0; border-right: 1px solid var(--line); }
.files-grid.is-list .file-icon { width: 36px; height: 36px; border-radius: 8px; box-shadow: none; }
.files-grid.is-list .file-icon svg { width: 19px; }
.files-grid.is-list .file-info { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, .4fr); align-items: center; padding: 10px 14px; }
.files-grid.is-list .file-meta { margin: 0; }
.empty-state { padding: 80px 20px; display: grid; justify-items: center; text-align: center; }
.empty-illustration { width: 100px; height: 100px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 50%; }
.empty-illustration svg { width: 68px; }
.empty-state h2 { font-family: Georgia, serif; font-size: 1.6rem; margin: 22px 0 8px; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: .85rem; margin: 0 0 20px; }

.developer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.doc-main { display: grid; gap: 16px; }
.doc-aside { display: grid; gap: 16px; position: sticky; top: 96px; }
.doc-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.doc-card h2 { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; margin: 7px 0 10px; letter-spacing: -.025em; }
.doc-card h3 { margin: 0 0 8px; font-size: .92rem; }
.doc-card > p { color: var(--muted); line-height: 1.7; font-size: .84rem; }
.api-hero { background: var(--navy); color: white; padding: 30px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.api-hero p { color: #b9cac7; max-width: 690px; margin-bottom: 0; }
.api-hero code { color: #78d5c9; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; color: #bcd0cc; padding: 5px 9px; font-size: .68rem; font-weight: 700; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #54d5a5; }
.base-url, .secret-box { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); border-radius: 9px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; }
.base-url span { color: #91aaa5; text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; font-weight: 800; }
.base-url code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { margin-left: auto; border: 0; background: var(--teal); color: white; border-radius: 6px; padding: 6px 9px; font-size: .68rem; font-weight: 700; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.section-heading h2 { margin-top: 5px; }
.kicker { color: var(--teal); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.secret-box { background: #f2f8f6; border-color: #cde0db; margin: 17px 0; }
.secret-box code { color: var(--teal-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-list { display: grid; gap: 7px; margin-top: 18px; }
.key-row { border-top: 1px solid var(--line); padding-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.key-row strong { font-size: .8rem; }
.key-row p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.text-button { border: 0; color: var(--danger); background: transparent; font-size: .7rem; font-weight: 700; }
.code-block { border: 1px solid #293d43; background: #10272f; border-radius: 9px; overflow: hidden; margin-top: 17px; }
.code-head { border-bottom: 1px solid #293d43; padding: 9px 13px; display: flex; align-items: center; color: #91a9a5; font-size: .68rem; }
.code-head button { margin-left: auto; border: 0; color: #7ed3c8; background: transparent; font-size: .68rem; }
.code-block pre { padding: 18px; margin: 0; color: #d7e3e1; font-size: .74rem; line-height: 1.7; overflow: auto; }
.kw { color: #84d9cc; }.ann { color: #e8c982; }.str { color: #dcae8b; }
.endpoint-list { margin-top: 18px; }
.endpoint-list > div { display: grid; grid-template-columns: 64px minmax(190px, 1fr) 1fr; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 13px 0; }
.endpoint-list p { margin: 0; color: var(--muted); font-size: .75rem; }
.endpoint-list code { font-size: .76rem; }
.method { color: #26705f; background: #e7f5ef; border-radius: 5px; padding: 4px 6px; text-align: center; font-size: .61rem; font-weight: 850; }
.method--post { color: #416e9e; background: #eaf2fa; }.method--patch { color: #9a6621; background: #fbf1df; }.method--delete { color: #a03b36; background: #fae9e7; }
.tip-card { color: white; background: var(--teal); border-radius: 12px; padding: 23px; }
.tip-card svg { width: 27px; margin-bottom: 23px; }
.tip-card h3 { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.tip-card p { color: #d4eeea; font-size: .78rem; line-height: 1.7; margin-bottom: 0; }
.mini-card > p { font-size: .76rem; }
.format-tags, .event-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.format-tags span, .event-chips span { color: #5e6c69; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 5px 7px; font-size: .62rem; font-weight: 750; }
.webhook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.webhook-list, .delivery-list { display: grid; margin-top: 12px; }
.webhook-row, .delivery-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 13px 0; }
.webhook-row strong, .delivery-row strong { font-size: .8rem; }
.webhook-row p, .delivery-row p { color: var(--muted); font-size: .68rem; margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 370px; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.toggle { width: 36px; height: 20px; border: 0; border-radius: 12px; background: #cbd4d2; padding: 3px; }
.toggle::after { content: ""; display: block; width: 14px; height: 14px; background: white; border-radius: 50%; transition: margin .2s; }
.toggle.is-on { background: var(--teal); }.toggle.is-on::after { margin-left: 16px; }
.delivery-state { font-size: .64rem; font-weight: 750; padding: 4px 7px; border-radius: 11px; background: #e6f5ed; color: #287154; }
.delivery-state--failed { background: #fbe9e7; color: #a23b34; }
.signature-doc { margin-top: 16px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(12,29,34,.62); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.modal { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 15px; box-shadow: var(--shadow); padding: 28px; }
.modal--small { width: min(500px, 100%); }
.modal > h2 { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; margin: 7px 0 4px; }
.modal > p { font-size: .8rem; margin-top: 0; }
.modal-close { position: absolute; right: 17px; top: 17px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; color: #77827f; background: var(--soft); border: 0; border-radius: 8px; }
.modal-close svg { width: 17px; }
.dropzone { min-height: 190px; border: 1.5px dashed #a9c8c2; border-radius: 11px; margin-top: 22px; background: #f5faf8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #52615d; cursor: pointer; transition: background .2s, border .2s; }
.dropzone.is-dragging { background: var(--teal-soft); border-color: var(--teal); }
.dropzone input { display: none; }
.dropzone strong { font-size: .9rem; }
.dropzone > span:last-child { color: #85908d; font-size: .7rem; }
.drop-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--teal); background: white; border-radius: 50%; box-shadow: 0 6px 18px rgba(20,52,44,.08); margin-bottom: 5px; }
.drop-icon svg { width: 25px; }
.selected-files { display: grid; gap: 6px; max-height: 120px; overflow: auto; margin-top: 12px; }
.selected-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: .72rem; }
.selected-file strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file span { margin-left: auto; color: var(--muted); flex: none; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.upload-progress { height: 5px; background: #e4eae8; border-radius: 4px; overflow: hidden; }
.upload-progress span { display: block; width: 0; height: 100%; background: var(--teal); transition: width .2s; }
.preview-modal { width: min(880px, 100%); padding: 0; overflow: hidden; }
.preview-stage { min-height: 420px; max-height: 65vh; background: #14262c; display: grid; place-items: center; }
.preview-stage img, .preview-stage video { max-width: 100%; max-height: 65vh; }
.preview-stage audio { width: min(520px, 80%); }
.preview-stage .file-icon { width: 100px; height: 100px; border-radius: 25px; }
.preview-stage .file-icon svg { width: 48px; }
.preview-info { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.preview-info h2 { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; margin: 5px 0; }
.preview-info p { color: var(--muted); font-size: .72rem; margin: 0; }
.preview-actions { display: flex; gap: 8px; flex: none; }
.event-options { border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 10px; padding: 15px; }
.event-options legend { padding: 0 5px; font-size: .78rem; font-weight: 750; }
.event-options label { display: flex; align-items: center; gap: 8px; color: #56635f; font-size: .75rem; }
.event-options input { accent-color: var(--teal); }
.toast-stack { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { color: white; background: var(--navy); border-left: 3px solid #54d5a5; border-radius: 8px; box-shadow: var(--shadow); padding: 12px 15px; font-size: .78rem; animation: toast-in .25s ease; }
.toast--error { border-left-color: #ef7e76; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1050px) {
  .login-screen { grid-template-columns: 1fr 1fr; }
  .login-brand { padding: 42px; }
  .login-copy h1 { font-size: 3.7rem; }
  .developer-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .login-screen { display: block; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 28px 22px; }
  .mobile-brand { display: flex; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: translateX(0); }
  .main-content { width: 100%; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 14px; height: 66px; gap: 8px; }
  .search kbd, .top-upload { display: none; }
  .page { padding: 27px 16px 60px; }
  .page-heading { align-items: center; }
  .page-heading h1 { font-size: 2rem; }
  .page-heading p { font-size: .8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-icon { width: 35px; height: 35px; }
  .stat-card span { font-size: .64rem; }
  .stat-card strong { font-size: 1.25rem; }
  .content-toolbar { align-items: flex-end; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; max-width: calc(100vw - 125px); }
  .chip { white-space: nowrap; }
  .files-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .file-preview { height: 120px; }
  .file-info { padding: 10px; }
  .webhook-grid, .doc-aside { grid-template-columns: 1fr; }
  .endpoint-list > div { grid-template-columns: 58px 1fr; }
  .endpoint-list p { grid-column: 2; }
  .modal-fields { grid-template-columns: 1fr; }
  .preview-stage { min-height: 300px; }
  .preview-info { display: block; }
  .preview-actions { margin-top: 15px; }
}
@media (max-width: 430px) {
  .stats-grid { display: flex; overflow-x: auto; }
  .stat-card { min-width: 150px; }
  .files-grid { grid-template-columns: 1fr 1fr; }
  .file-preview { height: 108px; }
  .content-toolbar select { max-width: 110px; }
  .view-actions { display: none; }
  .modal { padding: 22px 18px; }
  .preview-modal { padding: 0; }
}
