@font-face {
  font-family: DM Sans;
  src: url("/fonts/dm/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("/fonts/dm/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("/fonts/dm/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 650 900;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url("/fonts/barlow/barlow-condensed-latin-600-normal.woff2")
    format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --ink: #20261e;
  --muted: #62685c;
  --paper: #f5f4ed;
  --accent: #dcf578;
  --border: #d9dacf;
  --panel: #fbfaf5;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.45 "DM Sans",
    system-ui,
    sans-serif;
  font-synthesis: none;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
img {
  max-width: 100%;
}
svg {
  flex: none;
  vertical-align: middle;
}
h1,
h2,
p {
  margin: 0;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #718539;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.initial-loading {
  padding: 10vh 7vw;
  color: var(--muted);
}
.topbar {
  border-bottom: 1px solid var(--border);
}
.top-inner {
  max-width: 1400px;
  padding: 0 clamp(20px, 5.5vw, 86px);
  height: 83px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -1.3px;
}
.brand-symbol,
.passkey-symbol {
  display: grid;
  place-items: center;
}
.brand-symbol {
  background: var(--ink);
  color: var(--accent);
  border-radius: 11px;
  width: 38px;
  height: 38px;
}
.secure-mark {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.81rem;
  font-weight: 500;
  color: #505a4a;
}
.tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}
.tabs a[aria-current="page"] {
  background: #e5e9d8;
  color: #35402c;
  font-weight: 700;
}
.welcome,
.main {
  max-width: 1400px;
  margin: auto;
  padding: clamp(20px, 3.8vw, 60px) clamp(20px, 5.5vw, 86px);
}
.welcome {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: min(840px, calc(100svh - 83px));
  align-items: stretch;
}
.welcome-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(475px, 62vh, 740px);
  border-radius: 20px;
  background: #283024;
  color: white;
}
.welcome-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  z-index: -3;
}
.welcome-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 16, 0.02) 38%,
    rgba(15, 21, 14, 0.84)
  );
  z-index: -2;
}
.art-caption {
  position: absolute;
  bottom: clamp(28px, 4vw, 70px);
  left: clamp(27px, 3.8vw, 65px);
  right: 22px;
}
.art-caption h1,
.page-head h1,
.session-body h2 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.91;
  letter-spacing: -0.028em;
}
.art-caption h1 {
  font-size: clamp(70px, 7vw, 118px);
}
.art-caption h1 span {
  color: var(--accent);
}
.art-caption p {
  font-size: clamp(0.89rem, 1.05vw, 1.1rem);
  margin-top: 20px;
  color: #edeee5;
  max-width: 360px;
}
.focus-mark {
  position: absolute;
  right: 9%;
  top: 13%;
  width: 21%;
  aspect-ratio: 1.18;
  color: rgba(223, 247, 157, 0.72);
}
.focus-mark i {
  position: absolute;
  width: 18%;
  height: 21%;
  border: 1.5px solid;
}
.focus-mark i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.focus-mark i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}
.focus-mark i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}
.focus-mark i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}
.welcome-login {
  display: grid;
  place-items: center;
  padding: clamp(25px, 4.7vw, 80px);
}
.login-inner {
  width: min(100%, 25rem);
}
.passkey-symbol {
  width: 53px;
  height: 53px;
  background: #e6ead6;
  color: #415431;
  border-radius: 16px;
  margin-bottom: 26px;
}
.main {
  min-height: 65vh;
  padding-bottom: max(55px, env(safe-area-inset-bottom));
}
.page-head {
  margin: 8px 0 30px;
}
.page-head h1 {
  font-size: clamp(54px, 6.1vw, 93px);
}
.page-head p {
  margin-top: 12px;
  color: var(--muted);
}
.page-head .date-line {
  display: block;
  color: #546347;
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
}
.date-line:first-letter,
.history-row strong:first-letter {
  text-transform: uppercase;
}
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 19px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.btn.primary,
.round-play {
  background: #263426;
  color: #fff;
}
.btn.secondary,
.icon-btn {
  color: #344231;
  background: var(--panel);
  border-color: #cdd2c3;
}
.btn.lime {
  background: var(--accent);
  color: #293021;
}
.btn.danger {
  background: #86392f;
  color: white;
}
.btn.text-danger {
  background: transparent;
  color: #893e35;
  border-color: #dac3b9;
}
.icon-btn {
  padding: 9px;
  min-width: 42px;
}
.session-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: #252e25;
  color: var(--paper);
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.session-body {
  padding: clamp(25px, 3.5vw, 55px);
}
.session-stat,
.section-title > span,
.frame-count {
  font-size: 0.77rem;
  letter-spacing: 0.015em;
  font-weight: 700;
}
.session-stat {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #e0e9ce;
}
.session-body h2 {
  font-size: clamp(38px, 4.5vw, 68px);
  margin: 18px 0 12px;
}
.session-body p {
  color: #d0d5c9;
  max-width: 410px;
  font-size: 0.94rem;
}
.session-body .btn {
  margin-top: 22px;
}
.hero-photo {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.section-title,
.photo-detail header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-title {
  margin: 33px 0 14px;
}
.section-title h2,
.player-options h2,
.settings-list h2,
.photo-detail h2,
.empty-state h2 {
  font-size: 1.3rem;
  letter-spacing: -0.045em;
}
.section-title > span,
.photo-detail header span {
  color: var(--muted);
}
.angle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.angle-card {
  display: block;
  min-width: 0;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  padding: 0;
}
.angle-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.8;
  background: #e8eade;
  color: #8f9a80;
}
.angle-image.filled {
  background: #20261e;
}
.angle-image img,
.mini-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
}
.angle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 0.87rem;
  font-weight: 700;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 54px);
  background: var(--panel);
}
.empty-state > svg {
  color: #718060;
  margin-bottom: 6px;
}
.empty-state p,
.settings-list p,
.confirm-dialog p {
  color: var(--muted);
  max-width: 45ch;
}
.empty-state .btn {
  margin-top: 9px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  gap: 6px;
  margin-bottom: 14px;
}
.history-list,
.settings-list {
  max-width: 900px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.delete-day {
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #893e35;
  background: transparent;
}
.delete-day:hover {
  background: #f0e2da;
}
.history-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 16px 3px;
}
.history-row > svg {
  margin-left: auto;
}
.history-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.mini-strip {
  display: flex;
  gap: 2px;
}
.mini-strip > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 48px;
  color: #959f89;
  background: #e4e6d9;
  border-radius: 3px;
  overflow: hidden;
}
.mini-strip svg {
  width: 14px;
}
.mini-strip img {
  object-fit: cover;
}
.settings-list {
  border-top: 1px solid var(--border);
}
.settings-list section {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  gap: 17px;
}
.setting-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e6e9dc;
}
.settings-list p,
.confirm-dialog p {
  margin: 6px 0 15px;
}
.status-text {
  margin-top: 18px;
}
.player-layout {
  display: grid;
  grid-template-columns: minmax(300px, 620px) minmax(230px, 320px);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.player-main {
  min-width: 0;
}
.angle-tabs {
  display: flex;
  gap: 3px;
  background: #e6e8dc;
  padding: 4px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.angle-tabs button {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 20px;
  min-height: 36px;
  font-size: 0.83rem;
  font-weight: 700;
}
.angle-tabs button[aria-pressed="true"] {
  background: var(--panel);
  box-shadow: 0 1px 3px #0001;
}
.viewer {
  position: relative;
  display: grid;
  place-items: center;
  background: #1f241d;
  border-radius: 14px;
  overflow: hidden;
  color: #f5f6ef;
  height: min(54svh, 540px);
  min-height: 260px;
}
.viewer > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.frame-empty {
  padding: 30px;
  text-align: center;
  max-width: 37ch;
  color: #dde2d5;
}
.viewer-bottom {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(transparent, #161d14c9);
}
.viewer-date {
  font-size: 0.84rem;
  font-weight: 700;
}
.viewer-expand {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0005;
  color: white;
}
.play-controls {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
}
.round-play {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 42px;
  height: 42px;
}
.play-controls input {
  min-width: 20px;
  flex: 1;
  accent-color: #53644a;
}
.frame-count {
  white-space: nowrap;
}
.player-options {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.player-options label {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 14px 0;
}
.player-options input,
.player-options select {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border-radius: 7px;
  border: 1px solid #bfc6b4;
  background: var(--paper);
  font-size: 16px;
}
.play-length {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 16px 0;
}
.player-options .btn {
  width: 100%;
}
.player-open {
  overflow: hidden;
}
.expanded-player .player-main {
  position: fixed;
  inset: 0;
  z-index: 20;
  color: white;
  background: #20261e;
  padding: max(10px, env(safe-area-inset-top)) 12px
    max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.expanded-player .viewer {
  flex: 1;
  min-height: 0;
  height: auto;
}
.expanded-player .angle-tabs {
  color: var(--ink);
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: calc(100vw - 28px);
  max-height: 90svh;
  box-shadow: 0 20px 70px #0003;
}
dialog::backdrop {
  background: #12180f99;
}
.confirm-dialog {
  width: 430px;
  padding: 25px;
}
.confirm-dialog h2 {
  font-size: 1.5rem;
  line-height: 1.1;
}
.action-row,
.detail-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-detail {
  width: 560px;
  padding: 16px;
}
.detail-img {
  display: block;
  margin: 13px auto;
  width: 100%;
  height: min(53svh, 530px);
  object-fit: contain;
  background: #20261e;
  border-radius: 8px;
}
.modal-status {
  color: var(--muted);
}
.modal-status:not(:empty) {
  margin-top: 8px;
}
.capture-mode .topbar {
  display: none;
}
.capture-mode .main {
  max-width: 760px;
  padding-top: 22px;
}
@media (max-width: 760px) {
  .top-inner {
    height: 65px;
  }
  .welcome {
    grid-template-columns: 1fr;
    padding-top: 19px;
    gap: 0;
    min-height: 0;
  }
  .welcome-art {
    min-height: 0;
    height: clamp(180px, 30svh, 285px);
    border-radius: 14px;
  }
  .welcome-art > img {
    object-position: center 55%;
  }
  .art-caption {
    left: 22px;
    bottom: 20px;
  }
  .art-caption h1 {
    font-size: clamp(43px, 8.5vw, 67px);
  }
  .art-caption p {
    margin-top: 8px;
    font-size: 0.82rem;
  }
  .focus-mark {
    width: 13%;
    right: 7%;
  }
  .welcome-login {
    padding: 28px 4px 15px;
  }
  .login-inner {
    width: min(100%, 480px);
  }
  .passkey-symbol {
    display: none;
  }
  .tabs {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    justify-content: space-around;
    gap: 0;
    padding: 6px 5px max(7px, env(safe-area-inset-bottom));
    background: #f5f4edfa;
    border-top: 1px solid var(--border);
  }
  .tabs a {
    flex-direction: column;
    gap: 2px;
    padding: 4px 12px;
    font-size: 0.67rem;
    border-radius: 9px;
  }
  .main {
    padding-bottom: 100px;
  }
  .page-head {
    margin: 3px 0 22px;
  }
  .session-hero {
    grid-template-columns: 1.35fr 0.65fr;
    min-height: 0;
  }
  .session-body {
    padding: 23px 15px 23px 19px;
  }
  .session-body h2 {
    font-size: 35px;
  }
  .session-body p {
    font-size: 0.83rem;
  }
  .session-body .btn {
    font-size: 0.8rem;
    padding: 9px 12px;
  }
  .hero-photo {
    object-position: 58% center;
  }
  .angle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .angle-image {
    aspect-ratio: 1.65;
  }
  .section-title {
    margin-top: 23px;
  }
  .player-layout {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .player-options {
    max-width: 100%;
  }
  .viewer {
    height: 50svh;
  }
  .capture-mode .main {
    padding: 12px;
  }
  .capture-mode .tabs {
    display: none;
  }
  .history-row {
    gap: 10px;
  }
  .mini-strip > span {
    width: 25px;
    height: 38px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-symbol {
    width: 34px;
    height: 34px;
  }
  .photo-detail {
    padding: 12px;
  }
}
@media (min-width: 761px) and (max-width: 980px) {
  .welcome {
    grid-template-columns: 1fr 0.85fr;
  }
  .welcome-login {
    padding: 28px;
  }
  .art-caption h1 {
    font-size: 73px;
  }
}
.export-status:not(:empty) {
  font-size: 0.84rem;
  margin-top: 12px;
  color: var(--muted);
}
.frame-empty .btn {
  margin-top: 14px;
}
