@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Share+Tech+Mono&display=swap');
:root {
  color-scheme: dark;
  --bg: #05080f;
  --text: #eef4ff;
  --muted: #8899ac;
  --accent: #00a3ff;
  --line: rgba(255, 255, 255, 0.1);
  --success: #00ff9d;
  --danger: #ff4d6d;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font: 14px/1.6 'Inter', 'Microsoft JhengHei', system-ui, sans-serif; background-image: radial-gradient(circle at 50% 0%, #1a2035 0%, #05080f 80%); background-attachment: fixed; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: rgba(20, 25, 40, 0.6); backdrop-filter: blur(8px); cursor: pointer; transition: all 0.2s; }
button:hover:not(:disabled) { border-color: var(--accent); background: rgba(0, 163, 255, 0.1); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { background: var(--accent); border-color: var(--accent); color: #07111a; font-weight: 600; min-width: 110px; text-shadow: none; box-shadow: 0 4px 12px rgba(0, 163, 255, 0.25); }
.primary:hover:not(:disabled) { background: #33baff; box-shadow: 0 4px 16px rgba(0, 163, 255, 0.4); }
.danger, .message.error { color: var(--danger); }
.wrapper { width: min(960px, 100%); min-height: 100svh; margin: auto; padding: 24px 32px; display: flex; flex-direction: column; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand span { color: var(--text); font: 26px var(--mono); font-weight: 600; letter-spacing: -0.5px; }
.brand small { color: var(--accent); font: 12px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.account { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--muted); font-size: 13px; }
#accountName { overflow-wrap: anywhere; }
a { color: var(--accent); overflow-wrap: anywhere; text-decoration: none; transition: color 0.2s; }
a:hover { color: #33baff; }
main { flex: 1; padding: 36px 0 48px; min-width: 0; }
.heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.5px; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 16px; }
dt, .constraint { color: var(--muted); font-size: 12px; }
dd { margin: 4px 0 0; font: 18px/1.5 var(--mono); color: var(--text); }
.constraint { margin: 10px 0 20px; overflow-wrap: anywhere; }
.message { margin: 12px 0; overflow-wrap: anywhere; }
.message:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.duration { margin: 24px 0; }
legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.segments { display: flex; gap: 8px; flex-wrap: wrap; }
.segments label { display: flex; align-items: center; gap: 7px; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; cursor: pointer; font-size: 13px; background: rgba(20, 25, 40, 0.4); backdrop-filter: blur(8px); transition: all 0.2s; }
.segments label:hover { border-color: rgba(255, 255, 255, 0.3); }
.segments label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: rgba(0, 163, 255, 0.1); }
.segments input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
label { display: grid; gap: 8px; margin: 14px 0; }
input:not([type=radio]), textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: rgba(10, 15, 25, 0.6); backdrop-filter: blur(8px); color: var(--text); transition: border-color 0.2s; }
input:not([type=radio]):focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
#customMinutesLabel, #codeLabel { max-width: 420px; }
.file-label { color: var(--muted); }
input::file-selector-button { background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; margin-right: 12px; cursor: pointer; transition: all 0.2s; }
input::file-selector-button:hover { background: rgba(255, 255, 255, 0.1); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-list { list-style: none; padding: 0; margin: 14px 0 20px; }
.file-list > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.file-row { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; }
.file-info { min-width: 0; flex: 1; }
.file-name { overflow-wrap: anywhere; font-weight: 500; font-size: 15px; }
.file-meta, .file-state { margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.file-state.success { color: var(--success); }
.file-state.error { color: var(--danger); }
.file-row .actions { justify-content: flex-end; flex: none; }
.file-row button { padding: 5px 10px; min-height: 36px; font-size: 12px; }
.short-url { margin: 8px 0 0; font: 15px/1.6 var(--mono); overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: 6px; margin: 12px 0 4px; accent-color: var(--accent); background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; border: none; }
progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.1); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.empty { color: var(--muted); font-size: 13px; padding: 12px 0; }
footer { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 12px var(--mono); }
dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; color: var(--text); background: rgba(15, 20, 30, 0.85); backdrop-filter: blur(24px); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
dialog::backdrop { background: rgb(0 0 0 / .65); backdrop-filter: blur(4px); }
dialog .actions { justify-content: flex-end; margin-top: 20px; }
@media (max-width: 600px) { .wrapper { padding: 20px 18px; } main { padding-top: 26px; } h1 { font-size: 22px; } .brand { gap: 8px; } .brand span { font-size: 22px; } .limits { gap: 12px; grid-template-columns: 1fr 1fr; } .limits > div:last-child { grid-column: 1 / -1; } .file-row { flex-direction: column; gap: 10px; } .file-row .actions { justify-content: flex-start; } .section-heading .actions { width: 100%; } dialog { padding: 20px; } }
