:root { color-scheme: light; --primary: #007aff; --ink: #1c1c1e; --muted: #6e6e73; --line: #e5e5ea; --bg: #f2f2f7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; min-height: 44px; padding: 10px 18px; border-radius: 12px; background: #edf4ff; color: var(--primary); cursor: pointer; transition: background .16s, transform .16s; white-space: nowrap; }
button:hover { background: #deebff; }
button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: default; transform: none; }
button.primary { background: var(--primary); color: #fff; font-weight: 600; }
button.primary:hover { background: #0062cc; }
button.wide { width: 100%; min-height: 48px; }
:focus-visible { outline: 3px solid #72b6ff; outline-offset: 3px; }
input, textarea { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 12px; background: var(--bg); color: var(--ink); padding: 13px 14px; outline: none; }
input:focus, textarea:focus { border-color: var(--primary); background: #f6f9ff; }
input::placeholder, textarea::placeholder { color: #8e8e93; }
textarea { min-height: 104px; resize: vertical; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 72px; max-width: 1160px; margin: 0 auto; padding: 12px 32px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 700; }
.brand img { display: block; width: 32px; height: 32px; }
.brand span { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; padding-left: 16px; border-left: 1px solid #d1d1d6; }
.connection { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #aeaeb2; }
.connection.online i { background: #248a3d; }
main { max-width: 1160px; margin: 0 auto; padding: 44px 32px 24px; animation: enter .3s ease-out both; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 36px; line-height: 1.25; letter-spacing: -1px; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.4; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.page-heading p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.platform-label { color: var(--muted); font-size: 13px; }
.workspace { display: grid; grid-template-columns: 304px minmax(0, 1fr); gap: 24px; align-items: start; }
.surface { background: #fff; border-radius: 20px; }
.account-panel { padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.subtle { color: var(--muted); font-size: 13px; }
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 8px; font-size: 14px; }
.account-name { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 18px; overflow-wrap: anywhere; }
.aside-note { color: var(--muted); font-size: 12px; line-height: 1.8; padding: 16px 12px; }
.activity-panel { overflow: hidden; min-height: 416px; }
.activity-heading { padding: 24px 24px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.activity-heading p { margin-top: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px 20px; gap: 12px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg); }
.segmented button { background: transparent; color: var(--muted); min-height: 36px; padding: 6px 18px; border-radius: 8px; font-size: 13px; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px #00000012; font-weight: 600; }
button.text-button { background: transparent; padding: 8px 0 8px 12px; font-size: 13px; }
.text-button span { margin-left: 8px; font-size: 20px; }
.act { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-top: 1px solid var(--line); }
.act-main { flex: 1; min-width: 0; }
.act-kind { font-size: 12px; color: var(--primary); display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.act-kind::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.act-title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.act-course { color: var(--muted); font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
.act-state { color: var(--muted); font-size: 12px; margin-left: 12px; }
.act.ok .act-kind, .act.ok .act-state { color: #248a3d; }
.act.end .act-kind, .act.end .act-title { color: var(--muted); }
.sign-button { padding: 8px 20px; border-radius: 22px; }
.empty { padding: 54px 24px 64px; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #d1d1d6; border-radius: 50%; color: #8e8e93; margin: 0 auto 18px; font-size: 23px; }
.empty p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.course-panel { margin: 0 24px 20px; padding: 4px 16px; border-radius: 14px; background: var(--bg); max-height: 240px; overflow-y: auto; }
.course-row { padding: 14px 0; font-size: 14px; }
.course-row + .course-row { border-top: 1px solid #dcdce1; }
.course-row p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.logs { margin-top: 24px; padding: 0 24px; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; cursor: pointer; font-size: 15px; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .subtle::after { content: '⌄'; display: inline-block; margin-left: 14px; }
details[open] summary .subtle::after { transform: rotate(180deg); }
.log-toolbar { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
#log { margin: 0; padding: 16px; max-height: 260px; min-height: 100px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #505057; background: #f7f7fa; border-radius: 12px; font: 12px/1.8 ui-monospace, Consolas, monospace; }
details[open] { padding-bottom: 24px; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 28px 4px 0; font-size: 12px; color: var(--muted); }
dialog { border: 0; padding: 24px; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 24px; color: var(--ink); box-shadow: 0 24px 100px #00000024; }
dialog::backdrop { background: #0005; backdrop-filter: blur(3px); }
dialog[open] { animation: enter .2s ease-out; }
.dialog-grabber { width: 36px; height: 4px; border-radius: 4px; background: #d1d1d6; margin: -10px auto 20px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.dialog-head p { margin-top: 7px; }
.close-button { border-radius: 50%; width: 44px; height: 44px; flex: 0 0 auto; font-size: 27px; padding: 0; background: var(--bg); color: var(--muted); }
.form-hint { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.coordinate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-result { margin: 16px 0; padding: 12px 14px; color: #b91c1c; background: #fff0f0; border-radius: 12px; font-size: 14px; }
.toast { position: fixed; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #1c1c1ef2; color: #fff; padding: 13px 22px; max-width: calc(100% - 32px); border-radius: 16px; font-size: 14px; box-shadow: 0 8px 32px #0002; z-index: 10; }
[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .topbar { min-height: 64px; padding: 12px 20px; }
  main { padding: 28px 16px 24px; }
  h1 { font-size: 30px; }
  .page-heading { margin: 0 4px 24px; }
  .platform-label { display: none; }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .account-panel, .activity-heading { padding: 22px; }
  .aside-note { display: none; }
  .activity-panel { min-height: 320px; }
  .toolbar { padding: 0 20px 18px; }
  .act { padding: 20px; gap: 12px; }
  .logs { margin-top: 16px; padding: 0 20px; }
  footer { flex-direction: column; align-items: center; gap: 6px; padding-top: 24px; }
  dialog { margin: auto auto 12px; padding: 24px; border-radius: 24px; max-height: calc(100dvh - 24px); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
