/* أدوات المواريث والسفر — الإصدار الخامس */
.inheritance-feature .feature-icon { font-family: Georgia, serif; }
.flight-feature .feature-icon { background: linear-gradient(145deg, #d9f0ff, #8cc6e5); color: #0a4968; }
.marine-feature .feature-icon { background: linear-gradient(145deg, #d8f0ec, #78b8ad); color: #073f3a; }

.mobility-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-bottom: 24px; padding: clamp(28px, 5vw, 54px); color: #fff; background: linear-gradient(135deg, #0a4139, #062c28); border-radius: 28px;
}
.mobility-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .22; background: radial-gradient(circle at 15% 20%, #e5cb79 0 2px, transparent 3px), radial-gradient(circle at 82% 62%, #e5cb79 0 1px, transparent 2px); background-size: 44px 44px, 29px 29px; }
.mobility-hero > * { position: relative; z-index: 1; }
.mobility-hero .kicker { color: #ead38d; }
.mobility-hero h1 { margin: 7px 0 10px; color: #fff; font-size: clamp(30px, 4vw, 52px); line-height: 1.12; }
.mobility-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.9; }
.inheritance-hero { background: linear-gradient(135deg, #452d16, #181f1c); }
.flight-hero { background: linear-gradient(135deg, #0b4b68, #082e44 56%, #102c37); }
.marine-hero { background: linear-gradient(135deg, #07545b, #063638 60%, #062b2c); }
.mobility-hero-badge { min-width: 170px; padding: 20px; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; backdrop-filter: blur(10px); }
.mobility-hero-badge b, .mobility-hero-badge small { display: block; }
.mobility-hero-badge b { color: #f2da91; font-size: 20px; }
.mobility-hero-badge small { margin-top: 6px; color: rgba(255,255,255,.65); font-size: 9px; }

.inheritance-layout, .mobility-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; }
.inheritance-form, .inheritance-result, .mobility-map-card, .traveler-console { padding: 24px; background: #fff; border: 1px solid #e2dac8; border-radius: 22px; box-shadow: 0 14px 36px rgba(20,45,37,.07); }
.tool-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.tool-card-heading span { color: #9a771f; font-size: 8px; font-weight: 900; }
.tool-card-heading h2 { margin: 4px 0 0; color: var(--green-950); font-size: 21px; }
.tool-card-heading i { padding: 7px 10px; color: #41655d; background: #edf5f1; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 900; }
.heirs-heading { margin-top: 28px; padding-top: 22px; border-top: 1px solid #ebe4d6; }
.travel-fields { display: grid; gap: 13px; }
.travel-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.travel-fields label, .route-toolbar label { display: grid; gap: 7px; color: #36554f; font-size: 9px; font-weight: 900; }
.travel-fields input, .travel-fields select, .route-toolbar select { width: 100%; height: 48px; padding: 0 13px; color: var(--green-950); background: #fbfaf6; border: 1px solid #ded5c3; border-radius: 11px; outline: none; font-size: 11px; }
.travel-fields input:focus, .travel-fields select:focus, .route-toolbar select:focus { border-color: #b7983a; box-shadow: 0 0 0 3px rgba(183,152,58,.14); }
.travel-fields small { color: var(--muted); font-size: 7px; line-height: 1.5; }
.heir-toggles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin: 15px 0; }
.heir-toggles label, .sea-benefits label { display: flex; align-items: start; gap: 10px; padding: 13px; background: #f8f6f0; border: 1px solid #e5ddcd; border-radius: 12px; cursor: pointer; }
.heir-toggles input, .sea-benefits input { width: 18px; height: 18px; accent-color: var(--green-800); }
.heir-toggles span, .heir-toggles b, .heir-toggles small, .sea-benefits span, .sea-benefits b, .sea-benefits small { display: block; }
.heir-toggles b, .sea-benefits b { color: var(--green-950); font-size: 9px; }
.heir-toggles small, .sea-benefits small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.55; }
.scope-warning { margin: 16px 0; padding: 14px 16px; color: #70463e; background: #fff3ee; border: 1px solid #efd3c7; border-radius: 12px; }
.scope-warning b { font-size: 9px; }
.scope-warning p { margin: 4px 0 0; font-size: 8px; line-height: 1.7; }

.inheritance-result { align-self: start; color: #fff; background: linear-gradient(155deg, #123f38, #082e29); border: 0; }
.result-kicker { color: #e8cd7d; font-size: 8px; font-weight: 900; }
.inherit-net { margin: 8px 0 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.inherit-net span, .inherit-net strong, .inherit-net small { display: block; }
.inherit-net span { color: rgba(255,255,255,.65); font-size: 9px; }
.inherit-net strong { margin: 4px 0; color: #fff; font-size: clamp(28px, 4vw, 42px); }
.inherit-net small { color: rgba(255,255,255,.46); font-size: 8px; }
.inherit-shares { display: grid; gap: 8px; }
.inherit-share { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; }
.inherit-share b { font-size: 10px; }
.inherit-share strong { color: #f2db94; font-size: 13px; }
.inherit-share small { grid-column: 1 / -1; color: rgba(255,255,255,.52); font-size: 7px; }
.inherit-shares > p { color: rgba(255,255,255,.6); font-size: 9px; }
.inherit-balance { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; color: rgba(255,255,255,.64); border-top: 1px solid rgba(255,255,255,.12); font-size: 9px; }
.inherit-balance b { color: #f0d990; }
.inherit-result-note { margin: 15px 0 0; color: rgba(255,255,255,.52); font-size: 8px; line-height: 1.7; }

.live-map-link { min-width: 220px; display: flex; align-items: center; gap: 12px; padding: 15px 17px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; text-decoration: none; backdrop-filter: blur(10px); }
.live-map-link i { width: 11px; height: 11px; background: #ff6262; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,98,98,.18); }
.live-map-link.sea i { background: #6de0cf; box-shadow: 0 0 0 6px rgba(109,224,207,.16); }
.live-map-link span, .live-map-link b, .live-map-link small { display: block; }
.live-map-link b { font-size: 10px; }
.live-map-link small { margin-top: 3px; color: rgba(255,255,255,.58); font-size: 8px; }
.mobility-map-card { padding: 14px; }
.route-toolbar { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; padding: 8px 8px 14px; }
.route-toolbar output { float: left; color: #99751f; }
.route-toolbar input[type='range'] { width: 100%; accent-color: var(--green-800); }
.mobility-map { height: 440px; overflow: hidden; background-color: #d9edf1; background-image: radial-gradient(circle at 24% 34%, rgba(255,255,255,.78) 0 2px, transparent 3px), radial-gradient(circle at 72% 66%, rgba(255,255,255,.65) 0 1px, transparent 2px), linear-gradient(rgba(5,74,93,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(5,74,93,.08) 1px, transparent 1px), linear-gradient(145deg, #e9f5f3, #b8dce5); background-size: 34px 34px, 25px 25px, 52px 52px, 52px 52px, auto; border: 1px solid #c5ddd9; border-radius: 16px; }
.mobility-map .leaflet-control-zoom a { color: #0b4a50; background: rgba(255,255,255,.9); border-color: #c3d9d6; }
.map-integrity-note { margin: 10px 5px 2px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.map-vehicle-icon { display: grid; place-items: center; width: 38px !important; height: 38px !important; color: #fff; background: #0b4966; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 7px 16px rgba(0,0,0,.25); font-size: 18px; }
.map-vehicle-icon.ship { background: #08605f; }
.traveler-console { align-self: start; }
.traveler-console h2 { margin: 5px 0 17px; color: var(--green-950); font-size: 25px; }
.traveler-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 16px; }
.traveler-metrics div { min-width: 0; padding: 13px 8px; text-align: center; background: #f4f1e8; border-radius: 11px; }
.traveler-metrics span, .traveler-metrics strong, .traveler-metrics small { display: block; }
.traveler-metrics span { color: var(--muted); font-size: 7px; }
.traveler-metrics strong { margin: 4px 0; color: var(--green-950); font-size: 16px; }
.traveler-metrics small { color: #887548; font-size: 6px; }
.mode-plan { position: relative; margin: 9px 0; padding: 14px 44px 14px 14px; background: #f8f6f0; border: 1px solid #e4ddcd; border-radius: 12px; }
.mode-plan::before { content: '✓'; position: absolute; top: 15px; right: 13px; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--green-800); border-radius: 7px; font-size: 9px; }
.mode-plan b { color: var(--green-950); font-size: 9px; }
.mode-plan p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.7; }
.traveler-console .primary-button { width: 100%; margin-top: 12px; }
.sea-benefits { display: grid; gap: 8px; }

.rulings-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.rulings-grid article { position: relative; overflow: hidden; min-height: 190px; padding: 20px; background: #fff; border: 1px solid #e3dbc9; border-radius: 18px; }
.rulings-grid article > span { width: 34px; height: 34px; display: grid; place-items: center; color: #856616; background: #f2dfaa; border-radius: 10px; font-size: 9px; font-weight: 900; }
.rulings-grid h3 { margin: 24px 0 8px; color: var(--green-950); font-size: 14px; }
.rulings-grid p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.sea-rulings article > span { color: #075a57; background: #d9efea; }
.source-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.source-strip a { display: block; padding: 15px; color: var(--green-950); background: #fbf7ed; border: 1px solid #e7dcc1; border-radius: 13px; text-decoration: none; }
.source-strip b, .source-strip small { display: block; }
.source-strip b { font-size: 9px; }
.source-strip small { margin-top: 4px; color: var(--muted); font-size: 7px; }

@media (max-width: 1100px) {
  .inheritance-layout, .mobility-layout { grid-template-columns: 1fr; }
  .rulings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .mobility-hero { align-items: stretch; flex-direction: column; padding: 25px 20px; border-radius: 20px; }
  .mobility-hero h1 { font-size: 30px; }
  .mobility-hero p { font-size: 11px; }
  .mobility-hero-badge, .live-map-link { width: 100%; min-width: 0; }
  .inheritance-form, .inheritance-result, .mobility-map-card, .traveler-console { padding: 17px; border-radius: 17px; }
  .travel-fields.two-columns, .heir-toggles, .route-toolbar, .rulings-grid, .source-strip { grid-template-columns: 1fr; }
  .mobility-map { height: 320px; }
  .rulings-grid article { min-height: 0; }
  .traveler-metrics { grid-template-columns: 1fr; }
  .traveler-metrics div { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: right; }
  .traveler-metrics small { grid-column: 1 / -1; }
}

/* أيقونة فتاوى الحج والعمرة */
.manasik-hero-actions { position: relative; z-index: 2; display: grid; gap: 9px; min-width: 190px; }
.manasik-hero-actions > a, .manasik-hero-actions > button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 13px; color: var(--gold-soft); background: rgba(255,255,255,.04); border: 1px solid rgba(242,229,185,.35); border-radius: 12px; cursor: pointer; text-decoration: none; font-size: 9px; font-weight: 900; }
.manasik-hero-actions > button { color: #173e35; background: var(--gold-soft); border-color: transparent; }
.fatwa-orb { width: 27px; height: 27px; display: grid; place-items: center; color: #f7e7ad; background: var(--green-950); border-radius: 9px; font: 900 15px/1 Georgia, serif; }
.manasik-tabs .fatwa-tab { display: flex; align-items: center; justify-content: center; gap: 7px; color: #7b5d17; background: #fff7dc; }
.manasik-tabs .fatwa-tab span { width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: #9a7720; border-radius: 7px; font-family: Georgia, serif; }
.manasik-tabs .fatwa-tab.active { color: #fff; background: linear-gradient(135deg, #9a7720, #6d5211); }
.manasik-tabs .fatwa-tab.active span { color: #6d5211; background: #f7e6aa; }
.fatwa-panel-intro { display: grid; grid-template-columns: 78px minmax(0,1fr) auto; align-items: center; gap: 20px; margin-bottom: 18px; padding: 24px; color: #fff; background: linear-gradient(135deg, #173f36, #082d29); border-radius: 22px; }
.fatwa-panel-mark { width: 72px; height: 72px; display: grid; place-items: center; color: #7b5c10; background: linear-gradient(145deg, #f8e8b1, #dec16b); border-radius: 21px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); font: 900 37px/1 Georgia, serif; }
.fatwa-panel-intro .kicker { color: #ead184; }
.fatwa-panel-intro h2 { margin: 4px 0 6px; color: #fff; font-size: 30px; }
.fatwa-panel-intro p { max-width: 720px; margin: 0; color: rgba(255,255,255,.66); font-size: 10px; line-height: 1.8; }
.fatwa-panel-intro > a { padding: 12px 14px; color: #f4dfa0; border: 1px solid rgba(244,223,160,.28); border-radius: 11px; text-decoration: none; font-size: 8px; font-weight: 900; white-space: nowrap; }
.fatwa-topics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.fatwa-topics > a { position: relative; overflow: hidden; min-height: 218px; display: flex; flex-direction: column; padding: 20px; color: inherit; background: #fff; border: 1px solid #e5dcc9; border-radius: 18px; box-shadow: 0 10px 28px rgba(15,45,36,.05); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.fatwa-topics > a::after { content: '؟'; position: absolute; left: -8px; bottom: -26px; color: rgba(183,150,55,.08); font: 900 110px/1 Georgia, serif; }
.fatwa-topics > a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,45,36,.1); }
.fatwa-topics span { width: max-content; padding: 6px 9px; color: #7e6117; background: #f7ebc1; border-radius: 999px; font-size: 7px; font-weight: 900; }
.fatwa-topics h3 { margin: 18px 0 8px; color: var(--green-950); font-size: 16px; }
.fatwa-topics p { position: relative; z-index: 1; flex: 1; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.fatwa-topics b { position: relative; z-index: 1; margin-top: 16px; color: #87691a; font-size: 8px; }
.personal-fatwa-note { display: flex; align-items: start; gap: 13px; margin-top: 15px; padding: 17px; color: #653f37; background: #fff3ee; border: 1px solid #edcfc3; border-radius: 14px; }
.personal-fatwa-note > span { flex: 0 0 31px; height: 31px; display: grid; place-items: center; color: #fff; background: #9b5748; border-radius: 9px; font-weight: 900; }
.personal-fatwa-note b { font-size: 10px; }
.personal-fatwa-note p { margin: 5px 0 0; font-size: 8px; line-height: 1.7; }

@media (max-width: 920px) {
  .fatwa-topics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fatwa-panel-intro { grid-template-columns: 64px 1fr; }
  .fatwa-panel-mark { width: 60px; height: 60px; }
  .fatwa-panel-intro > a { grid-column: 2; width: max-content; }
}

@media (max-width: 700px) {
  .manasik-hero-actions { width: 100%; min-width: 0; }
  .fatwa-panel-intro { grid-template-columns: 52px 1fr; padding: 18px; }
  .fatwa-panel-mark { width: 50px; height: 50px; border-radius: 15px; font-size: 27px; }
  .fatwa-panel-intro h2 { font-size: 24px; }
  .fatwa-panel-intro > a { grid-column: 1 / -1; width: 100%; text-align: center; }
  .fatwa-topics { grid-template-columns: 1fr; }
  .fatwa-topics > a { min-height: 0; }
}

/* ملاحظاتي — دفتر محلي بأسلوب تطبيقات الجوال */
.notes-feature .feature-icon { color: #5f4a0f; background: linear-gradient(145deg, #fff1a9, #e8c951); }
.notes-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 86px minmax(0,1fr) auto; align-items: center; gap: 22px; margin-bottom: 18px; padding: 30px; color: #fff; background: linear-gradient(135deg, #3b3520, #171c19 66%, #0b302b); border-radius: 26px; }
.notes-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16; background: linear-gradient(90deg, transparent 49%, #f2d86f 50%, transparent 51%); background-size: 38px 100%; }
.notes-hero > * { position: relative; z-index: 1; }
.notes-hero-icon { width: 78px; height: 78px; display: grid; place-items: center; color: #654f12; background: linear-gradient(145deg, #fff2ae, #dfbd44); border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); font-size: 36px; }
.notes-hero .kicker { color: #f0d578; }
.notes-hero h1 { margin: 4px 0 6px; color: #fff; font-size: clamp(34px, 5vw, 54px); }
.notes-hero p { max-width: 750px; margin: 0; color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.8; }
.notes-private-badge { padding: 9px 13px; color: #f5dfa0; background: rgba(255,255,255,.07); border: 1px solid rgba(245,223,160,.25); border-radius: 999px; font-size: 8px; font-weight: 900; white-space: nowrap; }

.notes-app { min-height: 670px; display: grid; grid-template-columns: 340px minmax(0,1fr); overflow: hidden; background: #fff; border: 1px solid #ded8c9; border-radius: 24px; box-shadow: 0 18px 45px rgba(20,45,37,.08); }
.notes-sidebar { display: flex; flex-direction: column; min-height: 0; padding: 18px; background: #f6f5f1; border-inline-end: 1px solid #ded8c9; }
.notes-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notes-sidebar-head div { display: flex; align-items: center; gap: 7px; color: var(--green-950); }
.notes-sidebar-head span { font-size: 13px; font-weight: 900; }
.notes-sidebar-head strong { min-width: 24px; height: 24px; display: grid; place-items: center; color: #7c611b; background: #eee1b8; border-radius: 999px; font-size: 8px; }
.notes-sidebar-head button, .notes-welcome button { min-height: 40px; padding: 0 12px; color: #fff; background: var(--green-900); border: 0; border-radius: 11px; cursor: pointer; font-size: 8px; font-weight: 900; }
.notes-sidebar-head button span { font-size: 15px; vertical-align: -1px; }
.notes-search { height: 42px; display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; padding: 0 12px; color: #8a887f; background: #e9e7e0; border-radius: 11px; }
.notes-search input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 9px; }
.notes-list { display: grid; align-content: start; gap: 7px; overflow-y: auto; }
.note-list-item { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 13px; text-align: right; background: transparent; border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
.note-list-item:hover { background: #fff; }
.note-list-item.active { background: #fff; border-color: #e5d59d; box-shadow: 0 7px 18px rgba(40,43,36,.06); }
.note-list-item b { overflow: hidden; color: var(--green-950); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.note-list-item > span { color: #9c7a20; font-size: 10px; }
.note-list-item p { grid-column: 1 / -1; overflow: hidden; margin: 2px 0; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.note-list-item small { grid-column: 1 / -1; color: #aaa69b; font-size: 7px; }
.notes-empty-list { margin: auto 0; padding: 30px 15px; color: #969188; text-align: center; font-size: 9px; line-height: 1.7; }
.notes-workspace { position: relative; min-width: 0; background: linear-gradient(#fff, #fffefa); }
.notes-welcome { min-height: 670px; display: grid; place-items: center; align-content: center; padding: 28px; text-align: center; }
.notes-welcome > div { width: 76px; height: 76px; display: grid; place-items: center; color: #7a601b; background: #fff1b7; border-radius: 22px; font-size: 35px; }
.notes-welcome h2 { margin: 18px 0 7px; color: var(--green-950); font-size: 24px; }
.notes-welcome p { max-width: 470px; margin: 0 0 17px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.note-editor { min-height: 670px; display: grid; grid-template-rows: auto auto minmax(360px,1fr) auto; padding: 20px 28px 14px; }
.note-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #ece7dc; }
.note-editor-toolbar > span { color: #949086; font-size: 7px; }
.note-editor-toolbar > div { display: flex; gap: 6px; }
.note-editor-toolbar button { min-height: 34px; padding: 0 10px; color: #5e4d1d; background: #f8f1d9; border: 0; border-radius: 9px; cursor: pointer; font-size: 8px; font-weight: 900; }
.note-editor-toolbar button[aria-pressed='true'] { color: #fff; background: #a48120; }
.note-editor-toolbar button.danger { color: #9a4f42; background: #fff0ec; }
.note-editor-toolbar .notes-back { display: none; }
.note-title-input { width: 100%; margin-top: 16px; padding: 0; color: #162d28; background: transparent; border: 0; outline: none; font-size: clamp(25px, 4vw, 40px); font-weight: 900; }
.note-title-input::placeholder { color: #c1bdb3; }
.note-body-input { width: 100%; min-height: 400px; resize: none; padding: 18px 0; color: #263d38; background: transparent; border: 0; outline: none; font-size: 14px; line-height: 2; }
.note-body-input::placeholder { color: #bcb8ae; }
.note-editor-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; color: #a09b90; border-top: 1px solid #ece7dc; font-size: 7px; }
.notes-safety-note { margin: 12px 3px 0; color: #76624f; font-size: 8px; line-height: 1.7; }
.notes-safety-note b { color: #874f44; }

@media (max-width: 840px) {
  .notes-hero { grid-template-columns: 66px 1fr; padding: 22px; }
  .notes-hero-icon { width: 60px; height: 60px; border-radius: 17px; font-size: 28px; }
  .notes-private-badge { grid-column: 2; width: max-content; }
  .notes-app { min-height: 640px; grid-template-columns: 1fr; }
  .notes-sidebar { border-inline-end: 0; }
  .notes-workspace { display: none; }
  .notes-app.editor-open .notes-sidebar { display: none; }
  .notes-app.editor-open .notes-workspace { display: block; }
  .notes-welcome, .note-editor { min-height: 640px; }
  .note-editor { padding: 15px 18px 12px; }
  .note-editor-toolbar .notes-back { display: block; }
}

@media (max-width: 520px) {
  .notes-hero { grid-template-columns: 50px 1fr; gap: 13px; }
  .notes-hero-icon { width: 48px; height: 48px; font-size: 23px; }
  .notes-hero h1 { font-size: 30px; }
  .notes-hero p { font-size: 9px; }
  .notes-sidebar-head { align-items: stretch; flex-direction: column; }
  .notes-sidebar-head button { width: 100%; }
  .note-editor-toolbar { flex-wrap: wrap; }
  .note-editor-toolbar > span { order: 3; width: 100%; }
  .note-editor-toolbar > div { margin-inline-start: auto; }
  .note-editor-toolbar button { padding-inline: 8px; }
}
