:root {
  color-scheme: dark !important;
  --bg-app: #0d0d0f;
  --bg-sidebar: #131316;
  --bg-list: #18181c;
  --bg-detail: #1c1c21;
  --bg-card: #222228;
  --bg-input: #1e1e24;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-active: rgba(255, 255, 255, 0.1);

  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-focus: #0A84FF;
  --border-subtle: rgba(255, 255, 255, 0.14);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;

  
  --apple-blue: #0A84FF;
  --apple-blue-hover: #0071e3;
  --apple-green: #30D158;
  --apple-orange: #FF9F0A;
  --apple-red: #FF453A;
  --apple-purple: #BF5AF2;

  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.65);
}

html {
  color-scheme: dark !important;
  background-color: var(--bg-app);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

::placeholder {
  color: #6e6e73 !important;
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #f5f5f7 !important;
  -webkit-box-shadow: 0 0 0px 1000px #1e1e24 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body.apple-dark {
  font-family: var(--font-system);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.45;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
}

.apple-window-bar {
  height: 38px;
  background: #111114;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  -webkit-app-region: drag;
  z-index: 9999;
  position: relative;
  flex-shrink: 0;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.15s ease, filter 0.15s ease;
  position: relative;
}

.traffic-light-close { background-color: #FF5F56; border: 1px solid #E0443E; }
.traffic-light-min { background-color: #FFBD2E; border: 1px solid #DEA123; }
.traffic-light-max { background-color: #27C93F; border: 1px solid #1AAB29; }

.traffic-symbol {
  opacity: 0;
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 1.2;
  transition: opacity 0.15s ease;
}

.traffic-lights:hover .traffic-symbol {
  opacity: 1;
}

.traffic-light:active {
  filter: brightness(0.85);
}

.window-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  pointer-events: none;
}

.window-app-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}

.window-bar-spacer {
  width: 52px;
}

.brand-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.header-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: 0.9rem;
  color: inherit;
}

input, textarea {
  user-select: text;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

.animate-fade-in {
  animation: appleFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
  animation: appleScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appleFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes appleScaleUp {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.status-indicator-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--apple-green);
  margin-right: 6px;
}

.glass-panel {
  background: rgba(28, 28, 33, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
}

.screen {
  position: absolute;
  top: 38px;
  left: 0;
  width: 100%;
  height: calc(100% - 38px);
}

#screen-unlock, #screen-setup {
  background: radial-gradient(circle at 50% 15%, #18181f 0%, #0d0d0f 75%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.setup-card {
  max-width: 480px;
}

.brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.vault-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  margin-bottom: 14px;
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

.security-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.input-text, .input-select, .input-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.88rem;
  color-scheme: dark !important;
}

.input-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.input-select option, select option {
  background-color: #1e1e24 !important;
  color: #f5f5f7 !important;
  padding: 10px 12px;
}

.input-select option:hover, select option:hover,
.input-select option:focus, select option:focus {
  background-color: #2c2c36 !important;
  color: #ffffff !important;
}

.input-select option:checked, select option:checked {
  background-color: var(--apple-blue) !important;
  color: #ffffff !important;
}

.input-textarea {
  resize: vertical;
  min-height: 64px;
}

.input-text:focus, .input-select:focus, .input-textarea:focus {
  border-color: var(--apple-blue);
  background: rgba(255, 255, 255, 0.08);
}

.usb-input-group {
  display: flex;
  gap: 6px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 36px;
  font-family: var(--font-mono);
}

.btn-toggle-visibility {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.btn-toggle-visibility:hover {
  color: var(--text-primary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  margin-top: 2px;
}

.status-indicator.status-success {
  background: rgba(48, 209, 88, 0.08);
  color: var(--apple-green);
  border: 1px solid rgba(48, 209, 88, 0.2);
}

.status-indicator.status-warning {
  background: rgba(255, 159, 10, 0.08);
  color: var(--apple-orange);
  border: 1px solid rgba(255, 159, 10, 0.2);
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

.error-message {
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.25);
  color: var(--apple-red);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-align: center;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--apple-blue);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
}

.btn-icon {
  padding: 8px;
  min-width: 36px;
}

.btn-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 0;
}

.btn-icon-circle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--apple-blue);
  font-size: 0.78rem;
  padding: 2px 4px;
}

.btn-text-link:hover {
  text-decoration: underline;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.82rem;
}

.auth-footer .divider {
  color: var(--text-tertiary);
}

.strength-meter-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.strength-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.25s ease, background-color 0.25s ease;
  background-color: var(--apple-red);
}

.strength-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-app);
}

.app-header {
  height: 54px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-icon {
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.header-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.badge-usb-active {
  display: flex;
  align-items: center;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.18);
  color: var(--apple-green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.header-search {
  flex: 1;
  max-width: 440px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 7px 30px 7px 32px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.15s;
}

.search-box input:focus {
  border-color: var(--apple-blue);
  background: rgba(255, 255, 255, 0.08);
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.dashboard-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 255px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  padding: 10px 10px 24px 10px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 10px;
}

.sidebar-heading {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 0 8px 4px 8px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--apple-blue);
  color: #ffffff;
  font-weight: 500;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  opacity: 0.85;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 500;
}

.nav-item.active .nav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.security-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}

.health-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 500;
}

.health-badge {
  font-size: 0.68rem;
  color: var(--apple-green);
  background: rgba(48, 209, 88, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.health-desc {
  display: none;
}

.sidebar-bottom-info {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

.hardware-lock-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.hw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hw-title-row {
  display: flex;
  align-items: center;
}

.hw-card-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hw-status-badge {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--apple-green);
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.25);
  padding: 1px 5px;
  border-radius: 5px;
}

.hw-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hw-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.7rem;
}

.hw-info-label {
  color: var(--text-tertiary);
  font-weight: 500;
  flex-shrink: 0;
}

.hw-info-val {
  color: var(--text-secondary);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-info-val.truncate {
  max-width: 140px;
}

.hw-code-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #5ac8fa;
  background: rgba(90, 200, 250, 0.1);
  border: 1px solid rgba(90, 200, 250, 0.2);
  padding: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}

.hw-code-badge:hover {
  background: rgba(90, 200, 250, 0.25);
  color: #ffffff;
}

.entries-column {
  width: 320px;
  background: var(--bg-list);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.column-header {
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

.column-header h2 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.item-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.entries-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s ease;
}

.entry-card:hover {
  background: var(--bg-hover);
}

.entry-card.active {
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(10, 132, 255, 0.3);
}

.entry-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.entry-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.entry-row-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-card-title {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-card.active .entry-card-title {
  color: #ffffff;
  font-weight: 600;
}

.entry-fav-star {
  color: var(--apple-orange);
  font-size: 0.75rem;
}

.entry-card-user {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-quick-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.entry-card:hover .entry-quick-actions,
.entry-card.active .entry-quick-actions {
  opacity: 1;
}

.btn-entry-quick {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: var(--radius-xs);
  padding: 5px;
  color: var(--text-secondary);
}

.btn-entry-quick:hover {
  background: var(--apple-blue);
  color: #ffffff;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 60%;
  color: var(--text-tertiary);
  padding: 20px;
  gap: 8px;
}

.empty-state h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-column {
  flex: 1;
  background: var(--bg-detail);
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
}

.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-tertiary);
  max-width: 280px;
  margin: 0 auto;
  gap: 10px;
  font-size: 0.85rem;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.detail-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-big-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
}

.detail-title-group h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.detail-header-actions {
  display: flex;
  gap: 6px;
}

.detail-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

.field-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-title {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

.field-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  word-break: break-all;
}

.field-value.link {
  color: var(--apple-blue);
  text-decoration: none;
  cursor: pointer;
}

.field-value.link:hover {
  text-decoration: underline;
}

.field-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.copy-progress-bar {
  height: 2px;
  background: var(--apple-blue);
  width: 100%;
  animation: shrinkProgress 30s linear forwards;
}

@keyframes shrinkProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-detail);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  box-shadow: var(--shadow-modal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.template-selector-section {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.template-section-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 6px;
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.template-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.template-chip.active {
  background: var(--apple-blue);
  border-color: var(--apple-blue);
  color: #ffffff;
  font-weight: 500;
}

.custom-fields-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-fields-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-field-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 32px;
  gap: 6px;
  align-items: center;
}

.generator-modal {
  max-width: 460px;
}

.generator-preview-box {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.generator-output {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.generator-metrics {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border-hairline);
}

.metric-item {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
}

.metric-label {
  color: var(--text-tertiary);
}

.metric-val {
  font-weight: 500;
}

.score-excellent {
  color: var(--apple-green);
}

.generator-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-val {
  font-weight: 600;
  color: var(--apple-blue);
  font-family: var(--font-mono);
}

.input-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.control-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-transform: none;
}

.checkbox-container input {
  accent-color: var(--apple-blue);
  width: 15px;
  height: 15px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-group h3 {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.setting-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 80%;
}

.setting-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.setting-subtitle {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.button-group-row {
  display: flex;
  gap: 8px;
}

.emergency-key-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.emergency-key-display code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--apple-orange);
  flex: 1;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .2s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s ease;
}

input:checked + .slider {
  background-color: var(--apple-green);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.slider.round {
  border-radius: 22px;
}

.slider.round:before {
  border-radius: 50%;
}

.emergency-created-modal {
  max-width: 480px;
}

.warning-title {
  color: var(--apple-orange);
  font-size: 1.15rem;
}

.emergency-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.emergency-warning-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.emergency-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid rgba(255, 159, 10, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.emergency-code-box span {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--apple-orange);
  letter-spacing: 0.05em;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: rgba(30, 30, 35, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.82rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: toastSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
  border-color: rgba(48, 209, 88, 0.35);
  color: #ffffff;
}

.toast.toast-warning {
  border-color: rgba(255, 159, 10, 0.35);
  color: #ffffff;
}

.toast.toast-error {
  border-color: rgba(255, 69, 58, 0.35);
  color: #ffffff;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}



html, body.website-body {
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
  width: 100%;
  background-color: #08080a !important;
  color: var(--text-primary);
  font-family: var(--font-system);
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 0 !important;
}

#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.web-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(13, 13, 15, 0.8);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 24px;
}

.web-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.web-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.web-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.web-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.web-brand-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
}

.web-nav-center {
  display: flex;
  align-items: center;
}

.web-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--apple-blue);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-download-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.5);
}

.web-hero {
  position: relative;
  z-index: 10;
  padding: 50px 20px 70px 20px;
  text-align: center;
}

.web-container {
  max-width: 1100px;
  margin: 0 auto;
}

.web-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.2);
  color: var(--apple-green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.web-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.web-hero-subtitle {
  max-width: 680px;
  margin: 0 auto 36px auto;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
}

.web-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-large-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--apple-blue);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(10, 132, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-large-download:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.55);
}

.software-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.software-window-frame {
  position: relative;
  width: 100%;
  height: 680px;
  background: var(--bg-app);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  user-select: none;
  text-align: left;
}

.software-window-frame .screen {
  position: absolute;
  top: 38px;
  left: 0;
  width: 100%;
  height: calc(100% - 38px);
}

.btn-demo-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-demo-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.web-features-section {
  position: relative;
  z-index: 10;
  padding: 80px 20px;
  border-top: 1px solid var(--border-hairline);
  text-align: center;
}

.web-section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.web-section-desc {
  max-width: 600px;
  margin: 0 auto 48px auto;
  font-size: 1rem;
  color: var(--text-secondary);
}

.web-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.web-feature-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.web-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.web-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
}

.web-card-icon.green { color: var(--apple-green); }
.web-card-icon.purple { color: var(--apple-purple); }
.web-card-icon.orange { color: var(--apple-orange); }

.web-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.web-card-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.web-download-section {
  position: relative;
  z-index: 10;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--border-hairline);
  background: radial-gradient(circle at 50% 30%, #15151c 0%, #08080a 80%);
}

.download-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-modal);
}

.download-box-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.download-box-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 20px;
}

.web-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-hairline);
  padding: 32px 24px;
  background: #08080a;
}

.web-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.web-footer-links {
  display: flex;
  gap: 20px;
}

.web-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.web-footer-links a:hover {
  color: #ffffff;
}

.btn-mobile-back {
  display: none;
}

body.website-body {
  font-family: var(--font-system);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.legal-body {
  background-color: var(--bg-app);
  min-height: 100vh;
  overflow-y: auto;
  user-select: text;
}

.legal-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  position: relative;
  z-index: 10;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--apple-blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: opacity 0.15s;
}

.legal-back-link:hover {
  opacity: 0.8;
}

.legal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-modal);
}

.legal-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.legal-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 6px;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p, .legal-content ul {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #5ac8fa;
}

.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(13, 13, 15, 0.85);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 24px;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-squircle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.btn-apple-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 992px) {
  .software-window-frame {
    height: 600px;
  }
  .entries-column {
    width: 270px;
  }
  .sidebar {
    width: 210px;
  }
}

@media (max-width: 768px) {
  .web-nav-center {
    display: none !important;
  }
  
  .web-navbar {
    padding: 10px 16px;
  }

  .web-hero {
    padding: 36px 14px 44px 14px;
  }

  .web-hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem);
    line-height: 1.15;
  }

  .web-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .software-window-frame {
    height: 520px;
    border-radius: 12px;
  }

  .sidebar {
    display: none !important;
  }

  .entries-column {
    width: 100% !important;
    display: flex;
    flex: 1;
  }

  .detail-column {
    display: none !important;
    width: 100% !important;
    flex: 1;
    padding: 16px 14px;
  }

  .dashboard-layout.mobile-show-details .entries-column {
    display: none !important;
  }

  .dashboard-layout.mobile-show-details .detail-column {
    display: flex !important;
    width: 100% !important;
  }

  .btn-mobile-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    color: var(--apple-blue);
    cursor: pointer;
    margin-bottom: 14px;
    width: fit-content;
    transition: all 0.15s;
  }

  .btn-mobile-back:active {
    background: rgba(10, 132, 255, 0.2);
  }

  .apple-window-bar {
    padding: 0 10px;
    height: 36px;
  }

  .window-title-text {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
  }

  .app-header {
    padding: 0 10px;
    gap: 8px;
    height: 48px;
  }

  .header-search {
    display: none !important;
  }

  #btn-demo-gen {
    display: none !important;
  }

  .web-features-section {
    padding: 50px 16px;
  }

  .web-section-title {
    font-size: 1.65rem;
  }

  .web-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .web-download-section {
    padding: 50px 16px;
  }

  .download-box {
    padding: 30px 18px;
  }

  .web-footer {
    padding: 26px 16px;
  }

  .web-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .web-footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .web-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 330px;
    margin: 0 auto 28px auto;
    gap: 10px;
  }

  .btn-large-download {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .btn-large-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .auth-card {
    padding: 22px 16px;
    max-width: 95%;
    margin: 0 auto;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .shield-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .input-text, .input-select {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .detail-title-group h1 {
    font-size: 1.15rem;
  }

  .detail-big-icon {
    width: 38px;
    height: 38px;
  }

  .download-box-title {
    font-size: 1.4rem;
  }

  .download-meta {
    flex-direction: column;
    gap: 6px;
    font-size: 0.72rem;
  }

  .legal-container {
    padding: 20px 14px 60px 14px;
  }

  .legal-card {
    padding: 22px 16px;
  }

  .legal-title {
    font-size: 1.4rem;
  }
}

