:root { color-scheme: light; font-family: Inter, "Segoe UI", Arial, sans-serif; color: #1d2933; background: #f5f7f8; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.hidden { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; color: #314047; }
.brand strong { font-weight: 700; color: #142a32; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; background: #096d6b; color: white; font-weight: 800; font-size: 17px; border-radius: 5px; }
.primary { height: 42px; border: 1px solid #087574; background: #087574; color: #fff; border-radius: 5px; padding: 0 18px; font-weight: 600; white-space: nowrap; }
.primary:hover { background: #075d5c; }
input { border: 1px solid #cad4d8; border-radius: 5px; background: #fff; padding: 10px 12px; color: #1d2933; min-width: 0; outline: none; }
input:focus { border-color: #078482; box-shadow: 0 0 0 3px #079b9926; }
.login-view { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: #eef3f3; }
.login-panel { width: min(100%, 390px); background: #fff; padding: 34px; border: 1px solid #d9e1e2; border-radius: 7px; box-shadow: 0 12px 35px #1d29330c; }
.login-panel h1 { margin: 42px 0 24px; font-size: 24px; font-weight: 700; }
.stack { display: grid; gap: 16px; }
.stack label, .new-link label { display: grid; gap: 7px; color: #52636b; font-size: 13px; font-weight: 600; }
.stack input, .new-link input { width: 100%; }
.error { color: #b44535; margin: 0; min-height: 18px; font-size: 13px; }
.app-view { height: 100dvh; display: flex; flex-direction: column; min-height: 440px; }
.topbar { height: 54px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e0e6e8; background: #fff; flex: none; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.node { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #35645c; }
.node-dot { width: 7px; height: 7px; border-radius: 50%; background: #28a67f; box-shadow: 0 0 0 3px #28a67f22; }
.account-button { display: inline-flex; gap: 7px; align-items: center; padding: 5px 7px; border: 0; border-radius: 4px; background: transparent; color: #34444d; font-size: 13px; }
.account-button:hover, .icon-button:hover { background: #eaf0f2; }
.account-button img, .icon-button img, .go-button img { width: 17px; height: 17px; }
.browserbar { height: 60px; flex: none; padding: 8px 16px; display: flex; align-items: center; gap: 12px; background: #f9fbfb; border-bottom: 1px solid #dbe4e6; }
.nav-controls { display: flex; align-items: center; gap: 3px; }
.icon-button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; display: grid; place-items: center; }
.address-form { display: flex; align-items: center; gap: 9px; height: 42px; flex: 1; background: #fff; border: 1px solid #cfdade; border-radius: 5px; padding: 0 5px 0 12px; min-width: 0; }
.address-form:focus-within { border-color: #078482; box-shadow: 0 0 0 3px #079b9920; }
.address-form > img { width: 16px; height: 16px; opacity: .65; flex: none; }
.address-form input { border: 0; box-shadow: none; flex: 1; width: 100%; padding: 0; background: transparent; font-size: 14px; }
.address-form input:focus { box-shadow: none; }
.go-button { border: 0; width: 32px; height: 32px; flex: none; border-radius: 4px; display: grid; place-items: center; background: #e9f4f3; }
.go-button:hover { background: #d5eae8; }
.status-line { padding: 8px 18px; color: #ad4c3c; background: #fff0ec; border-bottom: 1px solid #efd1c8; font-size: 13px; flex: none; }
.browser-content { position: relative; flex: 1; min-height: 0; background: #fff; }
.start-view, .frame-container { width: 100%; height: 100%; }
.start-view { display: flex; align-items: flex-start; justify-content: center; padding: min(15vh, 110px) 20px 30px; }
.start-inner { width: min(100%, 690px); }
.start-symbol { width: 46px; height: 46px; background: #e6f2ef; border-radius: 7px; display: grid; place-items: center; }
.start-symbol img { width: 25px; height: 25px; }
.start-view h1 { margin: 22px 0 24px; font-size: 28px; letter-spacing: 0; }
.start-form { display: flex; gap: 8px; width: 100%; }
.start-form input { flex: 1; font-size: 16px; min-height: 46px; }
.start-form .primary { height: 46px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.quick-links button { border: 1px solid #d7e1e2; background: #fff; border-radius: 5px; padding: 10px 13px; color: #42575b; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.quick-links button:hover { border-color: #63a8a0; color: #087574; }
.quick-links img { width: 14px; height: 14px; }
.frame-container iframe { border: 0; width: 100%; height: 100%; display: block; background: #fff; }
.drawer-backdrop { position: fixed; inset: 0; background: #1a30356b; z-index: 10; }
.account-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(100%, 440px); background: #fff; z-index: 11; box-shadow: -14px 0 32px #142a3225; display: flex; flex-direction: column; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 19px; border-bottom: 1px solid #dfe7e9; flex: none; }
.drawer-header h2 { margin: 0; font-size: 17px; }
.drawer-tabs { display: flex; border-bottom: 1px solid #dfe7e9; padding: 0 15px; flex: none; }
.drawer-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; color: #687980; padding: 13px 15px 11px; font-size: 13px; }
.drawer-tabs button.active { border-bottom-color: #087574; color: #087574; font-weight: 700; }
.drawer-body { overflow: auto; padding: 23px 22px 40px; }
.tab-panel h3 { margin: 0 0 16px; font-size: 15px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-heading span { color: #778890; font-size: 11px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }
.inline-form .primary { flex: none; }
.new-link { border: 1px solid #c6ded7; background: #f0f8f4; border-radius: 5px; padding: 13px; margin-top: 16px; display: flex; gap: 8px; align-items: end; }
.new-link label { flex: 1; min-width: 0; }
.new-link button { height: 39px; border: 1px solid #b8ccc6; border-radius: 4px; background: #fff; padding: 0 10px; }
.list { margin-top: 17px; border-top: 1px solid #e4eaeb; }
.list-row { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e4eaeb; }
.list-row > div:first-child { flex: 1; min-width: 80px; }
.list-row strong { display: block; font-size: 13px; font-weight: 600; }
.list-row small { display: block; color: #849096; margin-top: 4px; font-size: 11px; }
.list-row button { border: 0; background: transparent; color: #9d4b42; font-size: 12px; padding: 7px; flex: none; }
.list-row button:hover { text-decoration: underline; }
.list-row button.login-link-action { color: #087574; }
.list-empty { font-size: 13px; color: #7b8b90; padding: 19px 0; }
.users-heading { margin-top: 33px; }
.user-links { margin-top: 28px; border-top: 1px solid #dfe7e9; padding-top: 22px; }
.user-links .section-heading { align-items: center; }
.user-links .section-heading h3 { margin: 0; }
.small-command { border: 0; background: transparent; color: #087574; padding: 8px 0; font-size: 13px; font-weight: 600; }
.small-command:hover { text-decoration: underline; }
.text-button { border: 0; background: none; color: #a64d3c; padding: 0; margin-top: 28px; }
.drawer-message { color: #28745d; font-size: 13px; min-height: 18px; margin-top: 20px; }
@media (max-width: 680px) {
  .topbar { padding: 0 12px; }
  .topbar-right { gap: 8px; }
  .browserbar { height: auto; min-height: 58px; padding: 6px 8px; gap: 5px; }
  .nav-controls { gap: 0; }
  .nav-controls .icon-button { width: 28px; height: 32px; }
  #forward-button, #refresh-button { display: none; }
  .share-button { width: 31px; }
  .address-form { height: 38px; padding-left: 8px; }
  .address-form input { font-size: 13px; }
  .start-view { padding-top: 55px; }
  .start-view h1 { font-size: 23px; }
  .start-form { flex-direction: column; }
  .start-form .primary { width: 100%; }
  .list-row { flex-wrap: wrap; padding: 9px 0; gap: 4px 8px; }
}
