:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #070a12;
    color: #e6edf7;
    --bg: #070a12;
    --panel: #0f1624;
    --panel-2: #121b2c;
    --panel-3: #172033;
    --border: #273449;
    --border-strong: #3b82f6;
    --text: #e6edf7;
    --muted: #91a2ba;
    --muted-2: #6f819a;
    --accent: #60a5fa;
    --accent-2: #2563eb;
    --danger: #fb7185;
    --danger-bg: rgba(251, 113, 133, 0.1);
    --success: #6ee7b7;
    --success-bg: rgba(16, 185, 129, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 32rem), radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.11), transparent 28rem), var(--bg); }
body { min-height: 100%; margin: 0; background: transparent; }
a { color: #9cc9ff; text-decoration: none; }
a:hover { color: #bfdbfe; text-decoration: underline; }
button, input { font: inherit; }
button { border: 0; border-radius: 12px; padding: 0.68rem 0.95rem; background: linear-gradient(180deg, #3b82f6, #2563eb); color: white; cursor: pointer; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25); }
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
input { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 0.72rem 0.8rem; background: #0a101b; color: var(--text); outline: none; }
input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22); }
input::placeholder { color: #5d708a; }
code { overflow-wrap: anywhere; color: #bfdbfe; }

.shell { width: min(1440px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 52px; }
.hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.hero h1 { margin: 0.1rem 0 0.35rem; font-size: clamp(2.15rem, 5vw, 3.75rem); line-height: 0.96; letter-spacing: -0.055em; }
.eyebrow { margin: 0; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.16em; color: #7db7ff; font-weight: 800; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 0.84rem; line-height: 1.45; }
.runtime-box { min-width: min(460px, 100%); background: linear-gradient(180deg, rgba(18, 27, 44, 0.94), rgba(13, 19, 32, 0.94)); border: 1px solid var(--border); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.runtime-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.runtime-flags span { background: #111d31; border: 1px solid #293a55; border-radius: 999px; padding: 0.28rem 0.62rem; font-size: 0.78rem; color: #bdd0ea; }
.grid { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 18px; align-items: start; }
.card { background: linear-gradient(180deg, rgba(18, 27, 44, 0.96), rgba(12, 18, 30, 0.98)); border: 1px solid var(--border); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2, .add-share h3 { margin: 0; letter-spacing: -0.02em; }
.secondary, .link-button { background: #12223a; border: 1px solid #29476f; color: #bfdbfe; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
.notice { border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 16px; border: 1px solid; }
.notice.success { color: var(--success); background: var(--success-bg); border-color: rgba(110, 231, 183, 0.32); }
.notice.error { color: #fecdd3; background: var(--danger-bg); border-color: rgba(251, 113, 133, 0.35); }
.share-list { display: flex; flex-direction: column; gap: 10px; }
.share-item { border: 1px solid var(--border); background: rgba(10, 16, 27, 0.62); border-radius: 16px; padding: 11px; }
.share-item.active { border-color: #60a5fa; background: linear-gradient(180deg, rgba(37, 99, 235, 0.20), rgba(14, 23, 40, 0.72)); }
.share-button { width: 100%; display: grid; gap: 4px; text-align: left; background: transparent; color: inherit; padding: 0; box-shadow: none; }
.share-button:hover { filter: none; }
.share-name { font-weight: 800; color: #f8fbff; }
.share-path { color: var(--muted-2); font-size: 0.82rem; overflow-wrap: anywhere; }
.share-actions { display: flex; gap: 12px; margin-top: 9px; flex-wrap: wrap; }
.danger-text { background: transparent; color: var(--danger); padding: 0; border-radius: 0; box-shadow: none; }
.add-share { margin-top: 18px; display: grid; gap: 11px; border-top: 1px solid var(--border); padding-top: 17px; }
.add-share label { display: grid; gap: 6px; font-weight: 750; color: #c9d7ea; }
.file-head { align-items: flex-start; }
.path-line { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.inline-form { display: flex; gap: 8px; min-width: min(540px, 100%); }
.drop-zone { position: relative; display: grid; place-items: center; gap: 7px; text-align: center; border: 2px dashed #355175; border-radius: 22px; padding: 34px 18px; background: rgba(10, 16, 27, 0.78); margin: 12px 0 18px; color: #dce8f8; transition: border-color 160ms ease, background 160ms ease; }
.drop-zone:hover { border-color: #60a5fa; background: rgba(15, 29, 51, 0.88); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone small { color: var(--muted); }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th, .file-table td { padding: 0.84rem 0.55rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.file-table th { color: #9fb0c8; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.065em; }
.file-table tr:hover td { background: rgba(96, 165, 250, 0.045); }
.file-table .right { text-align: right; }
.entry-button { background: transparent; color: #9cc9ff; padding: 0; border-radius: 0; text-align: left; box-shadow: none; }
.entry-button:hover { color: #bfdbfe; filter: none; }
.empty { padding: 18px 0; }


.endpoint-card { margin-bottom: 18px; }
.compact { margin: 0.25rem 0 0; }
.endpoint-grid, .url-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.endpoint-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.endpoint-grid label, .url-panel label { display: grid; gap: 7px; color: #c9d7ea; font-weight: 750; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.copy-row input { font-size: 0.86rem; color: #bfdbfe; }
.button-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tiny { padding: 0.34rem 0.55rem; border-radius: 9px; font-size: 0.78rem; }
.mini-url { margin-top: 8px; padding: 8px; border-radius: 12px; background: rgba(8, 13, 23, 0.7); border: 1px solid rgba(39, 52, 73, 0.8); display: grid; gap: 3px; }
.mini-url span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mini-url code { font-size: 0.78rem; }
.url-cell { min-width: min(520px, 46vw); }
.url-cell code { display: block; margin-top: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: #0a101b; font-size: 0.78rem; line-height: 1.35; }
.file-url-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }


@media (max-width: 920px) {
    .hero, .grid, .toolbar, .endpoint-grid, .url-panel { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
    .inline-form { flex-direction: column; min-width: 0; }
}
