.portal-top { padding: 0 42px; min-height: 96px; display: flex; align-items: center; gap: 42px; border-bottom: 1px solid var(--line); }
.portal-top .tools { margin-left: auto; }
.back-site { font-size: 13px; text-decoration: none; color: var(--muted); }
.back-site:hover { color: var(--ink); }
.small-button { padding: 10px 14px; min-height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.small-button:hover:not(:disabled) { background: var(--soft); border-color: var(--muted); }
.login-layout { max-width: 1500px; margin: 30px auto; padding: 0 30px; display: grid; grid-template-columns: 1fr 1fr; min-height: min(720px,calc(100svh - 155px)); }
.login-story { position: relative; background: var(--lilac); border-radius: 28px; padding: 45px; display: flex; flex-direction: column; overflow: hidden; }
.login-story h1 { font-size: clamp(37px,4vw,60px); max-width: 460px; margin-top: 24px; z-index: 1; }
.login-story img { width: min(84%,420px); align-self: center; margin-top: -15px; flex: 1; min-height: 0; object-fit: contain; }
.login-story>p:last-child { max-width: 340px; font-size: 14px; color: var(--muted); }
.login-area { display: flex; justify-content: center; align-items: center; padding: 50px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: clamp(30px,3vw,42px); margin: 18px 0; }
.login-card>.quiet { font-size: 14px; margin-bottom: 28px; max-width: 355px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 500; }
.field input,.field select { width: 100%; min-height: 52px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 15px; }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.password-field { position: relative; }
.password-field input { padding-right: 100px; }
.reveal-password { position: absolute; top: 4px; right: 5px; bottom: 4px; padding: 0 12px; border: none; background: transparent; border-radius: 8px; color: var(--muted); font-size: 12px; }
.reveal-password:hover { background: var(--soft); }
.form-error { min-height: 23px; font-size: 13px; color: var(--danger); margin: -2px 0 14px; }
.full-width { width: 100%; }
.login-note { text-align: center; font-size: 12px; margin-top: 21px; color: var(--muted); }
.account-layout { display: grid; grid-template-columns: 254px minmax(0,1fr); max-width: 1600px; margin-inline: auto; min-height: calc(100svh - 97px); }
.sidebar { border-right: 1px solid var(--line); padding: 38px 24px 25px; display: flex; flex-direction: column; }
.sidebar>.eyebrow { color: var(--muted); padding-left: 13px; font-size: 11px; }
.sidebar-title { font: 500 23px/1.18 var(--display); letter-spacing: -.03em; padding: 17px 13px 28px; }
.account-tabs { display: flex; flex-direction: column; gap: 7px; }
.tab-button { min-height: 70px; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 500; }
.tab-button small { display: block; color: var(--muted); font-weight: 400; font-size: 10px; margin-top: 4px; }
.tab-button[aria-selected='true'] { background: var(--lilac); }
.tab-button:hover { border-color: var(--line); }
.nav-symbol { width: 24px; font-size: 23px; font-weight: 400; text-align: center; }
.device-count { border: 1px solid var(--line); min-width: 22px; height: 22px; font-size: 10px; border-radius: 50%; display: grid; place-items: center; margin-left: auto; }
.sidebar-note { margin-top: auto; padding: 70px 13px 5px; font-size: 13px; color: var(--muted); }
.little-spark { color: var(--accent); font-size: 40px; display: block; margin-bottom: 12px; }
.account-main { padding: 44px clamp(28px,4vw,70px) 0; min-width: 0; }
.account-heading { margin-bottom: 34px; }
.account-heading .eyebrow { color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.account-heading h1 { font-size: clamp(30px,3.5vw,47px); margin-bottom: 13px; }
.account-heading>.quiet { font-size: 14px; }
.app-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--panel-radius); overflow: hidden; }
.app-intro { padding: 35px 38px; display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 20px; }
.app-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.app-intro h2 { font-size: clamp(34px,4vw,53px); margin: 12px 0 17px; }
.app-intro p { font-size: 15px; color: var(--muted); max-width: 510px; }
.app-emblem { width: 160px; height: 170px; background: var(--lilac); border-radius: 50% 50% 45% 55%; display: grid; place-items: center; transform: rotate(8deg); }
.app-emblem svg { width: 88px; height: 110px; }
.connect-emblem { background: var(--green); }
.app-features { margin: 0 38px 28px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 26px; }
.app-features li { display: flex; gap: 9px; align-items: baseline; font-size: 13px; }
.app-features li::before { content: '✓'; color: var(--success); font-weight: 600; }
.download-area { border-top: 1px solid var(--line); padding: 26px 38px; background: var(--soft); }
.download-heading { font-size: 12px; color: var(--muted); margin-bottom: 15px; }
.download-controls { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.platform-picker { display: flex; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.platform-button { border: none; background: transparent; border-radius: 8px; padding: 11px 17px; min-height: 44px; font-size: 13px; }
.platform-button[aria-pressed='true'] { background: var(--panel); box-shadow: 0 1px 3px #00000010; }
.platform-button:hover { background: var(--panel); }
.download-button { min-width: 238px; }
.download-note { margin-top: 10px; font-size: 12px; color: var(--muted); min-height: 19px; }
.help-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 4px; }
.help-strip h3 { font: 500 16px/1.4 var(--body); letter-spacing: 0; margin-bottom: 6px; }
.help-strip p { font-size: 12px; color: var(--muted); }
.help-strip button { flex-shrink: 0; }
.account-footer { border-top: 1px solid var(--line); padding: 23px 0; margin-top: 40px; display: flex; gap: 20px; align-items: center; color: var(--muted); font-size: 11px; }
.account-footer>span:first-child { font-weight: 700; color: var(--ink); }
.account-footer a { margin-left: auto; text-decoration: none; }
.devices-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 8px 0 27px; }
.account-layout[data-active='subscribe'] .account-heading { display: none; }
.devices-heading h1 { font-size: clamp(30px,3.5vw,47px); margin-bottom: 14px; }
.devices-heading p { font-size: 13px; }
.devices-heading>.button { font-size: 13px; padding-inline: 16px; flex-shrink: 0; }
.add-device-form { padding: 26px; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--lilac); }
.form-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.form-title h3 { font-size: 23px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.device-card { border: 1px solid var(--line); border-radius: 22px; margin-bottom: 22px; background: var(--panel); overflow: hidden; }
.device-overview { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 28px; }
.device-art { width: 120px; padding: 8px 0; background: var(--lilac); border-radius: 30px 12px 30px 12px; }
.device-art-phone { background: var(--green); border-radius: 12px 30px 12px 30px; }
.device-art svg { display: block; width: 100%; }
.device-wire { stroke: var(--accent); stroke-width: 5; }
.device-copy { background: var(--ink); color: var(--bg); font-size: 12px; gap: 14px; padding-inline: 17px; min-height: 46px; }
.device-copy:hover { background: var(--ink); box-shadow: 0 3px 0 var(--accent); }
.copy-icon { display: block; width: 17px; height: 17px; }
.device-header { list-style: none; display: flex; align-items: center; gap: 15px; padding: 16px 28px; font-size: 12px; font-weight: 500; background: var(--soft); border-top: 1px solid var(--line); }
.device-header::-webkit-details-marker { display: none; }
.device-header::after { content: '+'; font-size: 24px; margin-left: auto; color: var(--muted); }
.device-settings[open]>.device-header::after { content: '−'; }
.device-header:hover { background: var(--lilac); }
.settings-note { color: var(--muted); font-size: 11px; font-weight: 400; }
.device-name { font: 500 23px/1.25 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; margin-top: 8px; }
.device-meta { font-size: 11px; color: var(--muted); margin: 0; }
.empty-device-art { width: 135px; }
.device-card[data-entering='true'] { animation: device-enter .28s ease-out both; }
@keyframes device-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
[data-action='copy'] { position: relative; }
[data-action='copy'].is-copied { color: var(--success); background: var(--green); border-color: var(--green); }
.is-copied .action-label { visibility: hidden; }
.is-copied::after { content: attr(data-feedback); position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600; white-space: nowrap; }
.config-list { border-top: 1px solid var(--line); }
.config-item { padding: 17px 24px; border-bottom: 1px solid var(--line); }
.config-item:last-child { border-bottom: 0; }
.subscription-item { background: var(--green); }
.config-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.config-label { flex: 1; min-width: 130px; }
.config-label strong { font-size: 12px; font-weight: 600; display: block; }
.config-label small { color: var(--muted); font-size: 11px; display: block; overflow-wrap: anywhere; margin-top: 4px; }
.config-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.config-actions .small-button { background: var(--panel); min-width: 44px; }
.secret-box { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 15px; margin: 13px 0 0; font: 12px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.qr-box { padding: 16px; background: #FFFFFF; border-radius: 12px; max-width: 292px; margin-top: 15px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.generation-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
.inline-error { color: var(--danger); background: var(--danger-bg); padding: 13px; border-radius: 9px; margin-top: 13px; font-size: 12px; }
.export-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; padding: 35px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; }
.empty-state h3 { font-size: 24px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 400px; }
.connection-note { color: var(--muted); font-size: 12px; margin-top: 25px; max-width: 650px; }
.loading { min-height: 250px; display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--muted); font-size: 13px; }
.spinner { width: 23px; height: 23px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-message { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: min(520px,calc(100% - 32px)); background: var(--ink); color: var(--bg); padding: 15px 22px; border-radius: 12px; box-shadow: 0 8px 30px #00000020; font-size: 13px; z-index: 20; }
@media(max-width: 1100px) { .device-overview { grid-template-columns: 92px minmax(0,1fr); gap: 18px; } .device-art { width: 92px; grid-row: span 2; } .device-copy { grid-column: 2; justify-self: start; } .device-name { font-size: 21px; } .settings-note { display: none; } }
@media(max-width: 600px) { .device-overview { padding: 22px 18px; grid-template-columns: 72px minmax(0,1fr); gap: 16px; } .device-art { width: 72px; grid-row: auto; } .device-name { font-size: 20px; } .device-copy { grid-column: 1 / -1; justify-self: stretch; } }
@media(max-width: 1100px) { .account-layout { grid-template-columns: 225px minmax(0,1fr); } .sidebar { padding-inline: 16px; } .account-main { padding-inline: 28px; } .app-intro { padding: 28px; grid-template-columns: 1fr 125px; } .app-emblem { width: 120px; height: 130px; } .app-features { margin-inline: 28px; } .download-area { padding-inline: 28px; } .download-controls { flex-wrap: wrap; } .devices-heading { align-items: flex-start; flex-wrap: wrap; } }
@media(max-width: 900px) { .account-layout { grid-template-columns: 1fr; } .sidebar { padding: 20px 28px 0; border: none; } .sidebar>.eyebrow,.sidebar-title,.sidebar-note { display: none; } .account-tabs { flex-direction: row; gap: 8px; } .tab-button { min-height: 56px; padding: 12px; font-size: 13px; } .tab-button small { display: none; } .account-main { padding-top: 30px; } .login-layout { padding: 0 20px; gap: 10px; } .login-story { padding: 30px; } .login-area { padding: 35px 20px; } }
@media(max-width: 600px) { .portal-top { min-height: 83px; padding-inline: 20px; gap: 15px; } .back-site { display: none; } .login-layout { display: block; margin-top: 20px; padding: 0 20px; min-height: 0; } .login-story { padding: 24px; min-height: 160px; } .login-story h1 { font-size: 29px; max-width: 245px; margin-top: 15px; } .login-story img { display: none; } .login-story>p:last-child { display: none; } .login-story .eyebrow { font-size: 10px; } .login-area { padding: 34px 2px 45px; } .login-card { max-width: 100%; } .login-card h2 { font-size: 31px; } .sidebar { padding: 17px 16px 0; } .tab-button { padding: 10px 7px; font-size: 11px; gap: 7px; flex: 1; width: auto; } .nav-symbol { display: none; } .device-count { min-width: 18px; height: 18px; } .account-main { padding: 28px 20px 0; } .account-heading h1 { font-size: 31px; } .account-heading>.quiet { font-size: 13px; } .app-intro { padding: 25px 22px; grid-template-columns: 1fr; gap: 0; } .app-emblem { display: none; } .app-intro h2 { font-size: 42px; } .app-features { margin-inline: 22px; grid-template-columns: 1fr; gap: 12px; } .download-area { padding: 23px 22px; } .download-controls { align-items: stretch; gap: 14px; flex-direction: column; } .platform-picker { align-self: flex-start; } .download-button { min-width: 0; width: 100%; } .help-strip { align-items: flex-start; flex-direction: column; gap: 17px; } .account-footer { gap: 12px; flex-wrap: wrap; margin-top: 24px; } .account-footer>span:nth-child(2) { font-size: 10px; } .devices-heading { gap: 18px; } .devices-heading h1 { font-size: 32px; } .form-columns { grid-template-columns: 1fr; gap: 0; } .add-device-form { padding: 20px; } .device-header { padding: 18px; } .config-item { padding: 17px; } .config-row { gap: 12px; } .config-actions { width: 100%; } .config-actions .small-button { flex: 1; } .config-label { min-width: 100%; } .empty-state { padding: 25px 15px; } }
.platform-scope { color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin: 0 38px 24px; font-size: 13px; line-height: 1.6; }
@media(max-width: 1100px) { .platform-scope { margin-inline: 28px; } }
@media(max-width: 600px) { .platform-scope { margin-inline: 22px; } }
